Sample SECS Code

[Home] [SECS Library] [Host Example] [Equipment Example] [Message Handler Example]

Examples of Code Using the ErgoTech SECS Library

These code examples are distributed with the SECS Library. They are examples of how you would write Java code with the SECS Library. The SECS Library gives the experienced Java programmer the maximum flexibility in designing host or equipment interfaces.

Note: Using TransSECS avoids the need to write any Java code. The Java code for the host or equipment applications, and the message handling, is generated automatically by TransSECS. This solution is more appropriate for customers who need to quickly generate host or equipment applications without programming.

Sample Host Application (Simulator). This example makes a connection to the equipment and simulates the sending of several messages.

Sample Equipment Application (Simulator). This example waits for a host connection then responds to the host messages.

Sample Message Handler. A Message Handler object is needed for the equipment application. This example can be used as a template for your own Message Handler.

(c) ErgoTech Systems, Inc., 2004