AH500 Programming Manual API 1101 Symbol: S : Initial device in which the value is shifted Bit D : Initial device in which the value is shifted Bit n 1 : Length of the data which is shifted Word n 2 : Number of bits forming a group Word 1. 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 shifted to the left. The states of the n 2 bit devices starting from S are shifted to the devices starting from D to fill the vacancy. 2. Generally, the pulse instruction SFTLP is used. 3. The operand n 1 should be within the range between 1 and 1024. The operand n 2 should be within the range between 1 and n 1 . Explanation: Example 1: 1.
When X0.0 is switched 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 shifted to the left. 2. The shift of the states of the bit devices to the left during a scan is illustrated as follows. M15~M12 → Being carried M11~M8 → M15~M12 M7~M4 → M11~M8 M3~M0 → M7~M4 X0.3~X0.0 → M3~M0 6-238 Instruction code Operand Function SFTL P S, D, n , n 1 2 Shifting the states of the devices to the left Device X Y M S T C HC D L SM SR E PR K 16# “$” DF S D n 1 n 2 Pulse instruction 16-bit instruction (9 steps) 32-bit instruction AH500 AH500 -