Example Handshake between PLC and PeakHMI
Note the Point is case sensitive e.g. ['Test',5007] is not the same as ['test',5007]
LogTrigger:=ReadValue(['Test',5007]); //PLC Input trigger
if LogTrigger[0] then //test
begin
value:=ODBCDatalogger('log'); //command to log and get a result
if value then
begin
beep; //success
WriteValue(['Test', 5007, 0]); //reset trigger
end;
end;