TSL Automation Solutions Logo

Section 15.4.12 · Chapter 15: Using Macros

Data Logger Operation

■ SAVE2LB

Format SAVE2LB(P1, P2, P3) Data Type U
Function Saves the data of size P3 in the memory block P2 to the data logger P1.
P1 (I/C) The ID of the data logger. There are 16 data loggers at most and the IDs are 0 to 15.
P2 (I) The internal memory block that saves the converted sample data.
P3 (I/C) The size of the data to be logged.
Example 1 $U103 = 200 /* Set the size of the logged data to 200. */
SAVE2LB(3, $U100, $U103) /* Save 200 words from $U100 to data logger 3 */

■ CLR_LB

Format CLR_LB(P1 ) Data Type U
Function Clears the logging buffer of the data logger P1.
P1 (I/C) The ID of the data logger. There are 16 data loggers at most and the IDs are 0 to 15.
Example 1 CLR_LB(1) /* Clear the logged buffer of data logger 1 */

■ REF_H_OBJ

Format REF_H_OBJ(P1,P2 ) Data Type U
Function Redraws the historic objects' display that are associated with the data logger P1 with the reason P2.
P1 (I/C) The ID of the data logger. There are 16 data loggers at most and the IDs are 0 to 15.
P2 (I/C) The reason.
Value Description
0 After the data of the specified data logger is changing.
1 If the data for the historic objects' is from the specified data logger.
2 If the data for the historic objects' is from the specified file buffer.
Example 1 $U100 = 1 /* Set the data logger ID to 1*/
REF_H_OBJ($U100, 0) /* When the data of data logger 1 is changed, redraw all the historic objects' display that associated with data logger 1 */

Need PM Designer itself?

V4 for current PK, PT, ITV and PM panels, V2 for older models. Free, sent by email.

Source.Section 15.4.12 of the PM Designer Software User Manual, Edition 2.0, © Cermate Technologies Inc. (www.cermate.com, service@cermate.com). Reproduced online, with the manual's own figures, by TSL Automation Solutions, authorised Cermate distributor, for users of Cermate HMI panels. PM Designer and PanelMaster are trademarks of Cermate Technologies Inc.

Text and figures are the manufacturer's and may describe features your panel or software version does not have. For a plain-language introduction read the PM Designer guide; for help with a specific panel contact TSL Automation.