User manual

105G Wireless Gateway User Manual
Elpro_man_105g_1.18.doc Page 74
Command Description Code Function
Code
Comment
Protected Write 0x00
NONE
PLC2 series and SLC / Micrologix
Unprotected Read 0x01
NONE
PLC2 series and SLC / Micrologix
Diagnostic Status 0x06
0x00
Diagnostic Commands
Echo message 0x06 0x00
Unprotected Write 0x08
NONE
PLC2 series and SLC500 / Micrologix
Typed logical Read 0x0F 0xA2 Type SLC500 and Micrologix
Read Bits
0x0F
0xA2 0x85 Reads MSB of each 105G I/O register and
writes the bits to the destination register,
starting at the LSB of the register. Min.
transfer is 16 bits.
Read Integers
0x0F
0xA2 0x89 Return signed 16 bit value
Read Long Ints
0x0F
0xA2 0x91 Unsigned 16 bit register per long-word
Typed logical Write 0x0F 0xAA Type SLC500 and Micrologix
Write Bits
0x0F
0xAA 0x85 Writes bits from the source register, starting
at the LSB, to the MSB of a block of 105G
I/O registers. Min. transfer is 16 bits.
Write Integers
0x0F
0xAA 0x89 Writes a signed 16 bit value
Write Long Integers
0x0F
0xAA 0x91 Low 16 bits of long-word placed in register.
Upper 16 bits ignored.
The SLC and Micrologix PLC’s read/write two types of registers. An “Integer” has a signed 16
bit value (-32768 to 32767). A “Long Integer” has a 32 bit value. The 105G registers contain an
unsigned 16 bit value (0 to 65535). We recommend that you use Long Integer read/write commands
- the upper 16 bits of the 32 bit value will be ignored. Refer to more information in the Analog I/O
and Pulse I/O sections below. The PLC2 uses unsigned 16 bit registers in the same format as the
105G.
The 105G DF1 driver will update remote outputs whenever a data value changes by more than
the I/O register sensitivity. If the response from a data request contains a changed data value, the
new value will be transmitted to the remote 105U on the radio network. Similarly, if the 105G
receives a command to change a data value, the new value will be transmitted to the remote
105U module.
The DF1 commands are configured in the “Serial Mapping” screen. The serial port should be
configured in the same way as the host device. If the 105G acts only as a command responder,
no further configuration is required.
If the 105G acts as a command initiator, you can enter a “Request Delay” between commands
sent to the host. To enter a DF1 command, select “New Serial Mapping”. The following
example is a file write command which writes 105G I/O registers 80 – 104 (25 registers) to DF1
files I3.1 to I27.1 at DF1 address 2.