Chapter 3 Programming
3
– 87
Declare instance of the function blocks and necessary variables as below.
By rising edge of xExecute bit of SetDateAndTime, data in dtDateAndTime is written to the RTC device.
By rising edge of xExecute bit of GetDateAndTime, current date and time is read out to the variable connected to
dtDateAndTime as shown below. When xExecute bit of GetDateAndTime is FALSE, dtDateAndTime is default
value 1970-1-1-0:0:0. That’s why the current time is copied only when xDone flag is high.
3.25.3 Serial communication
Add “SysCom” library by clicking “Add library” on Library manager. Instead of SysCom library, CAA SerialCom
can be used, but a sample program of SysCom library is shown in this manual.
Summary of Contents for EH-A14EDR
Page 6: ...MEMO ...
Page 10: ...MEMO ...
Page 141: ...Chapter 3 Programming 3 81 Program ...
Page 166: ...Chapter 5 Maintenance 5 4 MEMO ...
Page 170: ...Appendix A1 4 MEMO ...