Forcing analog input value in Modicon M340

razmis

Member
Join Date
Mar 2017
Location
Hadera
Posts
26
I want to force an analog input value in a Modicon M340 PLC.
I work with Unity Pro XL.
The problem is that the Unity Pro doesn't let me set a value to the CMD_FORCING_VALUE parameter not to the FORCING_ORDER bit.
I am able to force digital inputs and outputs.
What can be the problem?
 
I want to force an analog input value in a Modicon M340 PLC.
I work with Unity Pro XL.
The problem is that the Unity Pro doesn't let me set a value to the CMD_FORCING_VALUE parameter not to the FORCING_ORDER bit.
I am able to force digital inputs and outputs.
What can be the problem?

You cannot force analogs. That's why i decouple all my analog inputs via a custom DFB that lets me toggle between a simulated value and a real value.
 
You need to use write_cmd block for transfer forcing setting for IO-card (Search from help file: Detailed Description of T_ANA_IN_BMX-type IODDT Objects)

Another way is to use WRITE_INPUT_INT-block with %IW address.

And as Saffa writed, you can write own force block with move or selector blocks.
 
You need to use write_cmd block for transfer forcing setting for IO-card (Search from help file: Detailed Description of T_ANA_IN_BMX-type IODDT Objects)

Another way is to use WRITE_INPUT_INT-block with %IW address.

.

I knew you could do that with bits, but didn't know it also applied to analogs. Learnt something new today!
 
I think they have a built in function block to do what you are trying to do. Haven't used it myself.
 

Similar Topics

Hi, How to force analog I/O values in Proworx 32 Software (Modicon). Thanks.
Replies
2
Views
1,618
Hi All, I am working on RSLogix 5000 and trying to force a load cell value to test the PLC program but I can't. I am in need of advice to force...
Replies
3
Views
2,697
Hi, im familiar only with Siemens PLC, and now im doing commissioning in unity pro project. So question is that how do I force an analog output...
Replies
7
Views
4,296
I am familiar with RSLogix, Concept, and Telepace, but have not used Unity Pro S until the past few weeks and have a few issues I have not been...
Replies
2
Views
9,700
Good afternoon, I am conducting some tests on GE 90-70 PLC following some code modifications with LM90-70. In the reference tables I can force...
Replies
2
Views
1,503
Back
Top Bottom