![](/images/new-backgrounds/1256769/256769349x1.webp)
20 Custom Macro
protected will be written to parameters WRPROT1 and WRPROT2, respectively. If, e.g., the variables #530 through #540 are to be protected, the respective parameters have to be set as WRPROT1=530 and WRPROT2=540.
20.12.3 System Variables
The system variables are fixed ones providing information about the states of the system.
Interface input signals - #1000–#1015, #1032
16 interface input signals can be determined, one by one, by reading the system variables #1000 through #1015.
Name of system variables | Interface input with reference to the |
| PLC program |
#1000 | I[CONST+000] |
#1001 | I[CONST+001] |
#1002 | I[CONST+002] |
#1003 | I[CONST+003] |
#1004 | I[CONST+004] |
#1005 | I[CONST+005] |
#1006 | I[CONST+006] |
#1007 | I[CONST+007] |
#1008 | I[CONST+010] |
#1009 | I[CONST+011] |
#1010 | I[CONST+012] |
#1011 | I[CONST+013] |
#1012 | I[CONST+014] |
#1013 | I[CONST+015] |
#1014 | I[CONST+016] |
#1015 | I[CONST+017] |
where CONST=I_LINE*10 and I_LINE is a parameter. Thus, any arbitrary interface input can be read.
The values of the above variables are
0= if the contact at the input is open, 1= if the contact at the input is closed.
The above 16 inputs can be read simultaneously at variable #1032. Depending on the system variables assigned to the
Accordingly, with 24V applied to inputs #1002 and #1010, the rest of inputs being open, the value of variable #1032 will be
The variables of the interface inputs are "read only" ones, and may not be used on the left side of a definition instruction.
175