Promotic
WikipediaLinkedInYoutubeTwitterFacebook

PmPromos - Driver for communication with ELSACO PROMOS PLC devices

This driver is used for communication with the PROMOS (PROMOS line 2) devices from the ELSACO company by EPSNET protocol (the protocol comes from the definition of the transportation level of the PROFIBUS protocol). See also Communication with Elsaco PLC devices (Czech republic).

This protocol is compatible with the EPSNET monomaster protocol used in the TECOMAT devices and thus it is possible to communicate with the PROMOTIC driver used more often: PmTeco - Driver for communication with TECO PLC devices.

 
Before using this driver in the PROMOTIC application it is highly recommended to read the chapter: Communicaton using the PROMOTIC drivers.
 
Basic properties of the driver:
- Using this driver is bound to purchase the license: PmPromos. With the freeware version PmFree, or when developing the application (with development environment for tersting purposes), this component is always functional.
- The communication is done via standard serial link (COM1, COM2 ...).
- The PROMOTIC application is the MASTER (i.e. it initiates the data transfer) from this communication point of view.
- The driver is incorporated into the PROMOTIC system by means of the PmComm object.

Driver supports to usage of PmCommMsg object. The PmCommData object cannot be used.

For easy integration of this driver into the application it is handy to use: Preconfigurations in group "PROMOS Elsaco PLC"

 
The driver supports the following data types:
- Bit: stored in the PLC on 16 bits whilst log.0 or 1 is stored on all 16 bits. In the PROMOTIC application represented by the data type: Boolean.
- Byte: stored in the PLC on 16 bits whilst the value is stored in the low byte and the high is set to 0. In the PROMOTIC application represented by the data type: Byte.
- Integer Sign: 2-byte integer (from -32 768 to +32 767). In the PROMOTIC application represented by the data type: Integer.
- Integer Unsign: 2-byte integer (from 0 to 65 535). In the PROMOTIC application represented by the data type: Long.
- Long: 4-byte integer (from 0 to 4 294 967 295). In the PROMOTIC application represented by the data type: Long.
- Float: 4-byte real number. In the PROMOTIC application represented by the data type: Single.
 

The communication description by the PmCommMsg objects

The list and description of the communication messages:
1) CONNECT: Initiation of the communication connected with the initialization of communication structures.
2) IDENT: Getting the information about the type of the connected PLC.
3) SETCW: Writing into the PLC control word. This service is accessible only over the serial channel CH1 !
There are following variables on the Data-sent page:
CLE - request for clearing an error (active in 1)
RES - request for restarting the PLC (active in 1)
TPR - type of the restart (0-warm, 1-cold)
CLO - request for clearing outputs (active in 1)
BLO - request for blocking outputs (active in 1)
MOD - required PLC mode (0=HALT, 1=RUN)
4) GETSW: Reading the PLC status word.
There are following variables on the Data-received page:
ERH - indication of the fatal error (active in 1)
ERS - indication of the other errors (active in 1)
IMS - indication of external blocking outputs (active in 1)
ISP - indication of external enabling RUN mode (active in 1)
BLO - indication of blocking outputs (active in 1)
MOD - indication of PLC mode (0=HALT, 1=RUN)
5) GETTIDA: Reading date and time from the PLC.
6) SETTIDA: Writing time into the RTC time circuit. From this point the PLC works with new time.
7) GETERR: Reading the main error stack of the central unit. The error stack contains 8 error messages in total ordered from the oldest to the newest one, each of 4 bytes in length. The total length is 32 bytes.
8) READMAP: Getting the number and length of public data blocks.
9) READN: Reading from registers of the PLC scratch-pad memory.
There are following variables on the Data-sent page:
TR - number of the block which is read
IR - index of the first read register
There are following variables on the Data-received page: The number and the type of the read data.
10) WRITEN: Writing into registers of the PLC scratch-pad memory.
There are following variables on the Data-sent page:
TW - number of the block which is written
IW - index of the first written register
data - specified number and type of written data
11) WANDRN: Writing into registers and reading from registers of the PLC scratch-pad memory.
There are following variables on the Data-sent page:
TR - number of the block which is read
IR - index of the first read register
TW - number of the block which is written
IW - index of the first written register
data - specified number and type of the written data
There are following variables on the Data-received page: The number and the type of the read data.
12) READB: Reading bits from the PLC scratch-pad memory.
There are following variables on the Data-sent page:
TR - number of the block which is read
IR - index of the first read register
BR - index of the read bit (0-7)
There are following variables on the Data-received page: The required bit.
13) WRITEB: Writing bits into the PLC scratch-pad memory.
There are following variables on the Data-sent page:
TW - number of the block which is written
IW - index of the first written register
BW - index of the written bit (0-7)
VALUE - logical value of the written bit
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice