Chapter 3 Standard Instructions When SM605 is ON, the data involved in the instruction is binary values. When the instruction SMOV is executed, transferred is composed of four bits. the binary values in D10 and D20 are not trasnformed into the binary-coded decimal numbers, and the digit which is 3_ 4 digit th 3 digit rd 2 digit nd 1 digit st D10 ( ) 16-bit binary number Transferring the digits D20 ( ) 16-bit binary number Unchanged 4 digit th 3 digit rd 2 digit nd 1 digit st Unchanged number in D10 is unchanged, and the number in D20 is 16#5128. Suppose the number in D10 is 16#1234, and the number in D20 is 16#5678. After the instruction is executed, the Example 3: 1.
The instruction can be used to combine the values of the DIP switches which are connected to the input terminals whose numbers are not consecutive. 2. The two digits of the value of the DIP switch at the right are transferred to the the two digits of the number which start from the second digit of the number in D2, and the one digit of the value of the DIP switch at the left is transferred to the the first digit of the number in D1. 3. The instruction SMOV can be used to transfer the first digit of the number in D1 to the third digit of the number in D2. In other words, the two DIP switches can be combined into one DIP switch by means of the instruction SMOV.
10 2 10 1 10 0 6 8 1 8 1 X0.3~X0.0 X1.15~X1.0 PLC 3-179 4 2 1 8