Mitsubishi Electric MELSEC iQ-R Series User Manual page 74

Controller module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

/* Dot matrix LED control */
sRet = CCPU_SetDotMatrixLED(DISPMODE_ASCII, &pcdata[0]);
if(sRet != 0){
}
/* Invert the output value of Y signals (turn on the bits in order of odd bit -> even bit -> ...). */
usDataBuf = ~usDataBuf;
/* Switch the output of the dot matrix LED (LED1,2: on -> LED3,4: on). */
if(i%2 ==0){
}else{
}
/* Wait */
taskDelay(60);
}
/* Reset Y signals. */
usEmptyDataBuf = 0x00;
sRet = CCPU_Y_Out_WordEx(NORMAL_ACCESS, UNIT_XY, WORD,&usEmptyDataBuf, DUMMY);
if(sRet != 0){
printf("ERROR : CCPU_Y_Out_WordEx_2
return;
}
/* Reset the dot matrix LED. */
pcdata[0] = LED_SPACE;
pcdata[1] = LED_SPACE;
pcdata[2] = LED_SPACE;
pcdata[3] = LED_SPACE;
sRet = CCPU_SetDotMatrixLED(DISPMODE_ASCII, &pcdata[0]);
if(sRet != 0){
printf("ERROR : CCPU_SetDotMatrixLED_2
return;
}
}
8 OPERATION EXAMPLE
72
8.3 Programming
printf("ERROR : CCPU_SetDotMatrixLED_1
return;
pcdata[0] = LED_SPACE;
pcdata[1] = LED_SPACE;
pcdata[2] = LED_0;
pcdata[3] = LED_0;
pcdata[0] = LED_0;
pcdata[1] = LED_0;
pcdata[2] = LED_SPACE;
pcdata[3] = LED_SPACE;
[%d(%04hxH)]\n", sRet, sRet);
[%d(%04hxH)]\n", sRet, sRet);
[%d(%04hxH)]\n", sRet, sRet);

Advertisement

Table of Contents
loading

This manual is also suitable for:

R12ccpu-v

Table of Contents