A-23
Appendices
CJ-series PROFIBUS Master Unit Operation Manual for NJ-series CPU Unit (W509)
A-6 I/O Data Type Definitions
App
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.
Date, Time and Time Difference data types as defined in PROFIBUS are not supported by the NJ-
series controller unit. To ensure that workable data is transferred from PROFIBUS to the CPU mem-
ory, these data types are treated as 16-bit word data. The figure below illustrates the conversion.
Date and Time information is coded as defined by the PROFIBUS DP standard. The figure and the
table below define the format as it is stored in the CPU memory.
Note The grey areas in the figure above denote reserved bits, which are always set to 0.
A-6-4 Date/Clock Time Data Conversions
Word Bits Type Description Range
0 00 to 15 Time Milliseconds 0 to 59999
1 00 to 04 Hours 0 to 23
07 Daylight saving time indi-
cation
0: Standard time
1: Daylight saving time
08 to 13 Minutes 0 to 59
2 00 to 05 Date Month of the year 0 to 12
08 to 12 Day of the month 0 to 31
13 to 15 Day of the week 0 to 7
3 08 to 14 Year 0 to 99
PROFIBUS
Bit 07 Bit 00
Time [ms]
Time [min]
Time [hrs]
Date [day of week/month]
Date [month]
Date [year]Byte 7
Word 0
Word 1
CPU Data area
Bit 15 Bit 00
Byte 4Byte 3
Word 2
Byte 6Byte 5
Word 3
00Byte 7
Byte 1 (MSB)
Byte 2 (LSB)
Byte 4
Byte 3
Byte 5
Byte 6
Byte 2 (LSB)Byte 1 (MSB)
Word 0
Word 1
Word 2
Word 3
1514131211109876543210
Time [ms]
Time [min] Time [hrs]
Day [wk] Day [month] Month
Year
SU