Hi
Im trying to use SFC20 BLK Move in a piece of SCL code in Step7.
I need to copy/move one string[16] in a DB to another DB place !
If a block call is inserted with SFC20 in my SCL code it looks like this :
BLKMOV(SRCBLK := // IN: ANY
,DSTBLK := // OUT: ANY
); // INT
At SRCBLK i would write P#db2000.dbx220.0 BYTE 18 and at DSTBLK i would write P#db2000.dbx20.0 BYTE 18
But this dosnt work ?
I have also tryed doing the call like this :
BLK_Move_Dummy := BLKMOV(SRCBLK := P#db2000.dbx220.0 BYTE 18, DSTBLK := P#db2000.dbx20.0 BYTE 18);
Where BLK_Move_Dummy is defined as an INT for the RET_VAL !
If i do a blk mov with just INT values its all good but as soon as p# pointer for string values are added it all goes wrong. I can do the same pointer in ladder and it works
Im trying to use SFC20 BLK Move in a piece of SCL code in Step7.
I need to copy/move one string[16] in a DB to another DB place !
If a block call is inserted with SFC20 in my SCL code it looks like this :
BLKMOV(SRCBLK := // IN: ANY
,DSTBLK := // OUT: ANY
); // INT
At SRCBLK i would write P#db2000.dbx220.0 BYTE 18 and at DSTBLK i would write P#db2000.dbx20.0 BYTE 18
But this dosnt work ?
I have also tryed doing the call like this :
BLK_Move_Dummy := BLKMOV(SRCBLK := P#db2000.dbx220.0 BYTE 18, DSTBLK := P#db2000.dbx20.0 BYTE 18);
Where BLK_Move_Dummy is defined as an INT for the RET_VAL !
If i do a blk mov with just INT values its all good but as soon as p# pointer for string values are added it all goes wrong. I can do the same pointer in ladder and it works