ADD block not working

jcp

Member
Join Date
Feb 2010
Location
Multan
Posts
369
Hi friends;
I try to make a ramp generator in PLC.
I do the following work but it is not working why?
1. I want in 8 sec the counts ramp up from 0 to 32000.
2. so i use T_10MS system bit.
3. i use add function INPUT REGISTER I1= %R11, I2=40 and Q=%R11.
But add function not working while in LM90 i see scan time is 14 ms.
Regards
 
With a scan time of 14 ms, you can't expect to be able to reliably use the T_10MS (%S0003) bit. That bit is on for 5 ms and off for 5ms.
Try using T_100MS (%S0004) and an increment of 400. Be sure to have T_100MS drive a one-shot coil and use a contact from the one-shot coil at the enable node of the ADD instruction.

For a smaller increment you could use the rising and falling edges of T_100MS to trigger two different one-shot coils and contacts from either of the one-shots enable the ADD instruction. In that case you'll use an increment of 200.
For an even smaller increment, you will have to use a TMR instruction to create a pulse more frequently. Just don't try to get a pulse more often than once per scan.
 

Similar Topics

Does anyone know of an Add-On Inst. or PAX Block that can be used to develop a characteristic curve? I have a Variable Speed Pump with a Current...
Replies
13
Views
2,651
I know this sounds really stupid, but I have a function block program I have written and have been debugging. I have an ADD block that will not...
Replies
10
Views
2,354
Hello, I have an add on instruction block that a coworker created and that I am adding onto. I basically added a few parameters. The original...
Replies
1
Views
2,431
I am troubleshooting an outside vendor program where add on instructions are used as well as these user defined function blocks. I am trying to...
Replies
3
Views
1,598
Dear Friends, How we can create Add-On in Siemens PLC system as we are creating in Rockwell. If any example of program then it will be great.
Replies
1
Views
1,769
Back
Top Bottom