308
Jetter AG
10 Programming
Operating principle
The application program monitors the activity of a client communicating with a
server of the device JC-120MC by means of two special flags and one special
register per interface.
The illustration below shows the interdependence between interface activity
and the two special flags, as well as the special register:
Telegrams
OS Flag
User Flag
Timeout
Application program:
WHEN OS_FLAG Continue
User_FLAG := TRUE;
1
2
3
4
Number
Element
Description
1
Telegrams
The client places requests to the server.
2
OS flag
OS flag set by the device JC-120MC after
receiving a request
3
User flag
You must set the user flag in the application
program once the device has set the OS
flag.This indicates that the connection has
temporarily been disrupted even if the device
resets the OS flag very quickly.
4
Timeout
Time of inactivity after which the OS resets both
special flags. This time can be set in a special
register.
Interface activities are monitored as follows:
Step
Description
1
Enter the desired value into the timeout register of the application
program. This way, the monitoring mode is activated as well.
2
When the controller receives the next telegram, the device JC-120MC sets
the corresponding OS flag.
3
If the OS flag has been set, the application program also sets the
respective user flag.
4
Each new telegram causes the timeout to restart.
Introduction
Overview
Description
Summary of Contents for JC-120MC
Page 1: ...User Manual JC 120MC Controller 60880901 We automate your success...
Page 18: ......
Page 40: ...40 Jetter AG 3 Identifying Hardware revisions see page 38 Related topics...
Page 160: ......
Page 186: ......
Page 196: ......
Page 485: ...Jetter AG 485 JC 120MC Programming Topic Page Programming 486 Registers 498 Contents...
Page 521: ...Jetter AG 521 JC 120MC Programming Use 29 bit identifier Default 11 bit identifier...
Page 586: ......
Page 604: ......
Page 633: ......