PLC

Thread Starter

EMİN75

Joined Jan 14, 2022
2
1- Two different counters must be configured (not CNT, simple binary counters achieved with ++),
2- One of these counters should count in every scan-time and should swing between 0-1000,
3- Just like the first counter, the second counter should count in the same manner and should swing between 0- 1000 but it should get cleared with the rising edge of 0.00,
4- When a rising edge occurs on 0.00 input, the current value of the first and second counter must be collected (second counter must be cleared after collecting the second counter value),
5- Two counter values collected must be multiplied and be careful that the value obtained can be higher than 65535 (you must keep it on a 32-bit area),
6- Then square root of this value must be obtained, and the randomized value is the result of this operation,
7- This value must appear on the output of PLC (address 1) in BCD format and should not change until a new rising edge occur on 0.00 input

plc.png
 

djsfantasi

Joined Apr 11, 2010
9,237
Don’t let strantor’s comments get to you.

This sub-forum is Homework Help. There are a few rules. We cannot give you the answer. You have to show some work first. Then, we will let you know if it’s correct. If it’s not, we will guide you to the answer. But you have to do the work.

Some wags suggest that the forum is not titled Homework Done For You. Just ignore their wise comments. And show us your work.
 

strantor

Joined Oct 3, 2010
6,875
I'm one of probably one (maybe 2 or 3) people on this forum who has CX programmer. If TS wants his homework done for him with absolutely no effort expended, not even the effort to say "I'm having trouble with step 5" then I'm the guy. I'll do it for him (for a price).
 

panic mode

Joined Oct 10, 2011
4,974
did you check documentation and instruction set?
do you know how to evaluate IO signal?
do you know how to evaluate rising edge of an IO signal?
there are math instructions too...

problem is tailored for you to try and learn from mistakes.
do that and if you are stuck post the code and challenge that it poses and we will help. no $$ needed.
 
Top