User Tools

Site Tools




UsePin port, In/Out[, aliasName]

port I/O port number. (0 to 255)
In/Out “In” or “Out”
aliasName Alias for the port (Optional)

This command is used to set a port's I/O mode and alias for Ladder Logic programs. This is required before the ports can be used in Ladder Logic.

After executing Usepin Ladder Logic takes full control of the port so the port should no longer be used in BASIC.

UsePin 0,In,START
UsePin 1,Out,RELAY
UsePin 2,In,BKEY
UsePin 3,Out

Use the FreePin command to reassign the port back to BASIC.

Go CUBLOC home

cubloc/usepin/index.txt · Last modified: 2019/03/15 15:14 by COMFILE Technology