AH500 Motion Control Module Manual Explanation S : Initial device which is moved; D : Initial 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 rightwards. 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 rightwards.
The states of the bit devices are moved rightwards in the order ~ during a scan cycle. M3~M0 → The states of M3~M0 are carried. M7~M4 → M3~M0 M11~M8 → M7~M4 M15~M12 → M11~M8 X0.3~X0.0 → M15~M12 X0.0 Example Four bits as a group are moved rightwards. 5 3 4 1 2 5-54 API Instruction code Operand Function Moving the states of bit 34 SFTR P S, D, n , n 1 2 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 instructio n 16-bit instruction (9 steps ) 32-bit instruction – SFTR X0.0 M0 K16 K4 X0.2 X0.1 X0.0 M14 M13 M12 M11 M10 M9 M8 M7 M6 M5 M4 M 3 M2 M1 M0