Chapter 5 Applied Instructions Explanation S : Initial bit device which is moved; D : Initial bit device which is moved; n 1 : Number of bits which are moved; n 2 : Number of bits forming a group The states of the n 1 bit devices starting from D are divided into groups ( n 2 bits as a group), and these groups are moved leftwards. The states of the n 2 bit devices starting from S are moved to the vacant devices in the devices starting from D . Generally, the pulse instruction SFTRP is used. 1≤ n 2 ≤ n 1 ≤1024 When X0.0 is turned from OFF to ON, the states of the sixteen bit devices starting from M0 are divided into groups (four bits as a group), and these groups are moved leftwards.
The states of the bit devices are moved leftwards in the order ~ during a scan cycle. M15~M12 → The states of M3~M0 are carried. M11~M8 → M15~M12 M7~M4 → M11~M8 M3~M0 → M7~M4 X0.3~X0.0 → M3~M0 Example Four bits as a group are moved leftwards. They are carried. 5 1 2 3 4 5-55 API Instruction code Operand Function Moving the states of bit 35 SFTL P S, D, n , n 1 2 devices leftwards Device Xn.n Yn.n M S K 16# F KnM KnS D W T C V Z S D n 1 n 2 Pulse instruction 16-bit instruction (9 steps) 32-bit instruction – SFTL X0.0 M0 K16 K4 X0 .3 X0.2 X0.1 X0.0 M15 M14 M13 M12 M11 M10 M9 M8 M7 M6 M5 M4 M 3 M2 M1 M0