Documente Academic
Documente Profesional
Documente Cultură
The content of this document is the property of Schneider Electric. It may not be reproduced in
whole or in part without written permission of the owners.
Schneider Electric, All rights reserved.
Revision History
Version
V1.0
Date
05-10-11
V1.1
13-10-11
Author
Marcin
Wojciechowicz
Marcin
Wojciechowicz
Description
Initial Release
Update after review
Toolbox - Hx_Calculator
Page 2 of 6
Schneider Electric
Table of Contents
1
Toolbox - Hx_Calculator
Page 3 of 6
Schneider Electric
Table of Figures
Figure 1: Function Block Pin diagram .................................................................................................. 5
Figure 2: Function Block UML diagram................................................ Error! Bookmark not defined.
Figure 3: Hx diagram...............................................................................Error! Bookmark not defined.
Toolbox - Hx_Calculator
Page 4 of 6
Schneider Electric
Data Type
dtDateTime
CJ_DATETIME
xTrigger
CJ_BIT
Description
Range
Scaling/
Unit
Remarks
n/a
n/a
xResult
Data Type
Description
CJ_BIT
Toolbox - Hx_Calculator
Range
TRUE
or
FALSE
Scaling/
Unit
n/a
Remarks
The output is
not
persistent; is
reset to
FALSE after
power cycle.
Page 5 of 6
Schneider Electric
1.2 Design
1.2.1 Internal structure
Internally the function block is using the system function RTCWrite(CJ_BYTE ClockID: 0 = M168
controller clock, CJ_DATETIME DateTime: dtDateTime) function to set the controller RTC clock. After
that the system command is send to synchronize all RTC clocks connected to the expansion bus
CJ_SendCommand(CJ_BYTE channel: 0 = CAN local, CJ_BYTE node: 255 = Broadcast, CJ_BYTE
command: 3 = CJ_CMD_SYNC_CLOCK, CJ_SHORT par1: 0);
Toolbox - Hx_Calculator
Page 6 of 6
Schneider Electric