Kaiyi — 9.3.4 Introduction of the Related Instructions

AH500 Module Manual The use of the parameters:  The module is placed on the main rack. Therefore, the rack code stored in D40 is 16#0001.  The module is inserted in the first slot. Therefore, the slot code stored in D41 is 16#0000.  The operation mode is stored in CR#3. Therefore, the control register number stored in D42 is 16#0003.  Owing to the fact that the operation mode occupies one register, the value in D2 is 1.  The data which is written into CR#3 is stored in D100. Therefore, the value in D100 is 16#0001. The regulation of the operands in the instruction:  The operand m 1 specifies the rack code. It should be in the range of 1 to 8.

1 represents a main rack, and 2~8 represent extension racks.  The operand m 2 specifies the slot code. It should be in the range of 0 to 11. If the rack code is 1, the slot code should be in the range of 0 to 11. If the rack code is in the range of 2 to 8, the slot code should be in the range of 0 to 7.  The operand m 3 specifies the control register number. The 16-bit memories built in the network modules are called the control registers. The control register numbers are decimal numbers #0~#N, and the number of control registers varies with the module. The operating conditions of the network module and the setting values are stored in the control registers.

 At most 68 special modules can be placed on the rack, and they do not occupy inputs/outputs.  If the instruction FROM/TO is used, one control register is taken as a unit for the reading/writing of the data. If the instruction DFROM/DTO is used, two control registers are taken as a unit for the reading/writing of the data.  The n which is 2 in the 16-bit instruction has the same meaning as the n which is 1 in the 32-bit instruction. Specified control register Specified Specified control register CR #5 CR #5 CR #6 CR #7 CR #6 CR #7 CR #8 CR #9 CR #8 CR #9 CR #10 CR #10 Additional remark: 1.

If the values in m 1 and m 2 exceed the range, the operation error occurs, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 2. If S ~ S + n -1 exceeds the device range, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 16 -bit instruction: n=6 32-bit instruction: n=3 9-18 Specifi device D0 D1 D2 D3 D4 D5 D0 D1 D2 D3 D4 D5 con device D0 D1 D2 D3 D4 D5 D0 D1 D2 D3 D4 D5