Siclose - Sensor Interface Close - ABB IRC5 Applications Manual

Hide thumbs Also See for IRC5:
Table of Contents

Advertisement

5 RAPID reference information

5.1.2 SiClose - Sensor Interface Close

5.1.2 SiClose - Sensor Interface Close
Usage
SiClose closes an existing connection to an external device.
Basic examples
Basic example of the instruction SiClose is illustrated below.
Example 1
Close the connection to the device called AnyDevice.
Arguments
Sensor
Data type: sensor
The descriptor for the external device that should be closed. The argument is a
persistent variable, and its name must be the same as the name specified as the
client in the setup file Settings.xml.
Program execution
Closes an existing connection to the external device.
Error handling
If UDP is used as communication protocol then there is no guarantee regarding
the success of the close operation and therefore no error handling is possible.
If TCP is used as communication protocol the system variable ERRNO is set to
ERR_COMM_INIT if the close operation fails. This error can then be handled in an
error handler.
Syntax
Related information
For information about
Establish a connection to an external system.
Register data for cyclic transmission.
Subscribe on cyclic data transmission.
Descriptor to the external device.
Continues on next page
36
PERS sensor AnyDevice;
...
SiClose AnyDevice;
SiClose Sensor
SiClose
[ Sensor ':=' ] < persistent (PERS) of sensor > ';'
© Copyright 2008-2009,2013 ABB. All rights reserved.
See
SiConnect - Sensor Interface Connect on
page
33.
SiSetCyclic - Sensor Interface Set Cyclic on
page
40.
SiGetCyclic - Sensor Interface Get Cyclic on
page
38.
sensor - External device descriptor on
page
42.
3HAC031973-001 Revision: F

Advertisement

Table of Contents
loading

Table of Contents