INT_TO_REAL not working,MODICON M340

sarojj7

Member
Join Date
Dec 2016
Location
Calcutta
Posts
4
Dear All,

New year wishes. I am using modicon m340 plc and using bmx ami0810 module for taking analog input. The analog input is current(4 to 20 mamps) from a pressure transmitter. I need to scale this input to 0 to 10bar, hence I am using Scaling block. As scaling block doesn't take int input, I am using INT_TO_REAL block for converting int to real.

But this block doesn't work. Upon connecting to plc the int input is changing as per my input to ai module but the output of int to real block remains at 0.0.

Software: Unity Pro M

Kindly help.
 
Last edited:
Can you zip and upload a copy of your code? The int to real block should definitely work as you are expecting. I use this exact approach often.
 
What language are you using? (LD, FB, ST?)

Couple of ideas....

You don't have your EN pin "on"

The tag you have on the output is being written to by something else.

You logic is in a conditional section and it is not being called.
 

Similar Topics

I have been working on an existing project for some time now and restructured the whole program into POUs instead of a singular main. Everything...
Replies
18
Views
3,188
Hi all. Me again still learning Rockwell. So I'll be polling an INT data array from a Modbus SE power meter with a L82 (with a Modbus ProSoft in...
Replies
56
Views
1,208
I seem to be making this harder than it should be, and Its not making any sense. I simply need to move a real variable to two integer variables...
Replies
8
Views
901
Situation: Single [EQU] instruction with single [OTE] on a rung, nothing else/simple. [EQU] operand(A) is a real number data type...
Replies
16
Views
2,557
I work at a cheese factory and we recently ran into a problem where in an older controller they where able to use a REAL Data type in OTU and XIC...
Replies
13
Views
2,399
Back
Top Bottom