yangdongnet
Member
- Join Date
- Aug 2004
- Posts
- 1
i used mvi56_adm moudle at 2002, it work perfectly,
at 2003, i used mvi47_adm moudle , it work perfectly too,
this time , mvi71_adm is required .
i think rslogix5 can use BTR and BTW instruction to access 71adm's IO image,
first, i used MVIbp_WriteInputImage() API write data to 71adm's image file(just as 56adm), but it return MVI_ERR_BADPARAM , "Developer's Guide" say this value will be returnd if an attempt is made to
access the input image beyond the range configured for direct IO.
but , i did not know how to set input or output image size in rslogix5 software (56adm can be set image file size in rsloigx5000, 47adm can be set M files in rslogix500),
i saw the "Developer's Guide" , it say MVIbp_SetIOConfig() is used to define the module's IO images.
i used MVIbp_SetIOConfig() , i want set those value:
TotalInputSize=16;
TotalOutputSize=16;
DirectInputSize=16;
DirectOutputSize=16;
MsgRcvBufSize=0;
MsgSndBufSize=0;
but it always return "MVI_ERR_BADCONFIG", i didn't kow how to do ,then i used MVIbp_GetIOConfig(), it return MVI_SUCCESS and return those value:
TotalInputSize=1;
TotalOutputSize=1;
DirectInputSize=1;
DirectOutputSize=1;
MsgRcvBufSize=0;
MsgSndBufSize=0;
i think those value is default value for 71adm, but , but!!!! i just cant set those value,
how can i do ?? i need help !! this problem puzzled me several days, !!
at 2003, i used mvi47_adm moudle , it work perfectly too,
this time , mvi71_adm is required .
i think rslogix5 can use BTR and BTW instruction to access 71adm's IO image,
first, i used MVIbp_WriteInputImage() API write data to 71adm's image file(just as 56adm), but it return MVI_ERR_BADPARAM , "Developer's Guide" say this value will be returnd if an attempt is made to
access the input image beyond the range configured for direct IO.
but , i did not know how to set input or output image size in rslogix5 software (56adm can be set image file size in rsloigx5000, 47adm can be set M files in rslogix500),
i saw the "Developer's Guide" , it say MVIbp_SetIOConfig() is used to define the module's IO images.
i used MVIbp_SetIOConfig() , i want set those value:
TotalInputSize=16;
TotalOutputSize=16;
DirectInputSize=16;
DirectOutputSize=16;
MsgRcvBufSize=0;
MsgSndBufSize=0;
but it always return "MVI_ERR_BADCONFIG", i didn't kow how to do ,then i used MVIbp_GetIOConfig(), it return MVI_SUCCESS and return those value:
TotalInputSize=1;
TotalOutputSize=1;
DirectInputSize=1;
DirectOutputSize=1;
MsgRcvBufSize=0;
MsgSndBufSize=0;
i think those value is default value for 71adm, but , but!!!! i just cant set those value,
how can i do ?? i need help !! this problem puzzled me several days, !!