6.25. MOV(Move) Move
6.25. MOV(Move):Move
Symbol | |
Relay combination | |
Factor | src: Source relay (or Number) dst: Destination relay |
Description | If Rung is activated, copy the value of scr into dst. If src is word(W) type, and dst is byte(B) type, only the lower byte of src value will be copied to dst. Also, all embedded PLC data is processed as a data with symbols. If src is byte(B) type, and the value is -1(&Hff), it will be copied to -1(&HFFFF) of dst. (&H00ff will be the value of 255). |
Usage example | MOV(BX3,RB2): Copy the value of XB3 into RB2. MOV(55,RB2): Copy 55 into RB2. MOV(-30,RB2): Copy -30 into RB2. |