This page describes the device driver and the device window for the NAIS-FP0 device. This device controls the I/O ports of a Matsushita / NAiS FP0 PLC. It can handle the ports at the PLC base unit and at up to three extension moules. It communicates to the PLC through the programming port at the PLC base unit. (see the paragraph at the end of this chapter).
The NAIS-FP0 device driver is part of the sat-nms framework for M&C of plain digital I/O functions. Monitoring alarm circuits or controlling waveguide switches are indicatives for applications of this framework.
The application configuration normally does not access the NAIS-FP0 device driver directly. There are a couple of application level logical devices (e.g. Input , Output or WG-Switch ) which may use the NAIS-FP0 device driver as a low level driver to access the physical I/O ports.
Port addressing
The device driver gives access to the I/O ports through four integer variables each for inputs and for outputs. Each variable stands for up to 32 input or output ports. The variables are mapped to the PLC's internal I/O addresses following the NAiS addressing conventions:
The variables 'X0000' and 'Y0000' refer to the ports at the PLC base unit, 'X0020' and 'Y0020' to the ports at the first extenstion motule etc. Within the variables, the IO ports are addressed by bit positions. Example:
An input port which appears in the FP0 PLC as 'X0006' is accessed through the variable X0000 of the device driver. It is represented by the bit 2^6 in the variable (the least significant bit represents the 'X0000' input).
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 .
--- Shows / commands I/O port states.
--- 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 make the software talk to the Fanuc PLC.
| parameter | description |
|---|---|
| address | The packet address of the PLC device. Usually this is "01". |
| extModules | Select the number of extension modules you have connected to the FP0. The driver ignores the changes to 'Y00x0' variables of unused modules and it does not read out / update the corresponding 'X00x0' variables. |
| Serial | Remember to set the line parameters for the serial interface connected to the NAiS FP0 PLC. The setting required by the FP0 is 9600,O,8,1 . |
Remarks
Variables defined by this device driver
| name | type | flags | range |
|---|---|---|---|
| info.driver | TEXT | R/O | StringRange R/O |
| lowLevel.cmd | TEXT | StringRange | |
| lowLevel.reply | TEXT | R/O | StringRange R/O |
| faults.99 | ALARM | R/O | AlarmFlagRange R/O (Communication) |
| faults.commstat | 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 |
| internal.dummy | HEX | R/O | HexRange R/O (0 .. 0) |
| config.extModules | CHOICE | SAVE SETUP | EnumRange (0 1 2 3) |
| X0000 | HEX | R/O | HexRange R/O (0 .. 0) |
| X0020 | HEX | R/O | HexRange R/O (0 .. 0) |
| X0040 | HEX | R/O | HexRange R/O (0 .. 0) |
| X0060 | HEX | R/O | HexRange R/O (0 .. 0) |
| Y0000 | HEX | HexRange (0 .. 0) | |
| Y0020 | HEX | HexRange (0 .. 0) | |
| Y0040 | HEX | HexRange (0 .. 0) | |
| Y0060 | HEX | HexRange (0 .. 0) | |
| initialized | TEXT | R/O | StringRange R/O |