Mitsubishi Electric MELIPC MI5000 Series Programming Manual page 66

Vxworks
Hide thumbs Also See for MELIPC MI5000 Series:
Table of Contents

Advertisement

CCPU_SetDotMatrixLED
Sets values to be displayed on the dot matrix LED of a MELIPC.
Format
short CCPU_SetDotMatrixLED(unsigned short usMode, char* pcData)
Argument
Argument
usMode
pcData
• Specifies the LED data (pcData) as follows when the output mode (usMode) is '0' (dot mode).
pcData[1]
pcData[0]
pcData[0] to pcData[79]: Data on the dot matrix LED (9×40)
The following table shows the specified data in the following formats.
pcData
pcData [even number]
pcData [odd number]
When the corresponding bit of the bit pattern section is '1', the LED turns ON.
Ex.
When the following bit pattern is displayed on the dot matrix LED
1
5
1
9
1st row: 0011 1111 1000 0000b=3F80H→pcData[0]=0x80, pcData[1]=0x3F
2nd row: 0100 0010 0000 0000b=4200H→pcData[2]=0x00, pcData[3]=0x42
3rd row: 1000 0010 0000 0000b=8200H→pcData[4]=0x00, pcData[5]=0x82
4th row: 0100 0010 0000 0000b=4200H→pcData[6]=0x00, pcData[7]=0x42
5th row: 0011 1111 1000 0000b=3F80H→pcData[8]=0x80, pcData[9]=0x3F
6th column to 40th column:0000 0000 0000 0000b=0000H→pcData[10] to pcData[79]=0x0000
3 DETAILS OF FUNCTIONS
64
3.1 C Controller Module Dedicated Functions
Name
Output mode
LED data
Description
The lower seven bits are all specified to '0'.
The upper 1 bit specifies the bit pattern corresponding to line 9 of the dot matrix LED.
Specifies the bit pattern corresponding to lines 1 through 8 of the dot matrix LED. (The most significant bit corresponds
to line 1)
Description
Specify the output mode to the dot matrix LED.
(When 'Reserved' is specified, this function ends normally without
processing.)
• 0: Dot mode
• 1: ASCII mode
• Others: Reserved
Specifies the data displayed on the dot matrix LED.
pcData[79]
pcData[78]
IN/OUT
IN
IN

Advertisement

Table of Contents
loading

Table of Contents