13: T ROUBLESHOOTING13-6 FC5A MICROS MART USER’ S MANUAL FC9Y-B1268User Program Execution ErrorThis error indicates that invalid data is found during execution of a user program. When this error occurs, the ERR LEDand special internal relay M8004 (user program execution error) are also turned on. The detailed information of thiserror can be viewed from the error code stored in special data register D8006 (user program execution error code).User ProgramExecution Error Code(D8006)Error Details1 Source/destination device is out of range2 MUL result is out of data type range.3 DIV result is out of data type range, or division by 0.4 BCDLS has S1 or S1+1 exceeding 9999.5 HTOB(W) has S1 exceeding 9999.6 BTOH has any digit of S1 exceeding 9.7 HTOA/ATOH/BTOA/ATOB has quantity of digits to convert out of range.8 ATOH/ATOB has non-ASCII data for S1 through S1+4.9WKTIM has S1, S2, and S3 exceeding the valid range.S1: 0 through 127S2/S3: Hour data 0 through 23, minute data 0 through 59S2/S3 can be 10000.WKTBL instruction is not programmed or WKTIM instruction is executed before WKTBL instructionwhen 1 (additional days in the week table) or 2 (skip days in the week table) is set for MODE in theWKTIM instruction.10WKTBL has S1 through Sn out of range.Month: 01 through 12Day: 01 through 3111 DGRD data exceeds 65535 with BCD5 digits selected.12 CVXTY/CVYTX is executed without matching XYFS.XYFS and CVXTY/CVYTX have the same S1, but have different data types.13 CVXTY/CVYTX has S2 exceeding the value specified in XYFS.14 Label in LJMP, LCAL, or DJNZ is not found.15 TXD/RXD is executed while the RS232C port 1 or 2 is not set to user communication mode.16 PID instruction execution error (see page 14-4 (Advanced.Vol.)).17 Preset value is written to a timer/counter whose preset value is designated with a data register.18Attempt was made to execute an instruction that cannot be used in an interrupt program: SOTU, SOTD, TML, TIM, TMH, TMS, CNT, CDP, CUD, SFR, SFRN, WKTIM, WKTBL, DISP, DGRD, TXD, RXD,DI, EI, XYFS, CVXTY, CVYTX, PULS, PWM, RAMP, ZRN, PID, DTML, DTIM, DTMH, DTMS, TTIM, RUNA, andSTPA (see page 5-35).19 Attempt was made to execute an instruction that is not available for the PLC.20 PULS, PWM, RAMP, or ZRN has an invalid value in control registers.21 DECO has S1 exceeding 255.22 BCNT has S2 exceeding 256.23 ICMP>= has S1 < S3.24 — Reserved —25 BCDLS has S2 exceeding 7.26 DI or EI is executed when interrupt input or timer interrupt is not programmed in the Function Area Set-tings.27 Work area is broken when using DTML, DTIM, DTMH, DTMS, or TTIM.28 S1 for trigonometric function instruction is invalid.Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com