Kaiyi — 8.4.2 Introduction of the Related Instructions

Chapter 8 Serial Communication Module AH10SCM 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 mode of the data exchange through COM1 is stored in CR#7. Therefore, the control register number stored in D42 is 16#0007.  Owing to the fact that the mode of the data exchange through COM1 occupies one register, the value in D2 is 1.  The data which is written into CR#7 is stored in D100. Therefore, the value in D100 is 16#0002. 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 special 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 special 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 device Specified control register Specified device Specified control register D0 D1 CR #5 CR #6 D0 D1 CR #5 CR #6 D2 CR #7 D2 CR #7 D3 D4 CR #8 CR #9 D3 D4 CR #8 CR #9 D5 CR #10 D5 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 exceed the device range, the instruction is not executed, SM0 is ON, and the error 16 -bit instruction: n=6 32-bit instruction: n=3 8-19