This page describes the device driver and the device window for the Output logical device. This device controls one single output port of a PLC device and optionally monitors one or two position indication contacts.
The Output logical device is part of the sat-nms framework for M&C of plain digital I/O functions. It does not interrogate a PLC device directly, but requires a low level device driver to do the physical communication. Examples for such drivers are the Fanuc-PLC9030 and the NAIS-FP0 PLC device drivers.
Device window pages
The following table shows which device window pages are available with this individual device type. Tool-bar functions not mentioned here are described at the general description of device windows .
--- Sets / shows the (translated) PLC port state.
--- The faults page.
--- The device info page.
--- The maintenance page. The configuration parameters described below are set at this page.Configuration parameters
At the maintenance page of the device window there are a couple of configuration parameters which must be set to integrate the device into the VLC/M&C.
| parameter | description |
|---|---|
| drivePort | The address of the PLC port to set. See the paragraph 'Port addressing' below for details. |
| indication0Port | The address of the 'position 0' indication port to monitor. If this port address is defined, the device checks if this port is set ('1') after the drivePort has been commanded '0'. See below for more information position indication handling of the device. |
| indication1Port | The address of the 'position 1' indication port to monitor. If this port address is defined, the device checks if this port is set ('1') after the drivePort has been commanded '1'. |
| positions | By default the device reports the state of the output as '0'/'1'. You may specify arbitrary texts for these states. 'positions' contains the two descriptions, separated by a comma. If you customize this setting, you should consider that other logical devices (e.g. a protection switch) may set standard values like A, B, OFF or ON when commanding this value. |
| commFaultId | By default (commFaultId is empty) the device signals a communication fault if the summary fault of the PLC device get active. This may not be exactly what you want, because the PLC device may signal a fault which does not inhibit the switching or input sampling process. You may set commFaultId to the parameter ID of a fault flag which signals the desired condition. This makes the device ignore the PLC's summary fault and use the state of this fault flag as communication fault. |
| The SatService IO-FEP driver for example offers such a fault flag which signals that actually no switching an no input interrogation is possible (faults.17 at the IO-FEP). |
Fault flags
| fault flag | fault name | description |
|---|---|---|
| faults.99 | Communication | Unless the the setup parameter commFaultId is set, faults.99 is set if the PLC device which manages the physical ports signals a fault. With commFaultId set, the fault state addressed by this parameter is replicated as communication fault of the device. |
| faults.01 | Position Indication | This fault is set if at least one of configured position indication inputs reads a state which does not match commanded switch position. |
| faults.02 | Configuration Setup | This fault signals that the 'drivePort' parameter ist not properly configured. The device expects, that 'drivePort' is set to a value which matches the syntax description shown below. |
Port addressing
A device driver for a PLC gives access to it's I/O ports through a number of integer variables. Each variable stands for up to 64 input or output ports which are addressed by the bit position within the variable.
Port (bit-) addresses in the configuration of the logical I/O devices refer to such a variable which is provided by the PLC driver and also to the bit position within this variable. The syntax of a port address specification is:
<variable-identifier> + <bit-offset>
<bit-offset> is a decimal constant in the range 0 .. 63. You may replace the + character in the port address by a percent sign ( % ) and specify the bit offset in hexadecimal notation. This may be helpful for PLC types which use hexadecimal addresses.
Example: The port address ' FANUC.Q00065+1 ' refers to the 2^1 bit in the variable ' Q00065 ' provided by the ' FANUC ' device. In fact this addresses the output table register '%Q00066' at the PLC. Other PLC drivers may use a different naming scheme for the variables, but the concept always is the same.
Position indication inputs
The Output device optionally may be configured to use position indication inputs to verify the commanded position of a (RF-) switch/relay connected to the output. The device monitors these inputs in the following way:
Variables defined by this device driver
| name | type | flags | range |
|---|---|---|---|
| info.driver | TEXT | R/O | StringRange R/O |
| info.type | TEXT | R/O | StringRange R/O |
| info.port | TEXT | R/O | StringRange R/O |
| info.frame | TEXT | R/O | StringRange R/O |
| info.indication | TEXT | R/O | StringRange R/O |
| config.drivePort | TEXT | SAVE SETUP | StringRange |
| config.indication0Port | TEXT | SAVE SETUP | StringRange |
| config.indication1Port | TEXT | SAVE SETUP | StringRange |
| config.positions | TEXT | SAVE SETUP | StringRange |
| config.commFaultId | TEXT | SAVE SETUP | StringRange |
| position | CHOICE | EnumRange (0 1) | |
| faults.01 | ALARM | R/O | AlarmFlagRange R/O (Position Indication) |
| faults.02 | ALARM | R/O | AlarmFlagRange R/O (Configuration Setup) |
| faults.99 | ALARM | R/O | AlarmFlagRange R/O (Communication) |