A-6-4 Date/Clock Time Data Conversions - Omron CJ Series Operation Manual

Master unit
Hide thumbs Also See for CJ Series:
Table of Contents

Advertisement

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.
A-6-4
Date/Clock Time Data Conversions
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.
Bit 15
Word 0
Byte 1 (MSB)
Word 1
Word 2
Word 3
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.
Word 0
Word 1
Word 2
Word 3
Note The grey areas in the figure above denote reserved bits, which are always set to 0.
Word
Bits
0
00 to 15
1
00 to 04
07
08 to 13
2
00 to 05
08 to 12
13 to 15
3
08 to 14
CJ-series PROFIBUS Master Unit Operation Manual for NJ-series CPU Unit (W509)
CPU Data area
Bit 00
Byte 2 (LSB)
Byte 3
Byte 4
Byte 5
Byte 6
Byte 7
00
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Time [min]
Day [wk]
Day [month]
Year
Type
Description
Time
Milliseconds
Hours
Daylight saving time indi-
cation
Minutes
Date
Month of the year
Day of the month
Day of the week
Year
PROFIBUS
Bit 07
Bit 00
Byte 1 (MSB)
Time [ms]
Byte 2 (LSB)
Time [min]
Byte 3
Byte 4
Time [hrs]
Byte 5
Date [day of week/month]
Byte 6
Date [month]
Byte 7
Date [year]
Time [ms]
Time [hrs]
SU
Month
Range
0 to 59999
0 to 23
0: Standard time
1: Daylight saving time
0 to 59
0 to 12
0 to 31
0 to 7
0 to 99
Appendices
A-23

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj seriesProfibus cj1w-prm21

Table of Contents