xLadder user manual-V2.0.0.6

6.5.21 Seven segment code

Input/output Operand

Data type

IN

VB, IB, QB, MB, SB, SMB, LB, AC,constant, *VD, *AC, *LD

Byte

OUT

VB, IB, QB, MB, SMB, LB, AC, *VD, *AC, SB, *LD

Byte

SEG:The instruction generates the bits of the seven

segment.

The low four bits value of input byte is converted.

Seven segment code table:

Example:

Analysis:

The low four bits value of VB0 is 8.The value of the output byte VB1 is 16#7F.The

result of converting VB1 to binary is 2# 0111 1111 .

115

Made with FlippingBook - Online magazine maker