GE Fanuc SNPX Serial
Review the following information for setting up and configuring the GE Fanuc SNPX Serial driver. The driver communicates with GE Fanuc PLCs using the SNPX protocol over a serial connection.
Note: This driver is experimental. Some features might not work as expected.
Litmus Edge compatible series
Compatibility parameter | Compatible items |
|---|---|
Driver type | Serial |
Validated devices/series | GE Micro series Series 90-30: 311/313, 331/341, 350, and 360 Series 90-70: 731/732, 771/772, and 781/782 |
To set up and configure this device in Litmus Edge (LE), do the following:
- Step 1: Set up and configure the PLC device
- Step 2: Set up the PLC device in Litmus Edge DeviceHub
- Step 3: Configure the list of registers
Step 1: Set up and configure the PLC device
Record the serial communication parameters and the station number for the device. Use your PLC programming software, such as Proficy Machine Edition, to check or change these settings.
To browse tags, you also need the PLC's .SNF symbol file on an FTP server that LE can reach.
Step 2: Set up the PLC device in Litmus Edge DeviceHub
Configure the following parameters when you Connect a DeviceConnect a Device with this driver. Update default values to the specific setup of your device.
Parameter | Value |
|---|---|
Type | GE Fanuc |
Driver | GE Fanuc SNPX Serial |
DeviceFile | The serial port path used to communicate with the device, for example /dev/ttyS1 or /dev/ttyUSB0. Required |
BaudRate | Must match the baud rate configured on the device. Select a value from 1200 to 921600. Default value 19200 |
DataBits | 5, 6, 7, or 8. Must match the device. Default value 8 |
Parity | None, Odd, or Even. Must match the device. Default value Odd |
StopBits | 1, 1.5, or 2. Must match the device. Default value 1 |
StationId | The PLC station number. Enter a value from 0 to 31. Default value 0 |
GlobalVariablesCSV | (Optional) The FTP path to the PLC's .SNF file. The driver uses this file to browse tags. |
The following parameter is under Advanced Parameters.
Parameter | Value |
|---|---|
ReadTimeout | How long the driver waits for a response, in milliseconds. Enter a value from 10 to 10000. Default value 2000 |
For the Meta Data, Status Register, and Optional Settings options, see Connect a DeviceConnect a Device.
Step 3: Configure the list of registers
When you Add a TagAdd a Tag to the connected device, see the following register table and tag parameters. If you set GlobalVariablesCSV, you can also Browse and Add Tags from a DeviceBrowse and Add Tags from a Device.
See the following additional resources if necessary:
- Organize Device and Tag Data by Using MetadataOrganize Device and Tag Data by Using Metadata
- Tag Formula VariablesTag Formula Variables
Register table
Addresses start at 1 and match the PLC reference numbers. For example, %R1 is R address 1.
Name | Value Types | Access Type | Address Format | Min Address | Max Address | Description |
|---|---|---|---|---|---|---|
R | word, dword, float | R/W | DDDD | 1 | 2042 | Registers (%R) |
AI | word, dword, float | R/O | DDD | 1 | 128 | Analog inputs (%AI) |
AQ | word, dword, float | R/W | DDD | 1 | 128 | Analog outputs (%AQ) |
I | bit | R/O | DDD | 1 | 512 | Discrete inputs (%I) |
Q | bit | R/W | DDD | 1 | 512 | Discrete outputs (%Q) |
T | bit | R/W | DDD | 1 | 256 | Discrete temporaries (%T) |
M | bit | R/W | DDDD | 1 | 1024 | Discrete internals (%M) |
S | bit | R/O | DD | 1 | 32 | System (%S) |
SA | bit | R/O | DD | 1 | 32 | System (%SA) |
SB | bit | R/O | DD | 1 | 32 | System (%SB) |
SC | bit | R/O | DD | 1 | 32 | System (%SC) |
G | bit | R/W | DDDD | 1 | 1280 | Genius global data (%G) |
Tag parameters
- Name: Select a register name from the drop-down list. The available options depend on the names in the register table.
- Value Type: Select a data type from the drop-down list. The available options depend on the register name selected.
- Address: Enter the register address in decimal format, within the min and max range in the register table. Omit leading zeros.
- Count: Enter the number of values to read, starting at the configured address. A count higher than 1 returns an array of values. Default value 1
- PollingInterval: Enter how often the tag polls for data, in seconds. Enter 0 to disable polling. Default value 1
- Tag Name: Enter a name for the tag.
- Description (Optional): Enter a description for the tag.
- Tag Formula: Enter a formula for the tag to process the generated data. You can use two variables: value (current tag value) and timestamp (current tag UNIX time in milliseconds). The following math functions are available:
- sin
- cos
- sqrt
- tan
- power: power(x) performs the operation 10^x.
- log: log(x) is the natural logarithm (the logarithm is in base e).
- exp: exp(x) performs the operation e^x.
- Only Publish on Change of Value: Select the checkbox to publish NATS messages only when the value parameter changes. Change of Value only applies to boolean, numeric (such as int or float), and simple string data types. It does not apply to complex types, such as JSON or array. Poll-once topics are not affected by Change of Value settings, and still receive a single message.
- Meta Data: Define key-value pairs to add to the device output payload.
Note: If you use special characters in metadata key names, the special characters are replaced with underscore characters in the payload. This can cause two key names to be combined into one. For example, configuring the key names a**b and a&&b creates only one key name (a__b).