RollingPin
Member
I am using SCL for a bit of TCP programming on an S7-400. How do I link the DB to the AG_SEND or AG_RECV FC? In the case of FBD or ST, you use
P#DB1.DBX0.0 BYTE 4 at the RECV parameter.
I tried a similar syntax in SCL (see below)
AG_RECV(ID := 1, LADDR := W#16#1FFB, RECV := P#DB4.DX0.0 BYTE 10,
NDR => TempBool, ERROR => TempBool, STATUS => TempWord, LEN => TempInt);
The compiler throws an error "Illegal data type for constants". Anybody knows the correct syntax?
P#DB1.DBX0.0 BYTE 4 at the RECV parameter.
I tried a similar syntax in SCL (see below)
AG_RECV(ID := 1, LADDR := W#16#1FFB, RECV := P#DB4.DX0.0 BYTE 10,
NDR => TempBool, ERROR => TempBool, STATUS => TempWord, LEN => TempInt);
The compiler throws an error "Illegal data type for constants". Anybody knows the correct syntax?