Q

Can I display an error when the line gets disconnected?

When the line gets disconnected, can I display on the screen a message stating that the line is disconnecting?

A

No, there is no dedicated function to detect that the line has been disconnected. However it is possible to display a message on the screen that states that the line is disconnecting, when communication from the Host cannot be reached, by using other general functions.

Outline

Use a "Timer type Global Memory" that performs the process set when a set time period has elapsed.

For example, make a Timer type Global Memory that displays "Communication Error"on the screen after 60 seconds elapse. But from this condition, after turning the power on and 60 seconds have elapsed, "Communication Error" will be displayed, so you will need to transmit a command to reset the 60 second count of the timer from the Host periodically.

This way, the Timer type Global Memory will not display "Communication Error" on the screen while the line is connected, But once the line gets disconnected, then the command to reset will not be received and error message will be displayed on the screen after maximum of 60 seconds elapse.

File name SAMPLE_communication_error_IS711-4_201.ipp
Project Version 2.1.2.201
Project Mode IS711-4S
Operation
  • "Communication Error" will be displayed 60 seconds after start-up.
  • Before communication error is displayed, send a communication command to preform subroutine [SUB00001] from the host and the timer to display the error will reset to 60 seconds.

Command to execute subroutine「SUB00001」(for RS232C)

{STX}00C0000000EPA07,SUB00001{CR}0544{ETX}

* {STX}stands for 0x02、{CR}stands for 0x0d、{ETX}stands for 0x03、others are Ascii codes.

Image diagram
image1
Main Settings

[ InfoSOSA side ]

1) Set the Timer type Global Memory as below:

  • Time-up is 60 seconds
  • Set action to display a pop-up for line disconnecting at time-up.
image2

2) Create "Subroutine to reset the timer". It will rest and count down 60 seconds.

image3

[ Host side ]

Issue a command "Subroutine to reset the Timer type" to every 10 seconds.

Command to execute for subroutine[SUB00001」(for RS232C)

{STX}00C0000000EPA07,SUB00001{CR}0544{ETX}

* {STX} stands for 0x02、{CR} stands for 0x0d、{ETX} stands for 0x03、others are Ascii codes.

With the above setting, the timer will not become times-up and nothing will happen, but when the lines are disconnected it will become times-up in 60 seconds and an error message will be displayed.