Function
This instruction is used to put a user-specified record into the Execution Log or Debug Log.
Specify whether to record in the Execution Log or Debug Log in the LogType input variable.
You can record any log code and log message into an Operation Log by specifying the LogCode and LogMsg
input variables in the user program.
The log record format is shown below.
[Serial number]<tab>[Time]<tab>[Category]<tab>[Code]<tab>[Log name]<tab>[Result]<tab>[Details]<CR><LF>
[Serial number]: A serial number from 0 to 65535. The value returns to 0 after 65535.
[Time]: Time when the instruction is executed.
[Category]: Always “USER“
[Code]: Value of log code specified in the LogCode input variable
Nothing is output for a text string consisting of NULL characters (16#00) only.
[Log name]: Text string of log name specified in the LogName input variable
Nothing is output for a text string consisting of NULL characters (16#00) only.
[Result]: Always “0x0000“
[Details]: Text string of log message specified in the LogMsg input variable
Precautions for Correct Use
ï‚– Execution of this instruction is continued until processing is completed even if the value of Execute changes to
FALSE or the execution time exceeds the task period. The value of Done changes to TRUE when processing
is completed. Use this to confirm normal completion of processing.
ï‚– Refer to Using this Section of the NJ/NX-series Instructions Reference Manual (Cat. No. W502) for a timing
chart for Execute, Done, Busy, and Error.
ï‚– This instruction cannot be used on an event task. A compiling error will occur.
ï‚– When this instruction is executed during replacement of the SD Memory Card, the following operations are
performed.