Delta AH500 Manual page 348

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH5 00 Mod ule Manua l
Example:
Suppose the first special module at the right side of the CPU module is AH10/15EN-5A. When X1.1
is switched from OFF to ON, the instruction TO is executed. The value stored in CR#3 in
AH10/15EN-5A changes from 0 to 1. 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 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
specifies the rack code. It should be in the range of 1 to 8. 1 represents a main
1
rack, and 2~8 represent extension racks.
 The operand m
specifies the slot code. It should be in the range of 0 to 11. If the rack code is 1,
2
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
specifies the control register number. The 16-bit memories built in the network
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 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
device
D0
D1
D2
D3
D4
D5
16 - bit instruction: n= 6
9 - 1 8
Specified
Specified
control register
device
CR #5
CR #6
CR #7
CR #8
CR #9
CR #10
Specified
control register
CR #5
D0
D1
CR #6
CR #7
D2
D3
CR #8
D4
CR #9
D5
CR #10
32-bit i ns tr uction: n=3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents