DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

state machine

Hi,
how can i build a state machine in Diadem DAC? f.e. for handshaking with a  PLC.
Are there examples or suggestions?

Thank you in advance

Klaus
0 Kudos
Message 1 of 3
(3,240 Views)
Hi Klausc127,

In general it should be possible to create something similar to a "State Machine" by using the DAC-Script-Driver - but I've never tested it. In the script you can use global defined variables to store the status of a machine. You can use the function SFD_GetScan to interpret the status and process the value in different ways. The remaining stuff is just VBS.
But please keep in mind that because of the structure of DIAdem-DAC it is not possible to measure a specific channel depending on the status of a machine. You can only measure all channels which are necessary for the process - the same is for the output. For this you can work with NOVALUES or a dummy value.
I hope this can help you.

Greetings
Walter

0 Kudos
Message 2 of 3
(3,208 Views)
Hi Walter,
thank you for your hint.

Greetings
Klaus
0 Kudos
Message 3 of 3
(3,192 Views)