hsms_secsi_protocol_converter

This is an old revision of the document!


RPi Version

//STARTFlag is a simulated register in the PLC. PLC watches for a change form any number to 99 to start processing the START command.
print("STARTFlag value changed to "+incomingValue.getIntValue()+ " from HostCommandSTART");
//PLC does some work here to determine if the START host command is OK or not
java.lang.Thread.sleep(450); //simulate some time the PLC is working on the problem
//PLC sets the HCACK flag value (0 or 4 = OK, 2 = cannot perform now, 5 = already started)
calculatedHCACK=32;
/Devices/DemoServers_Servers/HCACK->setIntValue(calculatedHCACK);
  • hsms_secsi_protocol_converter.1589309956.txt.gz
  • Last modified: 2020/05/12 13:59
  • by wikiadmin