Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Settings of the Ethernet parameters

Description:
The Ethernet communication parameters executed via PmComm object can be defined in this configuration window. The window is called from the Base communication parameters configurator, if the communication protocol is designated for Ethernet.
Configuration items:
Network addressNetwork address to which the communication will be connected. The address can be entered by both IP address (e.g. 192.168.0.15) or by name (e.g. server11).

Macro expression can be used for input (it is evaluated while the application is launching).

Value can be change by OpenPort method.

TCP/UDP port numberEthernet port number for communication. For communication with the PLC this number is usually hardware predefined and the PROMOTIC application must use the same value (see the note below).

Value can be change by OpenPort method.

Ethernet transfer typeDeatiled Ethernet protocol type specification. The communication protocol is usually firmly implemented into the automated machine, therefore the PROMOTIC system has to adapt identical protocol type (see the note below).
TCP (default) - Allows unlimited, security checked data transfers. The data is transfered by separate portions so called packets.
UDP - Only limited data transfers are allowed (often limited to 500 Bytes). The data transfer is very fast.
Number of repeats after unsuccessful transmissionSelection of the number of repeating the message transmission if the response has been defective or it hasn't been received at all. This setting is meaningful only for the communication messages of the Master type. The preset value is 0 (i.e. without repeat).
Timeout of one packet transfer [ms]If the data transfer (1 packet) takes longer than defined, then the transfer is terminated (the onEndOfTransfer event is fired with the 24 error or 66 error). The preset value is 2000 ms.
Filter ECHO charsSpecification if the received data have to be removed (filtered) because it goes about repeating characters transmitted from the message.

Note: Received filtered ECHO characters are recorded together with other characters in the INFO system in the /COMM/Monitor item.

No (default) - no filtr
Yes - filter. As many first received characters are removed as many characters were transmitted last. This is relevant only when serial link/Ethernet converter is used and this converter returns transmitted characters.
Not connect until first transferIf checked the PROMOTIC application will not connect to server immediately on application launch, but it will connect when the first transfer starts.
Close connection after every transferIf checked, then after each transfer the connection is closed. Next time, the data transfer occures, the application will connect to the server first.

This process slows down the communication, therefore it is suitable only for infrequent communications. The ceaseless connection opening/closing may cause problems with the PLCs rendering this kind of communication less reliable.

If sending multiple messages before connection close is needed, then it is better to UNcheck this configurator (otherwise the connection would be closed after each transfer) and call the ClosePort method after the transfer is finished.

See also: Connection Limit - open connections limit.

Max.number of rows in INFO/COMM, 'Monitor' pageThe transmision status can be chceked in the INFO system. The information can be found in the INFO item "COMM". This item contains multiple flags. The "Monitor" page contains circular transfer history list including the characters that has been transfered. The size of the circular list can be specified here. The preset value is 1000.
Note:
The parameters "TCP/UDP port number" and "Ethernet transfer type" are often overwritten by the automated machine and it is necessary to enter the same values here. For each driver these values are described in corresponding PROMOTIC documentation (see for example PmModbusMr). There are also hints being displayed underline directly in this configuration window.
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice