EasyManua.ls Logo

Alcorn Mcbride V16Pro - Out Port; In Port

Alcorn Mcbride V16Pro
179 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
WinScript Live Command Reference Page 67
WinScript
Reference
Out Port
Sets a group of eight Outputs to a single binary value. The lowest number Output becomes the
Least Significant Bit (or LSB), the highest becomes the Most Significant Bit (or MSB).
Event Syntax
Event
Data1
Data2
OutPort
Output Bank*
Desired Literal Value (0-255)
*Bank1 = Outputs 1-8; Bank2 = Outputs 9-16; All= Outputs 1-16. If specifying "All" as the bank, the
Literal Value range is 0-65535.
Example
Event
Data1
Data2
OutPort
Bank1
157
Sets output bank 1 (Outputs 1-8) to the binary representation of 157 (or 10011101). After the
Out Port event is executed, the following outputs are actuated:
1
2
3
4
5
6
7
8
In Port
Reads a group of eight inputs to a Variable. The lowest number input becomes the LSB, etc.
Event Syntax
Event
Data1
Data2
InPort
Input Bank*
Name of Variable
*Bank1 = Inputs 1-8; Bank2 = Inputs 9-16; All = Inputs 1-16
Example
Event
Data1
Data2
InPort
Bank1
Var7
Sets var7 to the value of input bank 1 (inputs 1-8). Assuming inputs of 10011101 (where 1 is on),
after the InPort event is executed, Var7 will contain the value 157.

Table of Contents