WI-GTWY-9-xxx Wireless Gateway V1.18
79
Note:
If analog values are read to and written from an integer file in an SLC or Micrologix CPU,
integer files contain 16 bit
signed
values. These represent values in the range -32768 to 32767. The
data values from the WI-I/O 9-x modules are treated as 16 bit
unsigned
values. To convert the data
from an analog input, move the data from the integer file to a long file (MOV command) then mask
out the high 16 bits (MVM with mask value FFFF). This will result in a long integer value in the
range 0 to 65535.
Alternatively, use a long integer file type to transfer the analog value as a long integer in the range
0-65535.
Pulse I/O
Pulse counts from the remote WI-I/O 9-x modules are shown as a 16-bit register. When the
register rolls over, from ‘FFFF’ (hex), the next value will be ‘0001’. The register will only have a
value of ‘0000’ when the remote module starts up, and the previous count is lost. This value will
indicate that the counter has reset.
Note:
The values from the WI-GTWY-9-xxx module are 16 bit
unsigned
values. When they are
copied to the Integer file in the PLC, they will be treated as 16 bit
signed
values. These values
may be converted to the original (unsigned) values using the MOV and MVM instructions
described in the previous section (Analog I/O). Again, using a Long Integer type will avoid this
problem.
500 CPU (SLC and MicroLogix) file types and addressing
The WI-GTWY-9-xxx provides a linear address space of 10,000 data words. This is compatible
with PLC2 addresses, but does not match the addressing used by the 500CPU modules (SLC and
Micrologic). These address data by file number and file offset. To address an I/O register,
L,
in
the WI-GTWY-9-xxx, use DF1 file number
L
/ 100, with the remainder value (L % 100) as the
DF1 file offset. For example, to read I/O register 2643 in the WI-GTWY-9-xxx, read from file
number 26, offset 43.