CliveBaker
Member
HI All,
I am trying to set up a FB to pass details to to get Simocode data records 92, 94 amd 95. I have 30 motors to read.
I can get it to work ok it it is hard coded but I want to pass variables to the FB.
This is what I have in the FB
CALL "RDREC" , DB10
REQ :=#RD_REC
ID :=#RD_Addr
INDEX :=#RD_Indx
MLEN :=#RD_MLen
VALID :=#RD_Valid
BUSY :=#RD_Busy
ERROR :=#RD_Error
STATUS:=#RD_Status
LEN :=#RD_Len
RECORD:=P#M 20.0 BYTE 32
My Question Is how do I pass the RECORD:
I am trying to set up a FB to pass details to to get Simocode data records 92, 94 amd 95. I have 30 motors to read.
I can get it to work ok it it is hard coded but I want to pass variables to the FB.
This is what I have in the FB
CALL "RDREC" , DB10
REQ :=#RD_REC
ID :=#RD_Addr
INDEX :=#RD_Indx
MLEN :=#RD_MLen
VALID :=#RD_Valid
BUSY :=#RD_Busy
ERROR :=#RD_Error
STATUS:=#RD_Status
LEN :=#RD_Len
RECORD:=P#M 20.0 BYTE 32
My Question Is how do I pass the RECORD: