Chapter 11 Datalog Function
(3) Calculates data unit when saving buffer
The motion controller for data saving supported by internal datalog is BYTE. Therefore, operation of data that
accumulates inside the buffer during data collection is performed as follows.
(Unit: BYTE)
(4) Data Conversion
Data are collected in the following order, and converted into the set types.
(a) 2 WORD Data (DWORD, DINT, UDINT, REAL)
Ex) %MW0: 0x1234, %MW1: Converts to 0x0000 0000 1234
(b) 4 WORD Data (LWORD, LINT, ULINT, LREAL)
Ex) %MW0: 0x1234, %MW1:0x5678, %MW2:0x000, %MW3: Converts to 0x000 0000 0000 5678 1234
(c) Character String Conversion
- Unlike other types, character strings are saved up to 32 characters, and converted into 2 characters per word.
If a 0x00 value exists during conversion, conversion is performed up to that character string, and further
conversion is not performed.
Ex) 16 words without 0x00 32 characters
16 words with 0x00 character string converted up to 0x00
- When converting character strings, characters which do not correspond with ASCII (see 11.3.1) are all converted
to Null.