This DUT can be used with the following instruction(s): FP_SD_WRITE
Elements of the DUT (identifiers):
Writing format
0: –
1: UINT, 5 digits, CSV
2: INT, 6 digits, CSV
3: UDINT, 10 digits, CSV
4: DINT, 11 digits, CSV
5: REAL, 13 digits, CSV
6: –
7: WORD, 4 digits, CSV
8: DWORD, 8 digits, CSV
9: –
10: Character string, CSV
11: Binary data, BIN
Writing mode
0: New file mode. Deletes the file contents, and then writes the data. When no file exists, it creates a new file. Data is always written from the head of file.
1: Append to file mode. Appends additional data to the end of a file. When no file exists, it creates a new file. Data is always written form the end of file.
2: Pointer mode 1. Data are written from head of file starting at the pointer specified by udiBytePosition.
3: Pointer mode 2. Data are written from the end of file starting at the pointer specified by udiBytePosition.
Option (only valid for CSV data)
Bit 0–7: New lines
0: No new lines inserted, only at the end of the file.
1–255: New lines are inserted every nth delimiter, e.g. for bit 0–7=3, a new line is inserted every third delimiter.
Bit 8: Postfix written at the end of the data
0: New line
1: Comma
Bit 9: Zero suppression
0: No zero suppression
1: Zero suppression is performed
Bit 10–15: Reserved for the system (0)
Pointer position [bytes]
Only available for pointer mode 1 (wMode=2) or 2 (wMode=3).After writing, the pointer moves to the position where writing has been completed. The next writing operation will start from this point.
Number of written data
For wFormat=1–8: Number of 16-bit/32-bit comma-separated data
For wFormat=10: Number of 8-bit characters
For wFormat=11: Number of 16-bit data