Integrating SecsToHost.Net into your equipment application is an easy and seamless task. With just a few lines of codes you can turn your equipment application into a SECS/GEM compliant.
The following sample code assumes that you have done the tool configuration file EquipmentTemplate.xml with Model Builder.
Once you have defined your Equipment configuration with the Model Builder, you will need to initialize the GEMController.
All the HSMS settings (IP address, port, etc) are defined in the tool model.
To establish connection and S1F13 communication to Host:
To terminate the connection:
Once you subscribed to CommunicationChanged event, you can handle all the connection notification by the GEMController.
Not code required. All the control state and requirements are implemented within the GEMController object. You can use the following methods to change the control state:
As shown above, you only need to specify the event logical name and GEMController does all the works for you. (Check whether event is enabled/disabled, event->report->variables association, etc)
No code required. GEMController handles all the host requests (S1F3, S1F11, S2F13, S2F15, etc) automatically.
No code required. GEMController handles all the host requests (S2F23, S6F1) automatically.
All the host requests pertaining to Alarm are automatically handled by the GEMController. The equipment application simply need to set/clear the alarm to notify the Host.
After you triggered alarm set/clear, the GEMController proceed to send the S6F11 with the CEID associated with the alarm set and clear.
All the host requests pertaining to Process Program are automatically handled by the GEMController. The equipment application simply need to handle the Upload/Download of process program. Below code snippet shows how to handle the process program upload request by Host:
No code required. GEMController handles all the Host requests (S2F15, S2F43, S6F23) and spooling state model automatically.
For other functionalities, please request for the evaluation copy which will include a complete sample program.