I/O Port #H
The EA PLCC28 has 8 digital inputs and 4 relay outputs. If the port input pins are changed, macros can be started, see #MHP, and #MHB.
Port-Access (8 I/Os)
Define port (input/output) (Hardware Port Control) |
Port, I/O, I/O [Port+1], ... |
|
Set port output (Hardware Port Write) |
Port, State, State [Port+1], .. |
Pin-Access
Define port-pin (input/output) (Hardware Bit Control) |
Portpin, I/O, I/O [Port+1], ... |
|
Set port-pin output (Hardware Bit Write) |
Portpin, State, State [Port+1], .. |
Port-Access (8 I/Os)
#HPC |
Port, I/O, I/O [Port+1], ... |
The command defines the direction (I/O) of the individual port pins bit by bit for an entire Port [0 ... 17]
I/O |
|
0 |
Output |
1 |
Input |
|
... #HPC 0,$E9 ... ... #HPC 0,%11101001 ... |
#HPW |
Port, State, State [Port+1], . |
The command sets the State of the outputs bit by bit for an entire Port.
State |
|
0 |
Low |
1 |
High |
|
... #HPC 0,0 #HPW 0,$B4 ... ... #HPC 0,0 #HPW 0,%10110100 ... |
Pin-Access
Define port-pin (input/output)
#HBC |
Portpin, I/O, I/O [Port+1], ... |
The command defines the direction (I/O) for the Portpin:
I/O |
|
0 |
Output |
1 |
Input |
#HBW |
Portpin, State, State [Port+1], .. |
The command sets the State of the output for the Portpin.
State |
|
0 |
Low |
1 |
High |
2 |
Invert |