Access methods
Polling - The driver polls the values from the PLC continuously.
Number of PLCs
One driver can connect to several PLCs.
The settings of the variables are defined as follows
Settings in the variable |
Field from the XML file |
---|---|
Name |
Symbol name with station prefix "S2_SymName" (also see Addressing via name) |
Net address |
ID of the according station from the driver configuration. If no station with the according AmsNetID exists, a new station is automatically created. (also see "Beckhoff settings") |
Data type |
The datatype is entered according to IEC. |
Driver object type |
As the "Driver object type" a "PLC marker" is used. |
Offset |
The offset from the PLC |
iGroup |
The index group from the PLC. |
BitSize |
The BitSize from the PLC |
Identification |
The comment is used as the identification. All line breaks and tabs are removed. |
Overwriting existing variables (extended merging)
If a variable to be imported already exists in zenon, the following procedure applies:
If the variable is from another driver, it will not be changed.
If the variable is from the current driver, the datatype, the driver object type, the offset, the iGroup, the BitSize and the identification will be overwritten - in case they were changed.
Variable addressing via
In the zenon Runtime, the driver will first try to communicate with the station via the name. If this communication type is not successful, the driver will read resp. write the variables of the according station via the address.
Name
In some PLCs the datapoints can also be connected directly via their names. For this the variable name in zenon has to consist of a prefix and the according symbol name. "Sn_" is used as the prefix, with n being the net address (because the same program might be running on different PLCs). So the variable name in zenon might be "S2_SymbolName" and the name in the PLC is "SymbolName".
Address
Parameters |
Description |
---|---|
Net address |
As the net address the ID of the station created in the configuration dialog (port and AMS net address) is offered for selection. |
BitSize |
Size of the datapoint in bits |
iGroup |
Index group in the connected station |
Offset |
The offset within an iGroup |