Step5 prgram help

srik

Member
Join Date
Sep 2005
Location
hyderabad
Posts
104
Dear all,

We are using Siemens PLC S5 135U. I need to generate a digital output from an analog input, low set value and high set value. I know there is a functional block, FB112 for high /low selections. But it's output is also analog value.Can I use any other functional block for this purpose?
 
Compare

Just use the compare function.

If the actual analog input is less than a "fixed value" the turn on a bit.

If the actual analog input value is greater than a "fixed value" turn on a bit.

L Analog in
L KF 50
<F
= F10.0

The above is just an example.
 
There is one thing to keep in mind when you do an analoge compare function.
If the value is not stable the output will go on and off depending on the analoge value. If that is not a problem you can use it. If it is a prolem when the output goes on and off rapidely (most of the time and aplication I know), you have two options. The easiest way is to build in a time delay for on off.
The best way (programming wise) is to make an hysteresis. So the switch on an off points are different from each other. The size of the gap will depent on the apllication and type of output.

Perhaps you can give us some more information on the aplication you are playing with. I bet there are a lot of people out there that could give you more information based on the aplication.
 
!=F Compare for Equal to

><F Compare for not equal to

>F Compare for Greater Than

<F Compare for Less Than

<=F Compare for Less Than or Equal to
 
With set reset you will have the same question. When do you set and when do you reset.

Programming wise it's not very nice to use set reset. Normally you only use set/reset when you absolutly need to and don't have an other option.
The danger is in the part that you get a situation that reset is forgotten, jumped over. You will end up with a set status when you don't want it.
So in my opinion you can beter go for the safe option !

If you give some more information on the aplication I (or one of the fellow programmers) can try to point you in the correct direction.
Begin with:
- What input signal do you have and where does it come from.
- What are you trying to do with the output.
- What is the output switching on and off.
 

Similar Topics

Hello, I'm trying to migrate an ald S5 PLC(S5-95U). In the code there is a call to a FB25. I don't know anything about this block and I need...
Replies
2
Views
1,329
Hello, I have a one off job to modify some Siemens Step5 software at a local factory. The PLCs are S5-100U (CPU103). I have uploaded the PLC code...
Replies
16
Views
4,301
Hello Everyone! I just became a member of this great site. I have a PLC program from an S5-100U PLC, and now I want to make a PDF report of all...
Replies
3
Views
1,580
Good evening, everyone, someone can tell me what is the best configuration to print my program from Step 5
Replies
0
Views
1,083
hi all, im trying to check EPROM of siemens PLC U115 CPU 943B , and as i found its required STEP5 software but the required OS is Win xp or older...
Replies
5
Views
1,745
Back
Top Bottom