Delta AH500 Programming Manual page 487

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

Example:
Suppose the first special module at the right side of the CPU module is AH50010SCM-A5. When
X1.1 is switched from OFF to ON, the instruction TO is executed. The mode of the data exchange
through COM1 on AH50010SCM-5A stored in CR#7 changes from being disabled to being enabled.
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 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
specifies the rack code. It should be within the range between 1 and 8. 1
1
represents a main rack, and 2~8 represent extension racks.
The operand m
specifies the slot code. It should be within the range between 0 and 11. If the
2
rack code is 1, the slot code should be within the range between 0 and 11. If the rack code is
within the range between 2 and 8, the slot code should be within the range between 0 and 7.
The operand m
specifies the control register number. The 16-bit memories built in the special
3
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.
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
6-319

Advertisement

Table of Contents
loading

Table of Contents