3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
137
3
CCPU_SetDotMatrixLED_ISR
This function sets a value to be displayed on the dot matrix LED of C Controller module.
■
Format
short CCPU_SetDotMatrixLED_ISR (unsigned short usLedMode, char* pcData)
■
Argument
Specify the LED data (pcData) as follows.
pcData[0] to pcData[19]: Data of the dot matrix LED (7
20)
The data specified in the following format is displayed.
Data format for each column: Bit pattern in which '0' is for the upper one bit, and '1' (when LED is ON) or '0' (when LED is
OFF) is for lower seven bits
Ex.
The bit pattern shown below is output to the dot matrix LED:
1st column: 0000 0111b = 07H
→
pcData[0] = 0x07
2nd column: 0000 1100b = 0cH
→
pcData[1] = 0x0c
3rd column: 0001 0100b = 14H
→
pcData[2] = 0x14
4th column: 0010 0100b = 24H
→
pcData[3] = 0x24
5th column: 0111 1111b = 7fH
→
pcData[4] = 0x7f
6th column to 20th column: 0000 0000b = 00H
→
pcData[5] to pcData[19] = 0x00
■
Description
This function displays the value specified to the LED data (pcData) on the dot matrix LED.
• Do not execute this function in a routine other than an interrupt routine.
• Do not execute this function when a mode other than "USER" is selected in the operation selection mode.
An unintended value may be displayed on the dot matrix LED.
• Do not execute this function while checking an operation or checking the selected operation with the MODE/
SELECT switch.
An unintended value may be displayed on the dot matrix LED.
Precautions
When this function is executed, an image of the dot matrix LED in which data are being written may be displayed on the
[Module Diagnostics (CPU diagnostics)] screen of CW Configurator.
Argument
Name
Description
IN/OUT
usLedMode
Output mode
Unused (Even if a value is specified, the operation is not affected.)
IN
pcData
LED data
Specify the LED data.
IN
Dot matrix LED
1st column
2nd column
5th column
Содержание MELSEC iQ-R C
Страница 1: ...MELSEC iQ R C Controller Module Programming Manual ...
Страница 2: ......
Страница 201: ...I 199 MEMO ...
Страница 203: ...I 201 MEMO ...
Страница 207: ......