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
Summary of Contents for SYSMAC CJ1W-PRM21
Page 2: ...iv...
Page 36: ...22 Basic Operating Procedure Section 1 5...
Page 52: ...38 Defining PROFIBUS DP in the Software Section 2 5...
Page 112: ...98 Allocated CIO Area Words Section 4 2...
Page 122: ...108 Command Response Reference Section 5 2...
Page 160: ...146 Replacing the Unit Section 7 8...
Page 174: ...160 Appendix...
Page 180: ...166 I O Data Conversions Appendix D...
Page 186: ...172 Configurator Error and Warning Messages Appendix E...
Page 187: ...173 Index...
Page 188: ...174 Index...
Page 190: ...176 Revision History...