reading Ext. status indirectly from VLT

Nepiter

Member
Join Date
Apr 2010
Location
At job
Posts
79
Maybe stupid question, but.. :confused:

I need to read external status from Danfoss vlt, which is connected to S7/300 via profibus.

I have done my own VLT controll FB.
Area of reading is determined by giving VLT address at FB input field.
With two first row, I can read actual reference and status from double word (example PED256).
But I need to read also word PEW 260, indirectly.
How should I call that word at FB?

L PED [#address]
T #From_VLT

L #From_VLT
T #Status_value

L #From_VLT
SRD 16
T #Status_word

L #Status_word
L 2#110000011011000
UW

L L#0
>I

= #VLT_fault
 
Last edited:
..Not enough coffee in My blood..

I quess there's some fancy way to do this with pointer or something,
but I think this will solve my problem:

L #address //peripherial address 256
+I
SLD 3
T #pew_3_tmp


L PED [#pew_3_tmp]
T #Ext_w

This way I managed to read ext.status word from VLT address 256.
 

Similar Topics

Hello. I have a problem which may be common in this part of the world. My CoDeSys program reads data from a text file that I generate from the...
Replies
10
Views
2,454
Hello, Will the Protocol format 1 or 4 support reading of ER (extended data registers) in Mitsubishi PLCs? Which protocol i have to implement to...
Replies
2
Views
1,587
This is my first post and I think this is a great website. I am currently trying to read a .txt file from a remote computer on the network, into...
Replies
3
Views
5,668
Hello I have a s7-1200 and I would like to read the tags present in this controller with my controllogix controller. The two controllers don't use...
Replies
5
Views
166
Hi all, i have 8 CJ2m plc units that show different numbers on the plc display and i am stuck on reading the info. my unit has an ip address of...
Replies
3
Views
110
Back
Top Bottom