Addressing
5.3.
Allocation of the Parameter Addresses in the IP 265 User Program
and in the CPU User Program
In order to prevent programming errors, the tables below give you an overview of the correct
addressing of the parameters of the IP 265 (repetition from the preceding sections).
The information given in Tables 5-7 and 5-8
•
illustrates the differences in programming of the parameters in the IP 265 user program (IP 265
viewpoint) and in the CPU user program (CPU viewpoint),
•
allocates the parameter addresses in the CPU user program to the IP 265 user program
Table 5-7. Addresses of the Input Parameters of the IP 265
Possible
Input Parameters
Count, time value
Bit input
parameter
*
M.addr=Module address ( Table 5-4)
Table 5-8. Addresses of the Output Parameters of the IP 265
Possible Output
Parameters
Count
Bit output
parameter
*
M.addr=Module address ( Table 5-4)
5-8
Direct Addressing in the
Data
CPU User Program
Type
(Slot-Dependent)
10 bit
QW z ;
count,
10 bit
time
value
Bit
Q z.y ;
Direct Addressing in the
Data
CPU User Program
Type
(Slot-Dependent)
10 bit
IW z ;
count
Bit
I z.y
;
z (M.addr
+2,
IW x ;
*
M.addr+4,
M.addr+6)
z (M.addr *+2 to
I x.y
M.addr+7)
y (0 to 7)
z (M.addr
+2,
QW x ;
*
M.addr+4,
M.addr+6)
x (M.addr *+2 to
Q x.y ;
M.addr+7)
y (0 to 7)
Direct Addressing in the
IP 265 User Program
(Slot-Independent)
x (66, 68, 70)
;
x (66 to 71)
y (0 to 7)
Direct Addressing in the
IP 265 User Program
(Slot-Independent)
x (66, 68, 70)
x (66 to 71)
y (0 to 7)
EWA 4NEB 812 6130-02a
IP 265