AH500 Programming Manual X0.0 is switched from OFF to ON, the instruction FROM is executed. The mode of the data exchange through COM1 on AH50010SCM-5A stored in CR#7 is read into D100. Owing to the fact that no error occurs, the code stored in D110 is 16#0000. 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 D43 is 1. The data which is read from CR#7 is stored in D100. 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 D 1 ~ D 1 + n -1 exceed the device range, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 3. If the value in n exceeds the range, the operation error occurs, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#200B. 4.
Due to the fact that the use of the instruction FROM decreases the execution efficiency of the CPU module and that of the I/O module, users should use it less often. 5. The descriptions of the error codes: 6-318 Error code Description 16#2003 Please refer to point 1 and point 2 in the additional remark. 16#200B Please refer to point 3 in the additional remark. 16#1400 An error occurs when the data is accessed through the auxiliary processor. 16#1401 An error occurs when the data in the I/O module is accessed. 16#1402 The arrangement of the I/O modules is not consistent with the module table. 16#1407 A communication error occurs when the data is accessed through the auxiliary processor.