Chapter 5 Applied Instructions Explanation S : Initial word device which is moved; D : Initial word device which is moved; n 1 : Number of values which are moved; n 2 : Number of values forming a group The values in the n 1 word devices starting from D are divided into groups ( n 2 values as a group), and these groups are moved leftwards. The values in the n 2 word devices starting from S are moved to the vacant word devices in the word devices starting from D . Generally, the pulse instruction WSFLP is used. If KnM/KnS is used, it is suggested that M device numbers/S device numbers should start from a number which is a multiple of 16 in the decimal numeral system, e.g.
K1M0 and K4S16 (decimal numeral system). 1≤ n2 ≤ n1 ≤512 When X0.0 is turned from OFF to ON, the values in the sixteen word devices starting from D20 are divided into groups (four values as a group), and these groups are moved leftwards. The values in the word devices are moved leftwards in the order ~ during a scan cycle. D35~D32 → The values in D35~D32 are carried. D31~D28 → D35~D32 D27~D24 → D31~D28 D23~D20 → D27~D24 D13~D10 → D23~D20 X0.0 Example Four values as a group are moved leftwards. They are carried.
5 1 2 3 4 5-57 API Instruction code Operand Function Moving the values in 37 WSFL P S, D, n , n 1 2 word 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 – WSFLP D10 D20 K16 K4 D1 3 D12 D11 D1 D35 D34 D33 D32 D31 D30 D29 D 28 D27 D26 D25 D24 D2 3 D22 D21 D2