duckie112
Member
Hi, I have a problem with my Pulse Timer that need to work with pseudo-random generated time values.
This is my pulse timer code. The mw200 and mw150 are psuedo-random values. The part with the mw200 is working but when the timer got his enable signal the timer wont pick up the mw150 value. I want the random time value be working 100% instead making it a standard value. It is a simple program to simulate downtime at a random number of products and with a random downtime to max 15mins. The values both change every 15 minutes.
Code:
A(
L MW 30
L MW 200
==I
)
L MW 150
SP T 20
A I 4.7
R T 20
NOP 0
NOP 0
A T 20
= Q 0.7
Last edited: