Ccpu_Getdotmatrixled - Mitsubishi Electric MELIPC MI5000 Series Programming Manual

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

Advertisement

CCPU_GetDotMatrixLED

Acquires the values displayed on the dot matrix LED of a MELIPC.
Format
short CCPU_GetDotMatrixLED(char* pcData, unsigned long ulDataSize)
Argument
Argument
Name
pcData
LED data
ulDataSize
LED data storage destination size
Description
• Acquires the value displayed on the dot matrix LED and stores it in the LED data (pcData).
• It also acquires the information for the size specified to the LED data storage destination size (ulDataSize).
• The value displayed on the dot matrix LED is stored in the LED data (pcData) as shown below.
pcData[1]
pcData[0]
pcData[0] to pcData[79]: Data on the dot matrix LED (9×40)
The values displayed are acquired 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
Return value
Return value
0(0000H)
-264(FEF8H)
For details on error codes, refer to the following section.
Page 116 Function error codes
Description
Specify the storage destination of LED data.
Specify the LED data storage destination size in byte units.
(When '0' is specified, this function ends normally without processing.)
Description
The lower seven bits are all '0'.
Acquires the bit pattern corresponding to line 9 of the dot matrix LED by the upper 1 bit.
Acquires the bit pattern corresponding to lines 1 through 8 of the dot matrix LED. (The most significant bit corresponds
to line 1)
Description
Normal
Pointer error
pcData[79]
pcData[78]
3 DETAILS OF FUNCTIONS
3.1 C Controller Module Dedicated Functions
3
IN/OUT
OUT
IN
43

Advertisement

Table of Contents
loading

Table of Contents