Contents
GFK-2950C February 2018 iii
4.2.5 Bit Test .......................................................................................................................................................................... 74
4.2.6 Logical AND, Logical OR, and Logical XOR....................................................................................................... 75
4.2.7 Logical NOT ................................................................................................................................................................. 77
4.2.8 Masked Compare ...................................................................................................................................................... 78
4.2.9 Rotate Bits ................................................................................................................................................................... 81
4.2.10 Shift Bits ....................................................................................................................................................................... 82
4.3 Coils ............................................................................................................................................. 84
4.3.1 Coil Checking .............................................................................................................................................................. 84
4.3.2 Graphical Representation of Coils ..................................................................................................................... 85
4.3.3 Set Coil, Reset Coil .................................................................................................................................................... 86
4.3.4 Transition Coils .......................................................................................................................................................... 87
4.4 Contacts ..................................................................................................................................... 91
4.4.1 Continuation Contact.............................................................................................................................................. 92
4.4.2 Fault Contact .............................................................................................................................................................. 93
4.4.3 High and Low Alarm Contacts ............................................................................................................................. 94
4.4.4 No Fault Contact ....................................................................................................................................................... 95
4.4.5 Normally Closed and Normally Open Contacts ............................................................................................ 96
4.4.6 Transition Contacts.................................................................................................................................................. 97
4.5 Control Functions ................................................................................................................. 102
4.5.1 Do I/O .......................................................................................................................................................................... 103
4.5.2 Edge Detectors ....................................................................................................................................................... 106
4.5.3 Drum ........................................................................................................................................................................... 108
4.5.4 For Loop ..................................................................................................................................................................... 112
4.5.5 Mask I/O Interrupt ................................................................................................................................................. 114
4.5.6 Read Switch Position ............................................................................................................................................ 115
4.5.7 Scan Set IO ............................................................................................................................................................... 116
4.5.8 Suspend I/O .............................................................................................................................................................. 117
4.5.9 Suspend or Resume I/O Interrupt ................................................................................................................... 118
4.6 Conversion Functions .......................................................................................................... 119
4.6.1 Convert Angles ........................................................................................................................................................ 120
4.6.2 Convert UINT or INT to BCD4 ............................................................................................................................ 121
4.6.3 Convert DINT to BCD8 ......................................................................................................................................... 122
4.6.4 Convert BCD4, UINT, DINT, or REAL to INT .................................................................................................. 123
4.6.5 Convert BCD4, INT, DINT, or REAL to UINT .................................................................................................. 125
4.6.6 Convert BCD8, UINT, INT, REAL or LREAL to DINT .................................................................................... 127
4.6.7 Convert BCD4, BCD8, UINT, INT, DINT, and LREAL to REAL .................................................................. 129
4.6.8 Convert REAL to LREAL ....................................................................................................................................... 131
4.6.9 Convert DINT to LREAL ........................................................................................................................................ 131
4.6.10 Truncate .................................................................................................................................................................... 132