Initializes an int32
array on the SD card.
An SD card is required to use this function.
In the function menu | On the diagram |
---|---|
![]() |
![]() |
Name | Value Type | Description |
---|---|---|
id |
int32 |
File identifier.The file identifier is used when generating the filename on the SD card. For more information, refer to the SD card article |
set |
bool |
Write trigger. The function starts on a rising edge and keeps trying until it completes successfully, encounters an error, or receives a False value at the set input. |
index |
int32 |
Index of the element from which initialization will begin using the value. |
size |
int32 |
Number of elements to initialize with the value. |
value |
int32 float |
The value with which size elements will be initialized, starting from the index. |
Name | Value Type | Description |
---|---|---|
ended |
bool |
Indicates whether the function has completed: 1 – completed 0 – not completed |
status |
int32 |
Function status: 0 – idle 1 – opening 2 – closing 5 – closing (after error) 4 – seeking 6 – extending file 7 – writing -1 – operation not supported -2 – operation not available -3 – file not accessible -4 – invalid element index -5 – error |
0 -> 1 -> 7 -> 2 -> 0 // final status on success
| | |
| | * -> 3 -> [-1 .. -5] // error during execution
| |
| * -> 3 -> [-1 .. -5] // error after opening
|
* -> [-1 .. -5] // error before opening
None