OpBCD Method
Description
Simultaneously sets 8 output bits using BCD (Binary Coded Decimal) format.
Syntax
OpBCD (PortNumber As Integer, Value As Integer)
OpBCD (Label As String, Value As Integer)
Parameters
- PortNumber
An integer indicating the I/O port Each port comprises 8 output bits (one byte). - Value
An integer between 0 and 99 indicating the output pattern for the specified port. The 2nd digit (called the 1’s digit) represents the lower 4 output bits of the port and the 1st digit (called the 10’s digit) represents the upper 4 output bits of the port.
See Also
Off Method, Out Method, Sw Method
OpBCD Example
VB Example:
m_spel.OpBCD(1, 25)
C# Example:
m_spel.OpBCD(1, 25);