SmartPLC SafeLine AC4S with fieldbus interfaces
198
>
10.3.6
GetLocalInput
43013
Function block type:
Function block (FB)
Library:
sf_io.library
Symbol in CODESYS:
>
Description
43286
Function block (FB) for access to a non-safe input channel of the local I/O interface (IN_Channel)
The programmer can carry out the following actions via GetLocalInput:
Detect the non-safe, logical state of the selected input channel and provide the value (IN).
The FB provides the following state and diagnostic information:
State of the FB processing (ready)
Error state of the function block (Error)
>
Input parameters
42977
Parameter
Data type
Description
Possible values
Enable
BOOL
FB activation
FALSE
FB is deactivated.
TRUE
FB is activated.
IN_Channel
INT
Local input channel to which the
sensor is connected.
1
...
8
Local input IN1
...
Local input IN8
Output parameters
43076
Parameter
Data type
Description
Possible values
IN
BOOL
Logic state of the selected input
channel
FALSE
OFF
TRUE
ON
Ready
BOOL
Status of the FB processing
(validity of the output signals)
FALSE
FB not completely processed or
deactivated; signals are invalid
TRUE
FB completely processed; signals are
valid
Error
BOOL
Error indication
FALSE
No error
TRUE
Error occurred during FB execution