S5 - data.

J.Rich

Member
Join Date
May 2003
Posts
2
At work we have a couple of m/c's with S5 PLC's. I have been looking at the programs and I could do with some help in understanding the data side. How do you view DB and the parameters and what the instructions mean,
i.e. L KF + 0
T FY 10
how do you view FY 10(flag byte 10),also
L FY 106
T PY 33
what is PY 33 and what are they used for.
 
You can use "Status Variable" in Step5 to view the contents of the memory areas. To view values in a data block, you need to specify the block, then the addresses you want to see, for example:

DB10
DW0

You can also see the value of flags in status variable by entering the address:

FY10

PY33 is direct I/O access. If you're loading from it, it's likely inputs and you write to outputs.
 
J.Rich said:
How do you view DB and the


:C DB10 open DataBlock 10
:L DW24 Load Dataword (16-bits) 24
.
.
:L KF +20
:T FW30 transfer +20 to Flag-word 30
:DO FW30 Indirect operation for followed command
:C DB0 Open DataBlock 20 indirectly
:L KF +12
:T FW32
:DO FW32
:L DW0 Load Dataword 12 from DB20


PY = peripherial byte, usually used for interrupted operation for
direct Input read :)L PYnn) or diredt write to Output :)T PYnn)
 
Last edited:
Hi
I thought I would join in this one as I have never realy understood the DO instruction.
Seppo; could you please expand on your explanation below, ie Load and Transfer, DO instruction, also :C DB0 Open Datablock 20 indirectly - is this corrrect?

We've still got loads of S5 PLCs at work, appreciate any info.

Steveo

C DB10 open DataBlock 10
:L DW24 Load Dataword (16-bits) 24
.
.
:L KF +20
:T FW30 transfer +20 to Flag-word 30
:DO FW30 Indirect operation for followed command
:C DB0 Open DataBlock 20 indirectly
:L KF +12
:T FW32
:DO FW32
:L DW0 Load Dataword 12 from DB20


PY = peripherial byte, usually used for interrupted operation for
direct Input read :)L PYnn) or diredt write to Output :)T PYnn)


__________________
-Seppo
 
Balls Ache said:
Hi
I thought I would join in this one as I have never realy understood the DO instruction.
Seppo; could you please expand on your explanation below, ie Load and Transfer, DO instruction, also :C DB0 Open Datablock 20 indirectly - is this corrrect?
Yes, correct ! I put my best...

:L KF +65 Load +65 (ascii 'A') to accu1 :)L KC 'A')
:T DR 5 Store accu1 to open DB/DR 5
:L KF +66 Load +66 (ascii 'B') to accu1
:T DL 5 Store accu1 to open DB/DL 5

:L KF +5 Load to accu 1 +5, (previous accu1 goes to accu2)
:T FW 20 Transfer (store) accu 1 to FW20
:DO FW 20 This indirect DO command is for the next command!
:L DR 0 Load from open DB/DR 5 (right byte) to accu 1
:DO FW 20
:L DL 0 Load from open DB/DL 5 (left byte) to accu 1
:SLW 8 Shift accu1 bits 8-bits left
:OW Accu1 OR Accu2 to Accu1 (res. is 'BA') Accu2 as before
:T FW 22


DO could be used for Indirect jump, Byte.Bit pointing (must know the format that is bit-number in the left-byte and byte-number in the right byte etc...
 

Similar Topics

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
135
Hi folks, I'm not as accustom with Siemens & WinCC, however I've been asked to increase the amount of data an existing application is logging...
Replies
2
Views
65
Has anyone migrated Proficy Historian data to a new server? I followed the guide to move all the data over, but when I run the utility, it stops...
Replies
0
Views
50
I cannot add SLC500 analog input tag (I: 8.3) to EZSeries Touch Panel Editor (V 5.3). I used all the listed tag datatype but it all says "Invalid...
Replies
10
Views
258
Hi, Wy we log data in PLC using DLG instruction, when we have option to log data in HMI
Replies
1
Views
80
Back
Top Bottom