Input And Output Submodule Data Format - Comtrol DeviceMaster PNIO 2000 Series User Manual

Table of Contents

Advertisement

Input and Output
Submodule Data
Format
DeviceMaster PNIO | UP User Guide: 2000639 Rev. A
Each submodule can be inserted to one of the two available sub-slots of an IO
module. Sub-slot 1 is reserved for an input submodule; Sub-slot 2 is for an output
submodule. The following table illustrates the available submodules and their
allowed sub-slots.
Sub-slot
1
Input submodule (4, 8, 16, 32, 64, 128, 220 bytes)
2
Output submodule (4, 8, 16, 32, 64, 128, 220 bytes)
In the Inserting Submodules in TIA Portal figure (above), a 32 bytes input
submodule is inserted in Slot 1 Sub-slot 1; a 32 bytes output submodule is inserted
in Slot 1 Sub-slot 2. Therefore Serial Port 1 is able to receive up to 32 bytes input
data and transmit up to 32 bytes output data.
Similarly, you can configure an Ethernet device by inserting an Ethernet module,
then inserting desired input and output submodule into the Ethernet module.
Here are some tips when configuring IO modules and submodules.
A Serial or Ethernet module must be inserted first in order to configure the
submodules.
If you do not find an exact matching IO size, select the next size (larger). For
instance, use the Input 128 Bytes submodule for a device that has 80 bytes
input data.
The input data size and output data size are independent. You can configure a
serial module to have 64 bytes input data and 32 bytes output data.
For input only devices, leave the Sub-slot 2 open. For output only devices, leave
the Sub-slot 1 open.
If a serial port or an Ethernet device is not in use, simply leave the
corresponding slot open.
Note: Certain versions of TIA Portal may not allow both sub-slots open. You must
insert at least one submodule for a serial or Ethernet module.
The following data type definitions apply.
Data Type
BYTE
An integer 0 - 255 (8-bit) e.g. ASCII strings are a series of bytes.
WORD
Unsigned integer (16-bit)
DWORD
Unsigned integer (32-bit)
The next table shows the data format of an input submodule. The sequence
number range is from 0 to 65535 (16#FFFF). Once the sequence number reaches
65535, it restarts at 0. The data length range is from 0 to 220, indicating the
number of bytes received. The actual data starts from offset 4.
Input Submodule
Byte Offset
0-1
WORD
2-3
WORD
4..N
Array of BYTE
When a packet that is larger than the configured input submodule is received, the
packet is truncated by default. However, the length field always contains the
original packet size. For example, a serial port is configured with a 32 byte input
submodule. A packet of 40 bytes is received. The IO controller will receive the first
32 bytes input data and the length field will be 40. A length field larger than the
size of input submodule indicates that the data has been truncated. Refer to
Configuring the DeviceMaster in TIA Portal
Allowed Submodules
Data Type Definition
Data Type
Sequence Number (Big endian)
Data Length (Big endian)
Data Array (Maximum 220 bytes)
Configuring the DeviceMaster in TIA Portal - 81
Description

Advertisement

Table of Contents
loading

Table of Contents