bool SetPortStates(int64, string)

Toggles the on/off or high/low state of ports/pins, each represented by one bit.

Security

Trust Level Required: Full Trust

Parameters

Name Description
portBits int64
The new port/pin states.
deviceName (Optional) string
The name of the device, as specified in the Config Tool. Default: null.

Return

true, upon success.

Remarks

JavaScript does not support setting every bit of a 64-bit number, so it is best to use SetPortStates64 if you need to target indexes above 31.