Simatic S5-155U Copy DB to another

cagliostro

Member
Join Date
Feb 2007
Location
vi
Posts
106
Hi guys,

I need realize some modification on CPU947-155U.
The main problem I'm facing is write the code to make a function as SFC20 in S7.

I try to explane better the situation,
I 've the Data block destination (DB180)with 80 words having different format (eg: KT,KH,KF etc. etc.)
So in particular condition, I need to move all the words of the Data block source (DB181) to the DB180.

The data block are exactly the same about the lenght of data and the format also.

So I don't like use for every single word the code:

A DB181
L DW0
A DB180
T DW0
.....
.........
............
.............

I know is possible use the instruction TNB, but really I don't know how to start, for me the Siemens example using the indirect addresses in S5 not very clear.

SO anyone pleasure can send or attach a code example....

Thanks advance
 
Does the old (946)/947 contain OB 180?

No - scratch my code.

lntegrated Special Function Overview​
- CPU 9461947

OB 121 Set/ read time of day
OB 122 Turn interrupt disable onloff
OB 124 Delete STEP 5 blocks
OB 125 Generate STEP 5 blocks
OB 126 Transfer process image tables
OB 200, Functions for multiprocessor communication
202 to 205
OB 223 Compare CPU restart types in multiprocessor operation​
OB 254, 255 Transferlduplicate data blocks (DBs) and extended data blocks (DXs)
 
Thank L D[AR2,P#0.0]

CPU 947 supported also OB182, practically it enought similar to the SFC20 in S7.

I'll see this afternoon
 
Last edited:

Similar Topics

Dear Expert, My Simatic S5-155U Cpu 948 In stop led is on. When i connect my profibus cable to cp card CPU is going to Stop Condition after 13...
Replies
24
Views
13,619
We are facing intermittent issue with emergency stop and line stop. Line stop triggering with alarm of line stop push button activated at one...
Replies
11
Views
307
HI i would like to know how to get a variable that will store the amount of times a program has been executed. The issue is I have 3 DBs for 1 FB...
Replies
2
Views
125
Dear sir, I am using SIMATIC 300, CPU 315-2DP , (6ES7 315-2AF03-0AB0) VIPA 603-1CC21 A1.0 RAM 32KB, Firmware=V4.0.8 The problem Im using MPI...
Replies
2
Views
205
Hi, I received this SIMATIC S7-300 training kit for maintenance. When I power it up, the PLC doesn't go to RUN mode and the STOP mode led is...
Replies
7
Views
354
Back
Top Bottom