Preconfiguration "PmABradleyCIP - Communication set with data and panel by the EtherNetIP/CIP protocol (for ControlLogix, CompactLogix, ...)"
Communication driver configuration PmABradleyCIP - Driver for communication with Allen Bradley PLC devices by the EtherNetIP/CIP protocol
This preconfiguration can be activated when creating a new object (e.g. by "New object"
in the local object menu or by pressing the Insert
key after selecting the object) and is included in the group: " / Communication / Allen Bradley PLC"
This preconfiguration can be used with the objects: PmFolder or PmRoot.
- The preconfiguration is created including the panel (PmPanel
object) functionality as a Web panel
- The panel is used for communication testing and it is not essential for the functionality.
After this preconfiguration is used it is necessary to run the application and from the panel list (CTRL+G) choose the "AllenBradley - VarCfg"
panel. A button in this panel runs the PmCommMsg.Run
method, that in the onEndOfTransfer
event creates the "#cfg:ABradleyVarCfg.txt"
file. The file contains the structure of variables created by the designer in the PLC. The structure is also displayed in the panel.
After the application is stopped the variables
of the PmData
object in ExtComm
can be connected in configurator ItemID
to the corresponding variables in the PLC. Once the application is launched again after that, these variables can be monitored in the Allen Bradley - Data
panel. (The PmCommMsg
object and the PanelVarCfg
panel are no longer needed for the communication.)
These configurators can be set before the preconfiguration is created:
|The name of created object||Name of the object created in the application object tree. This is a system name and must not contain diacritics, empty string, spaces and the first character must not be a number.|
|Network address||Network 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). After this preconfiguration is created, the configurator is se to: PmComm > Settings of the Ethernet parameters > Network address
|Create examples of testing data||A set of exemplary data is created|
|Communication refresh rate [ms]||The time period in milliseconds to be used for reading the data by the PROMOTIC application. After this preconfiguration is created, the configurator is se to: PmCommData > Parameters > Communication refresh rate [ms]|
|Create panel "Received data"||Creates a panel that monitors the statistics of communication values|
|Panel title||Displayed in the panel header|
| Create PmCommMsg for reading the variables from the PLC||Creates the PmCommMsg object that allows to read the names of all variables from the PLC and saves this list into "ABradleyVarCfg.txt" file.|
|Create the panel that is used for reading the variable names from PLC.||The panel is used for running the Run method and also for displaying the variable names list after the communication is completed successfully.|