Answered step by step
Verified Expert Solution
Question
1 Approved Answer
MUST BE PREPARED BY USING OMRON CX PROGRAMMER Please create a system that can create a random number with the given following details: 1- 2-
MUST BE PREPARED BY USING OMRON CX PROGRAMMER
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 ddress 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started