Communication via Ethernet: This option can be selected, for example, if the device is equipped with the serial link and it is connected to the Ethernet through the RS232/Ethernet converter. If the converter does no modifications to the transmitted data, then it is a very easy way how to communicate via Ethernet with devices not equipped with Ethernet interface.
The driver supports the usage of both PmaCommMsg and PmaCommGroup objects. For common data transfers, it is better to use the PmaCommGroup object.
The PROMOTIC application is the MASTER (i.e. it initiates the data transfer) from this communication point of view.
1 | RXD- |
---|---|
2 | RXD+ |
3 | GND (Not connected) |
4 | TXD- |
5 | +5V (Not connected) |
6 | Not connected |
7 | TXD+ |
8 | Not connected |
Device | Description |
---|---|
X | Physical Input. |
Y | Physical Output, coil. |
S | State Relay. |
M | Auxiliary Relay. |
T | Timer/contact. |
C | Counter/contact. |
D | Data register. |
Baud rate | 9600 Bd |
---|---|
Number of data bits | 7 |
Parity | EVEN or NO |
Number of stop bits | 1 |
Timeout between receiving 2 chars | 60 |
Response receipt timeout | Only for serial link. The recommended value is for example 2000 ms. The time (in milliseconds) the driver is waiting for the response on sending the message. If no response comes during this time, then the transfer of the message is terminated (the onEndOfTransfer event is triggered with error 24 or 66). |
---|---|
Protocol version |
The variables in the PmaCommGroup object (or even better the variables in the PmaData object with ExtComm data extension) can be of arbitrary number, type and order. The driver uses optimalised internal communication messages for reading the data from the device.
All variables are read (if the "Data refresh enabled" configurator is checked). When writing to the variable, only the single value is sent (if the "Auto send when writing to item" configurator is checked).
ItemId is the text identifier of the item that is used for addressing the value in the device. The ItemID configurator tells the driver how to receive or send the item value.
The text can be written manually, or it can be assembled in the window opened by the button to the right of the configurator.
Macro expression can be used for input (it is evaluated after starting the application).
The ItemId identifier may look like for example "M20" or "M20.W", where:
For the X and Y devices, the address is a octal number, while all other use decadic number.
The D registry is a 16-bit value, while other are 1-bit.
If the optional part is used on the items X,Y,S,M,T,C (i.e. all except D), then the defined logical address must be divisible by 8.
Examples:
At both types the address, from/to which the data have to be read/written, in the PLC device is set in the message parameters. For reading from FX only the "Data-received" tab is filled in and for writing to FX only the "Data-sent" tab is filled in. The number and the data types of these data can be arbitrary but they must correspond to the data that are in the PLC device.
The address set in the message parameters is called "TOP address" in the PLC device. These address assignments for individual memory types must be found out from the PLC documentation. Caution: In the message parameters the address is entered in the decimal form whereas in the documentation the address is stated in the hexadecimal or octal form. Thus it is necessary to convert the address into the decimal form!
The address assignment depends on the setting of the "Protocol version" configurator:
Protocol version = General (all FX-series):
Device: | Device area: | TOP address: |
---|---|---|
X | X0-X177 (octal) | 0080-008F hexa, 128-143 decimal |
Y | Y0-Y177 (octal) | 00A0-00AF hexa, 160-175 decimal |
S | S0-S997 (decimal) | 0000-007C hexa, 000-124 decimal |
T (contacts) | T0-T255 (decimal) | 00C0-00DF hexa, 192-223 decimal |
M | M0-M1023 (decimal) | 0100-017F hexa, 256-383 decimal |
C (contacts) | C0-C255 (decimal) | 01C0-01DF hexa, 448-479 decimal |
SPECIAL M | M8000-M8255 (decimal) | 01E0-01FF hexa, 480-511 decimal |
D data registers | D0-D999 (decimal) | 1000-17CF hexa, 4096-6095 decimal |
D special registers | D8000-D8255 (decimal) | 0E00-0FFF hexa, 3584-4095 decimal |
Protocol version = Extended (FX2N):
Device: | Device area: | TOP address: |
---|---|---|
X | X0-X377 (octal) | 0240-025F hexa, 576-607 decimal |
Y | Y0-Y377 (octal) | 0180-019F hexa, 384-479 decimal |
S | S0-S997 (decimal) | 0280-02FF hexa, 640-767 decimal |
T (contacts) | T0-T255 (decimal) | 0200-021F hexa, 512-543 decimal |
C (contacts) | C0-C255 (decimal) | 01E0-01FF hexa, 480-511 decimal |
M | M0-M3071 (decimal) | 0000-017F hexa, 000-383 decimal |
D data registers | D0-D7999 | 4000-7E7E hexa, 16384-32382 decimal |