S5 to S7 Conversion - Memory Map in S5-115U 943

TimH

Member
Join Date
Jul 2010
Location
Johannesburg
Posts
8
The conversion goes well except for this:

A DB 31
L MB 195
SLW 1
T MW 202
L KH E43E <--- Where is this in the 943 memory
LIR 0 <--- loading direct from memory
L KF +20 <--- 20 memory locations later-is that 10 words?
+F
T DW 3
L KF -22 <--- 22 back
+F
LIR 0 <--- where is this?
L KF -16
+F
L MW 202
<F
BEB
L DW 3
L KF +1
+F
T MW 204
L MW 202
SLW 1
+F
T DW 4
L MW 204
TNB 4 <--- transfer back- is that right
L DR 10
T MB 194
*****

And then later:

L MB 194
T DR 10
L DW 4
L KF -1
+F
T MW 204
L DW 10
L MW 204
TIR 2 <--- Where does this go to?
BE

Please help
Tim
 
LIR and TIR are indirect transfer instructions
E43E is in the block address list. I think should be DB31

943_mem.jpg TIR_2.jpg
 
I guess you will get the facit when LD is online, but till then my best guesses for the first bit:

A DB 31
L MB 195 Probably amount of words to be transfered
SLW 1
T MW 202

L KH E43E <--- Where is this in the 943 memory Start addr. for DB31 DW0
LIR 0 <--- loading direct from memory
L KF +20 <--- 20 memory locations later-is that 10 words?
+F
T DW 3 Pointer to DB31 DW10
L KF -22 <--- 22 back +F
LIR 0 <--- where is this?Pointer to DB length (in the header - dont remember if it is bytes or words, i think it is words

L KF -16 Required space, probably bytes
+F
L MW 202
<F
BEB Stop if DB is to short

Kalle
 
Last edited:
Thanks guys,

MW195 seems to be the address pointed at.
I had worked out that E43E was pointing to the start address of DB31 - thanks for confirming that.
So pretty much I can use indirect addressing to get the same thing?
I know I can work it out, but maybe you gurus can tell me how to???
Thanks very much
 
To continue with MW195 - the FB is called elsewhere with coded like:
L KF +10
T MW195
CALL FB31 <-- that was the FB with the original code shown above

Elsewhere it was
L KF +50
T MW195
CALL FB31

Does that make sense??
 
It makes sense. The TNB 4 copies 4 bytes between the address pointers in AKKU1 and AKKU2, but I cannot remember which was the source and sink, and wheter you point to the first or last byte
icon11.gif
. Anyone with good memory here?
Kalle
 
I found a manual finally. The source is in ACCU2, sink in ACCU1. MB195 must be an offset to the source. You don't have the description of DB31?


BEB
L DW 3 Pointer to DB31 DW10
L KF +1
+F
T MW 204 Sink
L MW 202 This is MB195 *2
SLW 1
+F Added to the sink pointer
T DW 4 Source
L MW 204 Sink
TNB 4 <--- transfer back- is that right
L DR 10
T MB 194
*****

Kalle
 
Last edited:

Similar Topics

Hi All I have just started a project to convert one of our machines from SLC500 to CLX5000. One of the first steps in the Rockwell guide was to...
Replies
4
Views
1,997
I am trying to convert an Omron Syswin 3.4 format program to CX-Programmer, and then convert the PLC type within CX-programmer. I first converted...
Replies
2
Views
8,839
I'm stumped by something seemingly simple. I want to move the numerical value of an ASCII style SINT into a REAL tag in Studio 5000. What's the...
Replies
3
Views
84
I’m running short on time to complete this project (retirement looming), so thought I’d ask here hopefully save me some research time. I’m...
Replies
9
Views
164
I have a machine which is undergoing upgradation. As part of the process two SEW drives are being replaced., existing Gen B with new Gen C. The...
Replies
3
Views
240
Back
Top Bottom