![background image](http://html1.mh-extra.com/html/omron/sysmac-cj1w-prm21/sysmac-cj1w-prm21_operation-manual_743083179.webp)
165
I/O Data Conversions
Appendix D
D-4
Text String Data Conversion
PROFIBUS defines ASCII text strings data type. It is transferred over the network as a string of characters. In
order to maintain a readable string in the PLC Memory, the data is converted to fit the odd character in the
Most Significant Byte of the words, and the even characters in the Least Significant Byte of the words. The
string is stored on ascending word addresses in PLC Memory. The figure below illustrates the conversion.
Note m = (n-1)/2, rounded to the next lowest integer.
If the number of text characters is even, all bytes will fit in the words, but one additional word will 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 will be padded with a 0.
D-5
Date and Time Data Conversions
Date, Time and Time Difference data types as defined in PROFIBUS are not supported by the CS1/CJ1-series
PLC. To ensure tat workable data is transferred from PROFIBUS to the PLC memory, these data types are
treated as 16-bit word data.
Char 1
Char 2
PLC Data area
PROFIBUS
Bit 07
Bit 00
Char n-1
Char n
Char 2
Char 1
Bit 15
Bit 00
Word 0
Char n
Char n-1
Word m
ASCII Text string
Содержание SYSMAC CJ1W-PRM21
Страница 2: ...iv...
Страница 36: ...22 Basic Operating Procedure Section 1 5...
Страница 52: ...38 Defining PROFIBUS DP in the Software Section 2 5...
Страница 112: ...98 Allocated CIO Area Words Section 4 2...
Страница 122: ...108 Command Response Reference Section 5 2...
Страница 160: ...146 Replacing the Unit Section 7 8...
Страница 174: ...160 Appendix...
Страница 180: ...166 I O Data Conversions Appendix D...
Страница 186: ...172 Configurator Error and Warning Messages Appendix E...
Страница 187: ...173 Index...
Страница 188: ...174 Index...
Страница 190: ...176 Revision History...