Rockwell Automation 57C610 Enhanced Basic Language, AutoMax User Manual
Page 81
6Ć41
6.8.5
IOWRITE Statement (Accessing Foreign I/O)
See JĆ3649, JĆ3750 or J2Ć3045 for the requirements for using foreign
modules in an AutoMax system. Once it is determined that all the
requirements have been met, you can use the IOWRITE statement
to write to the foreign modules. The IOWRITE statement can also be
used to write to AutoMax Modules that have not been configured.
The base address of each slot in an AutoMax chassis is:
slot #0
ĆAddress Range 200000 Ć
20FFFF(Hex)
slot #1
ĆAddress Range 210000 Ć
21FFFF(Hex)
slot #2
ĆAddress Range 220000 Ć
22FFFF(Hex)
slot #3
ĆAddress Range 230000 Ć
23FFFF(Hex)
slot #4
ĆAddress Range 240000 Ć
24FFFF(Hex)
slot #5
ĆAddress Range 250000 Ć
25FFFF(Hex)
slot #6
ĆAddress Range 260000 Ć
26FFFF(Hex)
slot #7
ĆAddress Range 270000 Ć
27FFFF(Hex)
slot #8
ĆAddress Range 280000 Ć
28FFFF(Hex)
slot #9
ĆAddress Range 290000 Ć
29FFFF(Hex)
slot #10 ĆAddress Range 2A0000 Ć
2AFFFF(Hex)
slot #11 ĆAddress Range 2B0000 Ć
2BFFFF(Hex)
slot #12 ĆAddress Range 2C0000 Ć
2CFFFF(Hex)
slot #13 ĆAddress Range 2D0000 Ć
2DFFFF(Hex)
slot #14 ĆAddress Range 2E0000 Ć
2EFFFF(Hex)
slot #15 ĆAddress Range 2F0000 Ć
2FFFFF(Hex)
Each slot in the rack has 64 K of address space.
Attempting to access memory on AutoMax Processors is not
permitted. The following is the format of the IOWRITE statement:
IOWRITE(option, data, address)
where:
option =
the kind of write to take place; literal or
expression:
1 = single byte write (low byte of data is written to the
address)
2 = double byte write (address must be even)(MSB is
written to the address) (LSB is written to the
address + 1) This option is used to write to
foreign I/O modules that only support an 8Ćbit
data path.
3 = word write (address) = A 16Ćbit word is written to
the designated address. This option writes data
to modules that support AutoMax addressing
and data conventions.
4 = long word write (address) = MSB
(address + 1) = next 8 bits
(address + 2) = next 8 bits
(address + 3) = LSB
data =
integer variable name or expression defining
data to output; literal or expression
address =
double integer variable name or expression
defining the destination address; literal or
expression; must be > 220000H