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 Everyone, I am using a raC_Opr_NetModbusTCPClient AOI module, as below,. So, I need some assistance to restrict in reducing the poling...
Replies
2
Views
110
Hi everyone, I have a 505 workshop program with PLC type of 555- 1106 and I was wondering how can I download the data documentation window as a...
Replies
8
Views
225
Hello everybody, I'm currently working on a project where I need to implement an IoT platform based on Microsoft Azure Cloud. Communication is...
Replies
2
Views
72
Hello. I have a db which is 1000 INT, and this db is represented in WinCC as a raw data type set of 5x 400 Bytes. This set is read with a script...
Replies
1
Views
85
So i've been at this for a long while, i have Citect Scada 2018, i have full access to everything but i can't seem to find any option or...
Replies
0
Views
79
Back
Top Bottom