100BBasic instructions
7.1 Bit logic
S7-1200 Programmable controller
166
System Manual, 11/2011, A5E02486680-05
Table 7- 7
Data types for the parameters
Parameter
Data type
Description
OUT
Bool
Assigned bit
●
If there is power flow through an output coil or an FBD "=" box is enabled, then the output
bit is set to 1.
●
If there is no power flow through an output coil or an FBD "=" assignment box is not
enabled, then the output bit is set to 0.
●
If there is power flow through an inverted output coil or an FBD "/=" box is enabled, then
the output bit is set to 0.
●
If there is no power flow through an inverted output coil or an FBD "/=" box is not enabled,
then the output bit is set to 1.
7.1.2
Set and reset instructions
Set and Reset 1 bit
Table 7- 8
S and R instructions
LAD
FBD
SCL
Description
Not available
When S (Set) is activated, then the data value at the OUT
address is set to 1. When S is not activated, OUT is not
changed.
Not available
When R (Reset) is activated, then the data value at the OUT
address is set to 0. When R is not activated, OUT is not
changed.
1
For LAD and FBD: These instructions can be placed anywhere in the network.
2
For SCL: You must write code to replicate this function within your application.
Table 7- 9
Data types for the parameters
Parameter
Data type
Description
IN (or connect to contact/gate logic)
Bool
Bit location to be monitored
OUT
Bool
Bit location to be set or reset