sosIntegerCreate (Function) |
Top Previous Next |
sosIntegerCreate will create a new integer object. If the object already exists, it will be replaced.
Input: key : STRING The key for the object to create. May only contain a-z,A-Z,0-9, "." and "_" (maximum of 250 characters).
desc : STRING The description for the object, to show in the IDE (maximum of 80 characters).
value : DINT default 0 The initial value for the object. The value is not validated, making it possible to use it to e.g. determine unmodified values.
min_val : DINT default -2147483648 The minimum allowed value for the object. If both min_val and max_val are 0, there will be no limit.
max_val : DINT default 2147483647 The maximum allowed value for the object. If both min_val and max_val are 0, there will be no limit.
Returns: INT
Declaration: FUNCTION sosIntegerCreate : INT;
Example: INCLUDE rtcu.inc |