BOOL32TODINT inside a Function Block - Type mismatch error
Hello All,
I am trying to use BOOL32TODINT inside a Function Block, but i am getting errors. It is giving a type mismatch error for the IN tag.
Please see attached pic.
I can use DINTtoBOOL32 inside function block without erros, but its the BOOLXXtoDINT function blocks which are giving errors.
Has anyone used BOOL32toDINT inside a FUNCTION BLOCK.
Please could you help out.
thanks,

I am trying to use BOOL32TODINT inside a Function Block, but i am getting errors. It is giving a type mismatch error for the IN tag.
Please see attached pic.
I can use DINTtoBOOL32 inside function block without erros, but its the BOOLXXtoDINT function blocks which are giving errors.
Has anyone used BOOL32toDINT inside a FUNCTION BLOCK.
Please could you help out.
thanks,

Answers
Hi The OUT1 DATA TYPE is Dint where the function out is int data type.
You need to change the out1 to int instead of Dint .
You need to change the out1 to int instead of Dint .
by Neeraj Raushan Rank: 303 on 3/17/2021 8:29:54 AM | Like (0) | Report
Hi,
problem is something different,
your Function Block Type and variable connections seems fine.
Add new comment