Edge Integration

 

Station Controller (sc)

 

User’s Guide

 

 

 

 

October 14, 2005

Version 2.1.1

 

 

 

 

 

 

 

 

 

 

 

 

 

Ó Copyright Edge Integration 2005

 


Table of Contents

 

 

 

 

 

 

Revision Notes. 3

Versions. 3

Known Bugs. 5

Future Enhancements. 5

Introduction. 5

Getting Started. 5

sc Commands. 7

sc Program.. 8

Hello World. 8

Program structure. 8

Program execution. 9

Handling Event and Reply Messages. 10

Parsing rules. 10

Program Variables. 11

Dumping sc Variables. 12

Variable Context 12

Using Timers. 12

Error Handling. 13

Reference. 14

Program statements. 14

Math Operators. 19

Unary Operators. 19

Relational Operators. 19

Boolean Operators. 19

Bitwise Operators. 20

Constants. 20

String concatenation. 20

Keywords. 20

Functions. 21

Command Protocol 26

Standard Protocol 27

Options. 28

Example. 28

SECS Protocol 29

SECSI 30

Interleaving Messages. 30

SECSI options. 30

SECSI Contention. 31

HSMS. 32

HSMS options. 32

Annotated SECSII Message. 32

Variables in SECSII Replies and Unsolicited Messages. 33

For/next loops. 35

Handling SECS Events. 35

Hints. 36

Getting the sc version. 36

Examples. 36

Maintenance. 37

Debugging sc. 37

 

 


Revision Notes

Versions

 

Version 2.1.1

 

Version 2.1

 

 

 

 

 

 

Version 2.0.6

 

 

Version 2.0.5

 

 

Version 2.0.4

 

 

Version 2.0.3

 

 

Version 2.0.2

 

 

Version 2.0.1

 

 

Version 2.0 - Open Source

 

 

Known Bugs

 

 

Future Enhancements

 

Introduction

 

The purpose of this document is to show how to create program files using the Edge Integration sc Station Controller.  This document explains how the sc functions and the program language syntax along with programming examples.