Jetter AG
207
JVM-407B
Programming
Sample program - Real-time clock
Read the actual time and date of the JVM-407B and have the values
displayed.
An application program task reads out the real-time clock at regular intervals.
Then it outputs the readings properly formatted as trace message.
When you activate the trace mode in JetSym, JetSym displays these
readings.
The sample program has been tested for compliance with the following
software versions:
JetSym version 5.1
HMI JVM-407B, OS version 4.01
For more information on programming by STX, please turn to the online help
in JetSym.
Type
// Structure of the RTC buffer
TimeAndDate:
Struct
Second: Int;
Minute: Int;
Hour: Int;
DayOfWeek: Int;
Day: Int;
Month: Int;
Year: Int;
Trigger: Int;
End_Struct
;
End_Type
;
Var
RTCregs: TimeAndDate
At
%VL
102921
;
End_Var
;
Task
ShowTimeAndDate
Autorun
Var
Dummy: Int;
End_Var
;
Loop
// One second delay time
Delay(
T#1s
);
// Copying current time and current date into RTC buffer
Dummy := RTCregs.Trigger;
Task
Solution
Software versions
JetSym STX program
Summary of Contents for JVM-407B-HMI
Page 1: ...User Manual JVM 407B HMI 60879892 We automate your success...
Page 14: ......
Page 26: ...26 Jetter AG 2 Product description and design Rear view...
Page 34: ......
Page 80: ......
Page 106: ......
Page 144: ......
Page 168: ......
Page 178: ......
Page 182: ......
Page 258: ......
Page 268: ......
Page 274: ......
Page 294: ...294 Jetter AG Appendix Rear view...
Page 299: ......