advertisement
from the PROJECTS department...
S7-200 MODBUS slave Mode
Communications systems and equipment. topic
Posted by CHUZKIN on 24 July, 2012 - 12:53 am
Dear friends.

I am trying to establish communication between a S7-200 CPU 226 and a PC running labview, acting as SCADA.

I already have configured the modbus instructions (as the example in help topics and manual) but i do not know how to address the following information:

Bits (LABVIEW SHOULD READ THESE BITS)

M1.0 – Inicio ciclo 1

M1.1 – Inicio ciclo 2

M1.2 – Inicio ciclo 3

M1.5 – Fin ciclo 1

M1.6 – Fin ciclo 2

M1.7 – Fin ciclo 3

Palabras dobles (LABVIEW SHOULD READ THESE REAL DOUBLE WORDS)

VD100 – Nivel TQ 1

VD104 – Nivel TQ 2

VD108 – Nivel TQ 3

Palabras dobles (LABVIEW SHOULD READ THESE REAL DOUBLE WORDS)

VD120 – VOLUMEN ACUMULADO FLUJOMETRO 1

VD124 – VOLUMEN ACUMULADO FLUJOMETRO 2

VD128 – VOLUMEN ACUMULADO FLUJOMETRO 3

The manual indicates any modbus address has its S7-200 address. For example:
00001 modbus address = Q0.0 s7-200 address
10001 modbus address = I0.0 s7-200 address
30001 modbus address = AIW0 s7-200 address
40001 modbus address = Holdstart s7-200 address (configured in MBUS_INIT)

Question is how can I access M0.0, M0.1, VD100, VD104 and so on???
Do I have to add MOVE instructions, to mirror M's and VD's registers to 4xxxx registers, and so read and write from them? Or should I move them to VB0 (retentive memory allocation)?

Any advice will help.

Best regards.

Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2013 Nerds in Control, LLC. All rights reserved.

Users of this site are benefiting from open source technologies, including PHP, MySQL and Apache. Be happy.


Fortune
"But officer, I was only trying to gain enough speed so I could coast
to the nearest gas station."
Advertise here
Advertisement
our advertisers
Help keep our servers running...
Patronize our advertisers!
Visit our Post Archive