Siemens
The Siemens driver will communicate
with Siemens S7 control device family.
General Settings
. Host/IP: Insert the Route Path of the controller
. Enable: Activates or deactivates the Driver Document
- TRUE: The document will be always activated
- Condition: Activates the document whenever the condition is fulfilled
- FALSE: The document will never activate
Siemens
. Model: Choose the PLC model: S7_200, S7_300, S7_400, S7_1200 and S7_1500
Read
. Trigger: If checked, will read all the inputs every time a configured tag changes its value. Select the desired tag to use as a Trigger in the TextBox beside it.
. Refresh Time(ms): If checked, will read all the inputs every specified time, in milliseconds.
Write
. Trigger: If checked, will write all the inputs every time a configured tag changes its value. Select the desired tag to use as a Trigger in the TextBox beside it.
. Tag Changed: If checked, will write an input every time its linked tag (of the Tag List) changes.
Tag List
When opening a Driver Document, it will display Driver options in the Ribbon where it is possible to create and delete Driver Items.
A Driver Item is what links a Tag from SmartView to an Input or Output of a Controller.
Once a new Driver
Item is inserted, the user will have four fields to
configure:
. Tag: Write the Tag that is going to be associated with the specific address
. Address: Write the Address, for example the address "DB3.DBX0.0" register type is Data Block and the format is Bit, see all the types below:
- X: Bit
- UB or SB or B: Byte
- UW or SW or W: Word
- UD or SD or D: DWord
- F: Float
- ST: String
Register Type
The driver supports the following registers.
Register Type | Write | Read | Bit | Byte | Word | DWord | Float | String |
Column1 | Column2 | Column3 | Column4 | Column5 | Column6 | Column7 | Column8 | Column9 |
M (Flags) | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
SM (Special Flags) | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
T (Timers) | ✔ | ✔ | ✖ | ✖ | ✔ | ✖ | ✖ | ✔ |
Z or C (Counters) | ✔ | ✔ | ✖ | ✖ | ✔ | ✖ | ✖ | ✔ |
I or E (Inputs) | ✖ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
A or Q (Outputs) | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
DB (Data Blocks) | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
Example:
We configured the simulation of communication with SmartView and Siemens S7_1200.
01. Create newtag1, integer in the tags document.
02. Create Siemens folder in Driver.
03. Create Driver1 document inside Siemens folder.
04. Select S7_1200 in Model.
05. Chech RefreshTime(ms) in Read
07. Write newtag1 on Tag cell
08. Write MW0 on Address cell
09. Run the application
Here is an example of a configured document with Data Block Register type:
Here is an example of a configured document with Input Register type:
Here is an example of a configured document with Output Register type:
Here is an example of a configured document with Memory Flag Register type:
Here is an example of a configured document with Special Memory Flag Register type:
|
Note: To communicate with the PLCs s7-1200 and s7-1500 families,it needs special configuration. See S7-1200/S7-1500 |
|
Note: To use String format in the address, it needs to specify the length. For example: "QST0.3" is a Register Type Output with the format String with length 3. If the value of a tag string has more than 3 characters(length), then the value passed to the driver will be the first 3 characters the tag value. |