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)

#HPC

Port, I/O, I/O [Port+1], ...

Set port output

(Hardware Port Write)

#HPW

Port, State, State [Port+1], ..

Pin-Access

Define port-pin (input/output)

(Hardware Bit Control)

#HBC

Portpin, I/O, I/O [Port+1], ...

Set port-pin output

(Hardware Bit Write)

#HBW

Portpin, State, State [Port+1], ..


Port-Access (8 I/Os)

Define port (input/Ausgang)

#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


Port 0


0

1

2

3

4

5

6

7

Input




Output






...

#HPC 0,$E9

...


...

#HPC 0,%11101001

...


Set port output

#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


Port 0


0

1

2

3

4

5

6

7

State

...

#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


Set port-pin output

#HBW

Portpin, State, State [Port+1], ..

The command sets the State of the output for the Portpin.

State

0

Low

1

High

2

Invert