AH500 Motion Control Module Manual 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 rightwards. 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 WSFRP 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 Explanation 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 rightwards. The values in the word devices are moved rightwards in the order ~ during a scan cycle. D23~D20 → The values in D23~D20 are carried. D27~D24 → D23~D20 D31~D28 → D27~D24 D35~D32 → D31~D28 D13~D10 → D35~D32 X0.0 Example WSFRP 5 D20 They are carried.
3 4 1 2 5-56 API Instruction code Operand Function Moving the values in 36 WSFR P S, D, n , n 1 2 word devices rightwards 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 – D10 D20 K16 K4 D13 D1 2 D11 D10 D35 D3 4 D33 D32 D31 D30 D29 D28 D27 D26 D25 D24 D23 D22 D21