Reference programming Similar Functions LMOD 7.2.3.6 MOVE Assignment of a variable to another variable of an appropriate type. As MOVE is available as a box in the graphic editors LD, CFC, there the (unlocking) EN/EN0 functionality can also be applied on a variable assignment. In the FBD editor this is not possible however. Example in CFC in conjunction with the EN/EN0 function: Only if en_i is TRUE, var1 will be assigned to var2. Example in IL: LD ivar1 MOVE ST ivar2 (* Ergebnis: var2 erhдlt Wert von var1 *) ( ! you get the same result with: LD ivar1 ST ivar2 ) Example in ST: ivar2 := MOVE(ivar1); ( ! you get the same result with:
ivar2 := ivar1; ) 7.2.4 Bitstring Operators 7.2.4.1 AND Bitwise AND of bit operands. The operands should be of the type BOOL, BYTE, WORD or DWORD. Example in IL: var1 :BYTE; LD 2#1001_0011 AND 2#1000_1010 ST var1 (* Result is 2#1000_0010 *) Example in ST: var1 := 2#1001_0011 AND 2#1000_1010 Example in FBD: TX1200 199 Version: 1.3