Question: Can you solve this question please? by using PLC TIA PORTAL PROGRAMMING Please create a system that can create a random number with

Can you solve this question please? by using " PLC TIA PORTAL PROGRAMMING "
Please create a system that can create a random number with the given following details: 1- 2- 3- 4- Two different counters must be configured (not CNT, simple binary counters achieved with ++), One of these counters should count in every scan-time and should swing between 0-1000, 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, 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), 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), Then square root of this value must be obtained, and the randomized value is the result of this operation, 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. 5- 6- 7- Example: Event Rising Edge on 0.00 Rising Edge on 0.00 Rising Edge on 0.00 Rising Edge on 0.00 Rising Edge on 0.00 Output Address 1 Value (1.15-1.00) 0000 0011 0111 0010 0000 0010 1000 1001 0000 0101 0011 1000 0001 0000 0000 0000 0000 1001 0111 0100 The Random Number It Represents 0372 0289 0538 1000 0974
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
