Panasonic FP Serial
Review the following information for setting up and configuring the Panasonic FP Serial driver. The driver communicates with Panasonic FP-family PLCs using MEWTOCOL-COM over RS-232C, RS-422, or RS-485.
Note: This driver is experimental. Some features might not work as expected.
Litmus Edge compatible series
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 for the device. Otherwise, follow the steps below.
The COM port must be in Computer-link mode (system register 412) which uses MEWTOCOL. In general-purpose, MODBUS-RTU, or PLC-link mode, the port does not reply to the driver.
The driver connects to one PLC for each serial port. RS-485 multidrop with several devices on one serial port is not supported.
To configure your device:
- Note down the following information and refer to it as needed.
- Device: Panasonic FP2SH-60K
- Communication I/F: RS232
- Launch Control FPWIN Pro7 v7.2.3.0 software and click Online > Communication parameters.
- Set up the communication parameters.
- Click Online mode.
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 | Panasonic |
Driver | Panasonic FP Serial |
DeviceFile | The serial port path used to communicate with the device, for example /dev/ttyS1 or /dev/ttyUSB0. |
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 station number of the PLC. Enter a value from 1 to 99. Default value 1 |
The following parameters are 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. At 2400 baud or lower, increase this value. |
RetryCount | The number of times a failed request is retried. Enter a value from 0 to 5. Default value 0 |
For the Meta Data, Status Register, and Optional Settings options, see Connect a DeviceConnect a Device. By default, the status register is Status, value type uint16, address 0.
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. This driver does not support browsing tags.
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
X, Y, R, and L are word registers. To read a single bit, use the _bit register. The address is the word number followed by a two-digit bit number, from 00 to 15. For example, R_bit address 1005 is bit 5 of word R10.
Name | Value Types | Access Type | Address Format | Min Address | Max Address | Description |
|---|---|---|---|---|---|---|
X | uint16, int16, uint32, int32 | R/W | DDDD | 0 | 9999 | External input |
X_bit | bit | R/W | DDDDdd | 0 | 999915 | External input |
Y | uint16, int16, uint32, int32 | R/W | DDDD | 0 | 9999 | External output |
Y_bit | bit | R/W | DDDDdd | 0 | 999915 | External output |
R | uint16, int16, uint32, int32 | R/W | DDDD | 0 | 9999 | Internal relay |
R_bit | bit | R/W | DDDDdd | 0 | 999915 | Internal relay |
L | uint16, int16, uint32, int32 | R/W | DDDD | 0 | 9999 | Link relay |
L_bit | bit | R/W | DDDDdd | 0 | 999915 | Link relay |
T | bit | R/O | DDDD | 0 | 9999 | Timer contact |
C | bit | R/O | DDDD | 0 | 9999 | Counter contact |
SV | uint16, int16, uint32, int32 | R/W | DDDD | 0 | 9999 | Timer/counter set value |
EV | uint16, int16, uint32, int32 | R/W | DDDD | 0 | 9999 | Timer/counter elapsed value |
DT | uint16, int16, uint32, int32 | R/W | DDDDD | 0 | 99999 | Data register |
LD | uint16, int16, uint32, int32 | R/W | DDDDD | 0 | 8447 | Link data register |
FL | uint16, int16, uint32, int32 | R/W | DDDDD | 0 | 99999 | File register |
Status | uint16 | R/O | D | 0 | 0 | PLC status (heartbeat) |
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. For _bit registers, add the two-digit bit number at the end.
- Count: Enter the number of values to read, starting at the configured address. For word registers, enter a value from 1 to 24. For _bit registers, T, and C, enter a value from 1 to 369. Not available for Status. 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).