01-20-2010 03:12 PM
Would like to send the computer time data to the PLC on a regular bases for sync'n purposes.
Created a POT that uses a V memory location in an Automation Direct PLC.
The POT also has a connection to System.time
It sort of works BUT since it is reading the PLC, the POT is written over even if the connection updates.
Tried making the connection with "value" and with "reset" and "resetvalue". Had rest trigger by a rimer and by putting "0" into the PLC.
It gets locked on the the last value sent. Sometimes changes, but not sure its luck or fooling around with it.
Is there and easy way to send data like this to the PLC on a regular bases. Can do it with a bit but not successful (yet) with analog.
01-22-2010 01:31 AM
In Lookout, the time value is a double, such as 40200.643584, where 1 represents 1 day.
If you want this double to be written to PLC, you can just create this connection:
PLC.address = now(pulse(on,00:01,00:01))
The second and third parameters of pulse() are the pulse period and pulse duration. You can set them accordingly.
Actually I don't understand why your pot is written over. I think you should only write this PLC address but not read it.