Press "Enter" to skip to content

Siemens Example

Siemens example

1 – Download and install as administrator, link:
https://laquisscada.com/siemensexample1.exe

This example uses a generic driver from LIBNODAVE.

 

2 – Open the example EXAMPLE.LQS. Click on the Driver – Config button and type the PLC IP.

3 – In the Param1 column, the addresses of the PLC variables associated with the tags are defined. In the Param2 column, the PLC “Slot” number, defined in the TIA Portal.

Settings:

Param1=AreaTypeItem
Param2=”Slot” of PLC

Example:
Param1=QB0
Param2=2

Possibilities:

IB0-IB65535 Input
QB0-QB65535 Output
FB0-FB65535 Flag
MB0-MB65535 Memory
DB1.DBB65535 Data block
CB1-CB65535 Counter
TB1-TB65535 Timer

The second character is the type (except data block):
B – Byte W – Word D – DWord L – Long F – Float

IBn.b b – position of bit (0-7)

Example: IB7.5

4 – Click the Play button to communicate.

Note: If you can, turn off the option, “Optimized block access” in the TIA Portal.

 

Question?