Configuring the IO Controller
Section 7-4
107
All conversions work both ways, i.e. when transferring data from the PLC data
area to the PROFINET IO network and when transferring data from the
PROFINET IO network to the PLC data area.
The following conversion steps are required here: Every two data bytes are
stored in 1 word in the same sequence as in the case of 16-bit integer data,
but the two words, required to store the 4 bytes must be swapped, for the PLC
data area. The conversion has to be reversed when transferring data from the
PLC data area to the PROFINET network.
Text strings
Both PROFINET IO and the CJ1 System define the ASCII text strings as data
format. The figure below shows the format both on the PROFINET IO network
and in the PLC data area. The data bytes on the PROFINET IO network are
transmitted in the sequence shown in the figure, i.e. Byte 0 is transmitted and
received first, after that byte 1, etc.
Figure 7.18: String conversion
The following format conversions are required:
1 On the PROFINET IO network, the text strings are handled as a sequence
of 8-bit bytes, but the storage in the PLC data area is following the
(unsigned 16-bit) word storage method, i.e. the bytes are stored in a high-
byte/low-byte sequence.
2 If the number of text characters is even, all bytes will fit in the words, but
one additional word must be set to 0000. If the number of bytes is odd, the
last byte of the sequence will be mapped to the high-byte of the last word.
The low-byte of the last word must be padded with a 0.
In case of transmissions of text strings, the trailing zero byte or word is not
transmitted along with the string.
Char 0
Char 1
PLC Data area
PROFINET
Bit 07
Bit 00
Char n-1
Char n
Char 1
Char 0
Bit 15
Bit 00
Word 0
Char n
Char n-1
Word (n+2)/2
ASCII Text string
Содержание CJ1W-CRM21
Страница 1: ...CJ1W PNT21 PROFINET IO Controller Unit OPERATION MANUAL Cat No W12E EN 02 ...
Страница 2: ......
Страница 7: ...vii ...
Страница 16: ......
Страница 26: ...Basic operating procedure Section 2 4 10 ...
Страница 46: ...Installation of Configuration Software Section 3 5 30 ...
Страница 76: ...Generic IO Device DTM Section 4 4 60 ...
Страница 151: ...135 Index The index specifies the data related to a specific subslot to be read or written acyclically ...
Страница 156: ...140 ...
Страница 164: ...146 ...
Страница 168: ...150 ...
Страница 170: ...Section 152 ...