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,445
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,582
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,641
Hi Everyone, I am not proficient in RSLogix 500 so I have a question regarding the evaluation of N7:0 data as an input. So as I understand in...
Replies
1
Views
68
Trying to setup a message read via Ethernet. I have the path setup as 1, 1, 2, 192.168.66.10 I get an error code 1, ext err 315. I am beating...
Replies
9
Views
229
Back
Top Bottom