convert S5 do instruction to S7 indirect addressing

Join Date
Dec 2014
Location
cairo
Posts
2
Please, your support is needed to convert the following S5 function code to equivalent in S7 ; ( it transfer 8 words (W0 to W7) in data block DB169 to flag byte FY164)

! 0 ! KH ! 0001
! 1 ! KH ! 0001
! 2 ! KH ! 0001
! 3 ! KH ! 0001
! 4 ! KH ! 0001
! 5 ! KH ! 0001
! 6 ! KH ! 0001
! 7 ! KH ! 0000


DO =DBNR
LW =DWST
T FW 238
T FW 240
L KF +0
T FW 242
T FW 244
M002 :DO FW 240
L DW 0
DO FW 242
SLW 0
L FW 244
OW
T FW 244
L FW 242
I 1
T FW 242
L KF +8
!=F
JC =M001
L FW 240
I 1
T FW 240
JU =M002
M001 :L FY 245
T =XA
AN =CLR
BEC
L FY 245
L KF +0
!=F
JC =M003
M003:BE
 
As you are stating clearly you need to move X bytes from Y location to Z location my advice is to look into S7 System Function Block "BLKMOV" (from memory SFC20)

grtz
 

Similar Topics

Hello, I need some help to convert PMCR instruction from Omron CQM1H that using CQM1H-SCB41 to CJ2M using CJ1W-SCU4, The problem is on the old...
Replies
1
Views
843
Hi, Can anybody help me how to convert this sample code below from S5 to S7. C DB 4 L KH 7E00 T DW 70 L KF +4...
Replies
13
Views
3,952
Hello all, I'm currently working on a servo motor linear positioning system (ball screw). I'm all set up regarding communication between my HMI...
Replies
1
Views
90
I have an application using an incremental encoder and then I convert it to degree (0-360) using calculation program. For a while, the calculation...
Replies
7
Views
242
Hi all. Me again still learning Rockwell. So I'll be polling an INT data array from a Modbus SE power meter with a L82 (with a Modbus ProSoft in...
Replies
56
Views
1,386
Back
Top Bottom