300
9 DATA LOGGING FUNCTION INSTRUCTION
9.1 Trigger Logging Set/Reset
Processing details
■
LOGTRG
• The LOGTRG instruction generates a trigger in the trigger logging of the data logging configuration number specified by 'n'.
• A value from 1 to 10 is set for 'n'.
• When the LOGTRG instruction is executed, the special relay (data logging trigger) of the data logging configuration number
specified by 'n' turns ON. After executing the trigger logging for the number of times set for "Number of records", the
instruction latches the data and stops the trigger logging.
• Validated when "When trigger instruction executed" is selected as the trigger condition.
• No processing is performed with the following condition.
■
LOGTRGR
• The LOGTRGR instruction resets the LOGTRG instruction of the specified data logging configuration number.
• When the LOGTRGR instruction is executed, the special relay (data logging trigger, trigger logging complete) of the data
logging configuration number specified by 'n' turns OFF.
• When the instruction is executed while transferring data in the buffer memory to the SD memory card, the instruction
process is held until data transfer is complete.
Operation error
• In the following case, an operation error occurs, the error flag (SM0) is turned ON, and the corresponding error code is
stored to SD0.
Precautions
• Use the LCPU other than L02SCPU and L02SCPU-P.
Program example
• The following program executes the LOGTRG instruction on the data logging configuration No. 1 when X0 turns ON, and
resets the trigger condition with the LOGTRGR instruction when X1 turns ON.
• Specifying a data logging configuration number for which other than "When trigger instruction executed" is specified as the trigger condition.
• Specifying a data logging configuration number which is not configured.
• Specifying a data logging configuration number which is currently used for continuous logging.
• Executing the LOGTRG instruction again without executing the LOGTRGR instruction after the LOGTRG instruction.
Error code
Description
4100
The value for n is outside the range of 1 to 10
[Structured ladder/FBD]
[ST]
LOGTRG(X0,1);
LOGTRGR(X1,1);
Содержание MELSEC System Q
Страница 1: ...MELSEC Q L Structured Programming Manual Special Instructions ...
Страница 2: ......
Страница 307: ...10 SFC CONTROL INSTRUCTION 10 2 SFC Transition Condition Comment Read 305 10 MEMO ...
Страница 309: ...I 307 MEMO ...
Страница 315: ......