Serial Communication - Hitachi MICRO-EHV+ Applications Manual

Table of Contents

Advertisement

Chapter 3
Programming
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.
3 – 87

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents