Mrslipmat
Member
Hi Guys
I,m currently working on a S5 135U conversion to S7-300, so far I,ve been beavering away for a couple of weeks, it,s a large program and I,m pretty much done but seem to have hit a brick wall with a couple of things. After searching the forums and google, both have thrown up very little info so far in relation to the problems I,ve come across.... So I find myself asking for help after what seems like banging my head against a wall, my head hurts....
A bit of background info, the old S5 unit is connected to a a screen running an applicom card via profibus card, the screen is azonix running wonderware which inturn is connected to another system via fiber cables. The issue I,m having at the moment is the conversion of the FB blocks in S5 don,t seem to have alternatives in S7
In part of the program It,s calling FB120, FB121, and FB123, these are communication blocks which inturn call SF-OB blocks as part of there function. I,m looking for an alternative in S7 but cant find anything and dont know which way to turn at the moment.
The next issue is some of the other errors being generated like LIR, TIR and L BS, I,m not sure what to do with them.
Any help or direction would be greatly appreciated and apologies for the lenght of the question.
Current code:
JC WAIT
T DBW 296
And other errors..........
I,m currently working on a S5 135U conversion to S7-300, so far I,ve been beavering away for a couple of weeks, it,s a large program and I,m pretty much done but seem to have hit a brick wall with a couple of things. After searching the forums and google, both have thrown up very little info so far in relation to the problems I,ve come across.... So I find myself asking for help after what seems like banging my head against a wall, my head hurts....
A bit of background info, the old S5 unit is connected to a a screen running an applicom card via profibus card, the screen is azonix running wonderware which inturn is connected to another system via fiber cables. The issue I,m having at the moment is the conversion of the FB blocks in S5 don,t seem to have alternatives in S7
In part of the program It,s calling FB120, FB121, and FB123, these are communication blocks which inturn call SF-OB blocks as part of there function. I,m looking for an alternative in S7 but cant find anything and dont know which way to turn at the moment.
The next issue is some of the other errors being generated like LIR, TIR and L BS, I,m not sure what to do with them.
Any help or direction would be greatly appreciated and apologies for the lenght of the question.
Current code:
Network: 1 FB L2_SERVER POUR AG 135U
JU M001
BEU
M001: NOP 0
Network: 2
OPN DB 150
AN DBX 17.1
JC NOWA
L DBW 2
INC 1
T DBW 2
L 10
>I
JC OUT
L 0
T DBW 14
WAIT: NOP 0 // CALL FB 123;
// *** Error in Line 5347 (FB 100): Block does not exist. ***
// ( $$IDENT := B#(255,145)
// , $$IDENT := B#(0,0)
// , $$IDENT := MW 0
// , $$IDENT := MB 255
// );
L DBW 14
INC 1
T DBW 14
L 10
>I
BEC
L DBW 18
// LIR 1;
// *** Error in Line 5361 (FB 100): Command not defined. ***
L 2#10
AW
L 2#10
==I
JU M001
BEU
M001: NOP 0
Network: 2
OPN DB 150
AN DBX 17.1
JC NOWA
L DBW 2
INC 1
T DBW 2
L 10
>I
JC OUT
L 0
T DBW 14
WAIT: NOP 0 // CALL FB 123;
// *** Error in Line 5347 (FB 100): Block does not exist. ***
// ( $$IDENT := B#(255,145)
// , $$IDENT := B#(0,0)
// , $$IDENT := MW 0
// , $$IDENT := MB 255
// );
L DBW 14
INC 1
T DBW 14
L 10
>I
BEC
L DBW 18
// LIR 1;
// *** Error in Line 5361 (FB 100): Command not defined. ***
L 2#10
AW
L 2#10
==I
JC WAIT
OUT: R DBX 17.1
L 0
T DBW 2
L DBW 0
L 1
+I
T DBW 0
ON M 0.0
O M 0.0
// CALL FB 120;
// *** Error in Line 5377 (FB 100): Block does not exist. ***
// ( $$IDENT := B#(255,145)
// , $$IDENT := B#(0,0)
// , $$IDENT := MW 0
// , $$IDENT := lok_kcpar [0]
// , $$IDENT := B#(0,150)
// , $$IDENT := 140
// , $$IDENT := 4
// , $$IDENT := MB 255
// );
NOWA: NOP 0
Network: 3
OPN DB 150 //
L W#16#EE00
T DBW 300
L W#16#EF00
T DBW 302
L W#16#EF80
T DBW 304
L W#16#F000
T DBW 306
L W#16#F100
T DBW 308
L W#16#EC00
T DBW 310
L W#16#ED00
T DBW 312
L W#16#E400 //
T DBW 314
L W#16#0
T DBW 316
L #SSNR #SSNR -- SSNR
T DBW 290
L #ANR #ANR -- ANR
T DBW 292
L #ANZW #ANZW -- ANZW
SRW 8
L 0
==I
JC MEM
// L BS 34;
// *** Error in Line 5418 (FB 100): Invalid operator. ***
L #ANZW #ANZW -- ANZW
SRW 8
+I
// LIR 1;
// *** Error in Line 5423 (FB 100): Command not defined. ***
L #ANZW #ANZW -- ANZW
SLW 8
SRW 8
+I
T DBW 18
L 'DB'
JU NEXT
MEM: L DBW 300
L #ANZW #ANZW -- ANZW
+I
L 1
+I
T DBW 18
L 'MW'
NEXT: T DBW 294
L #ANZW #ANZW -- ANZW
L 0
T DBW 2
L DBW 0
L 1
+I
T DBW 0
ON M 0.0
O M 0.0
// CALL FB 120;
// *** Error in Line 5377 (FB 100): Block does not exist. ***
// ( $$IDENT := B#(255,145)
// , $$IDENT := B#(0,0)
// , $$IDENT := MW 0
// , $$IDENT := lok_kcpar [0]
// , $$IDENT := B#(0,150)
// , $$IDENT := 140
// , $$IDENT := 4
// , $$IDENT := MB 255
// );
NOWA: NOP 0
Network: 3
OPN DB 150 //
L W#16#EE00
T DBW 300
L W#16#EF00
T DBW 302
L W#16#EF80
T DBW 304
L W#16#F000
T DBW 306
L W#16#F100
T DBW 308
L W#16#EC00
T DBW 310
L W#16#ED00
T DBW 312
L W#16#E400 //
T DBW 314
L W#16#0
T DBW 316
L #SSNR #SSNR -- SSNR
T DBW 290
L #ANR #ANR -- ANR
T DBW 292
L #ANZW #ANZW -- ANZW
SRW 8
L 0
==I
JC MEM
// L BS 34;
// *** Error in Line 5418 (FB 100): Invalid operator. ***
L #ANZW #ANZW -- ANZW
SRW 8
+I
// LIR 1;
// *** Error in Line 5423 (FB 100): Command not defined. ***
L #ANZW #ANZW -- ANZW
SLW 8
SRW 8
+I
T DBW 18
L 'DB'
JU NEXT
MEM: L DBW 300
L #ANZW #ANZW -- ANZW
+I
L 1
+I
T DBW 18
L 'MW'
NEXT: T DBW 294
L #ANZW #ANZW -- ANZW
T DBW 296
And other errors..........
+I
T DBW 12
L DBW 6
L 1
+I
// LIR 1;
// *** Error in Line 5702 (FB 100): Command not defined. ***
SLW 8
L DBW 12
// TIR 3;
// *** Error in Line 5706 (FB 100): Command not defined. ***
L W#16#C0
JU SEND
WRIT: NOP 0
L DBW 10
L DBW 6
//CALL SFC 20 (
// SRCBLK := P#????? BYTE 0,
// RET_VAL := conv_ret_val,
// DSTBLK := P#????? BYTE 0
// );
// *** Error in Line 5718 (FB 100): CALL SFC20 generated. Please complete parameter list. ***T DBW 12
L DBW 6
L 1
+I
// LIR 1;
// *** Error in Line 5702 (FB 100): Command not defined. ***
SLW 8
L DBW 12
// TIR 3;
// *** Error in Line 5706 (FB 100): Command not defined. ***
L W#16#C0
JU SEND
WRIT: NOP 0
L DBW 10
L DBW 6
//CALL SFC 20 (
// SRCBLK := P#????? BYTE 0,
// RET_VAL := conv_ret_val,
// DSTBLK := P#????? BYTE 0
// );
Last edited: