SF_SetIn

For virtual safety IO, sets specified input port (8 bits) to the specified value.

Syntax
SF_SetIn portNumber, value

Parameters

portNumber
For virtual safety IO, specifies input port number to the specified value. Specify 0.
value
Specify the setting value of the virtual safety IO input port as an integer.

Description
Sets the input bits of the virtual safety IO simultaneously.
This command works only when the virtual safety function is enabled.
The safety input signal is negative logic (Active Low).
When 0 (off) is input to the safety input, the function assigned to the safety input is activated.

To get the current status of the input port, use the EStopOn function and the SF_GetStatus function.

Bit assignment of port number 0

Bit Value Safety Input
0 &H1 SAFETY_IN1
1 &H2 SAFETY_IN2
2 &H4 SAFETY_IN3
3 &H8 SAFETY_IN4
4 &H10 SAFETY_IN5
5 - Specify 1.
6 &H40 ESTOP_IN
7 - Specify 1.

See Also

SF_SetSw, SF_GetStatus Function, SetIn Statement, SetSw Statement, EStopOn Function

SF_SetIn Statement Example

 SF_SetIn 0, &HFE  ' Set bit 0 (SAFETY_IN1) of the safety input to off.