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.
Содержание EH-A14EDR
Страница 6: ...MEMO ...
Страница 10: ...MEMO ...
Страница 141: ...Chapter 3 Programming 3 81 Program ...
Страница 166: ...Chapter 5 Maintenance 5 4 MEMO ...
Страница 170: ...Appendix A1 4 MEMO ...