User`s manual
Western Reserve Controls 1782-JDM User’s Manual
PUB 24.0
6
master. The DeviceNet Master can receive and send data to and from the JDM via the methods described
in this section. It interprets messages received from the DeviceNet connection, and if it is a ModBus
message, reformats and sends it to the ModBus device. Likewise, it accepts and interprets responses
from the ModBus device, which are reformatted and passed back to the DeviceNet system as required.
The JDM has one DeviceNet address. All Explicit DeviceNet messages to the JDM itself (to read / write its
internal data) are sent to this address. The ModBus devices are communicated to using poll messages
sent to the JDM and poll responses received from the JDM. See Section 2.4 and 2.5 for details.
The JDM Parameter Object allows you to define the specific operation of each JDM. These parameters
include set-up for the serial comm link and the fault and idle actions and data. See Section 4 for details.
Each ModBus device connected to the JDM has a ModBus address between 1 and 247. This address is
used by the host system and the JDM to identify which device on the ModBus network is being selected
for each message.
Table 1-1 Data Message Options
I/O Type Polled Cyclic Bit-Strobe Change-of-State Explicit Message
ModBus Device
Commands
√
√√
√
ModBus Device
Status
√
√√
√
JDM Parameters
√
√√
√
The following sections describe how the data is accessed.
1.4.1 Polled I/O
The master can poll the run-time data used in the JDM. The communications is a two-part transaction:
there is a Poll Command from the host to the JDM and the JDM responds with a Poll Response using the
response of the addressed ModBus device.
How do I send a poll command to write data?
The poll command can set multiple registers of data per output command, depending upon the ModBus
command used. First, define the ModBus command string desired to send to the ModBus device. Enter
this data in binary format – the normal format for RTU mode. This format is also used if in ModBus ASCII
mode – the JDM will translate from binary to ASCII. Do not include the leading colon (for ASCII mode) or
the CRC or LRC. Determine the number of bytes to be written, with the data in binary format. Then set up
your scanner to write the defined number bytes of data to the JDM plus two (2).
Any ModBus command and register that is appropriate to the target ModBus device are valid. See the
ModBus device’s user’s manual for more details on which commands are supported.
How do I send a poll command to read data?
The poll command can read multiple ModBus Device status registers’ data per poll command, as
supported by the device, up to a limit of 100 bytes of data on the DeviceNet message. First, set up your
scanner to read the number of bytes of data expected from the JDM plus three (3), depending upon the