This driver serves for communication with
ADAM devices of the
4000 series and
5000. See also
Communication with ADAM modules by the Advantech company.
Before using this driver in the PROMOTIC application it is highly recommended to watch "
PROMOTIC video tutorial 4 - Communication drivers".
Basic properties of the driver:
- Usage of this driver requires purchase of the
PmAdam licence. When developing the application in the freeware mode
PmFree, or with
development environment and while testing it in runtime, this component is always functional.
- The communication is done for serial link (COM1, COM2 ...).
- The PROMOTIC application is the Master (it means that it initiates the data transfer) from this communication point of view.
- This is a network communication, it means that one
PmaComm object can communicate with multiple devices (the protocol supports multiple device addressing).
The communication contains all messages required for communication with
ADAM devices of all types of the
4000 series and
5000.
The messages are divided by individual devices (for each PLC the corresponding set of messages is defined) or the "ADAM type" = "Common ADAM" can be set in the messages parameters window and thus all implemented messages for all
ADAM devices are displayed.
To define non-implemented message we can set the "ADAM type" - "set by user" in the message parameters window. Then the message allows transmitting and receiving a common string value defined by the user after data setting.
Each message is positively identified by the description (see the message parameters window - "Message type") that equals to the identification in the original documentation. The only exception is the
#aaSiBB(data) message that was separated by usage into two parts:
#aaSiBB(data2B) - setting one output channel
#aaSiBB(data4B) - setting all output channels
All ranges of variables are uniquely defined by the message type and its description. We distinguish integers with 1,2,4,8 characters.
Float values are encoded into a text string by the
"Engineering Units" format - it means to 7 characters where a sign, 5 digits and a decimal period is included.
At the
"Analog Output Command Set" message set of the
ADAM 5000 series the
#aaSiCj(data) and
#aaSiCj6 messages occur that use another format of
Float values. For encoding only 6 characters are required that don't include a sign and the decimal period is given by the fixed position in the third char.