# Slot 3 Menu 1 − User Application

Mode: RFC‑A

Parameter | 3.01.003 Program Status
--- | ---
Short description | This parameter displays the status of the user program
Minimum | 0 | Maximum | 3
Default |  | Units |
Type | 8 Bit Volatile | Update Rate | Background write
Display Format | Standard | Decimal Places | 0
Coding | RO, TE, ND, NC, PT, BU

This parameter indicates the status of a user program, if it is present. If no user program is present in the module then it will also indicate this.

If the status indicates a runtime error (3, Error) the user's Error task may be running otherwise the user program will have stopped.

Value | Text | Description
0 | None | No user program is present
1 | Stopped | The user program is not running
2 | Run | The user program is running
3 | Error | Runtime error.

If the module contains a user program this parameter displays its status otherwise it displays 0 (no program present).

Parameter | 3.01.004 Available CPU Resources
--- | ---
Short description |
Minimum | 0 | Maximum | 100
Default |  | Units | %
Type | 8 Bit Volatile | Update Rate |
Display Format | Standard | Decimal Places | 0
Coding | RO, ND, NC, PT, BU

The approximate average CPU resource free, displayed as a percentage.

Parameter | 3.01.013 Auto-run enable
--- | ---
Short description | Specifies whether the user program will run automatically
Minimum | 0 | Maximum | 1
Default | 1 | Units |
Type | 1 Bit User Save | Update Rate | Read during initialisation
Display Format | Standard | Decimal Places | 0
Coding | RW, BU

When set to 1 ('On') the user program will start automatically on a module reset or at power up.

Parameter | 3.01.014 Global runtime trip enable
--- | ---
Short description | Speficies whether the drive will trip on a module runtime error
Minimum | 0 | Maximum | 1
Default | 0 | Units |
Type | 1 Bit User Save | Update Rate | Read during initialisation
Display Format | Standard | Decimal Places | 0
Coding | RW

When set to 1 (On) the module may cause the drive to trip when a runtime error occurs. See below for more information.

Parameter | 3.01.015 Disable reset on trip clear
--- | ---
Short description | Specifies whether the module will be reset when drive trip is cleared
Minimum | 0 | Maximum | 1
Default | 0 | Units |
Type | 1 Bit User Save | Update Rate | Background read
Display Format | Standard | Decimal Places | 0
Coding | RW

When this parameter is 0 the module will reset when a drive trip is cleared. When the parameter is On the module will continue running (i.e. not reset) when a drive trip is cleared.

Parameter | 3.01.017 Enable out of range error
--- | ---
Short description | Defines action to take on out of range write
Minimum | 0 | Maximum | 1
Default | 0 | Units |
Type | 1 Bit User Save | Update Rate | Background read
Display Format | Standard | Decimal Places | 0
Coding | RW

When this parameter is 0, if an out of range value is written to a parameter it will be automatically limited to that parameter's maximum or minimum value.

When this parameter is 1, if an out of range value is written to a parameter a runtime error (code 44) will occur.

Parameter | 3.01.019 Save user save params
--- | ---
Short description | Set to request saving of user save parameters
Minimum | 0 | Maximum | 1
Default | 0 | Units |
Type | 1 Bit Volatile | Update Rate | Read every 200ms
Display Format | Standard | Decimal Places | 0
Coding | RW, NC

Set this parameter to perform a background save of "User Saved" parameters in the module's database. This refers to any module User Saved parameters (Slot.mm.ppp) including those which may have been defined in the custom menus for the option module.

The save operation will be performed in the background, and will not influence the timing of cyclic user tasks.

Once the save operation has been completed this parameter will be cleared.

Parameter | 3.01.020 Power down retain data save
--- | ---
Short description | Set to enable retain data save on under voltage
Minimum | 0 | Maximum | 2
Default | 0 | Units |
Type | 8 Bit User Save | Update Rate | Read every 200ms
Display Format | Standard | Decimal Places | 0
Coding | RW, TE, BU

Defines the behaviour of automatic Power Down Saved parameters and RETAIN variables.

Value | Text | Description
0 | Save at UV | Power Down Saved parameters and RETAIN data saved automatically on entry to under-voltage (UU / UV) state, and module then reset.
1 | No Save | Power Down Saved parameters and RETAIN variables not saved automatically.
2 | Force Save | Request a background save of Power Down Saved parameters and RETAIN variables.

If this parameter contains 0 (default) when the drive enters the under-voltage state all "Power Down Saved" parameters in the option module will be saved. This is a resource-intensive action and is intended for the when there drive has no backup (24V) power supply so entering the under-voltage state happens shortly before losing power altogether. All other services (cyclic data, user application etc) will be stopped to ensure that the save completes in time. Once the save has completed the option module will be restarted.

If this parameter contains 1 then entry to under-voltage state will NOT cause a save, and any user application will continue execution as normal. However, because a save is not performed, Power Down Saved parameters and RETAIN variables are NOT saved. Power Down Saved parameters and RETAIN variables can be saved manually or by the user application in the background task by setting this parameter to 2. (See next paragraph)

If this parameter contains 2 then a low-priority save of Power Down Saved parameters and RETAIN variables will be performed and then the parameter will have its value set to 1. This is intended for use in applications where the user program must not stop and reset on entry to under-voltage state. Although it would be possible to have an application which used drive Power Down Saved parameters (even specified in a drive custom application menu, e.g. menu 25,26,27) instead of option module Power Down Saved parameters, this option allows great application-specific flexibility.

Parameter | 3.01.030 Event 0 task schedule reason
--- | ---
Short description | Event 0 task schedule reason
Minimum | 0 | Maximum | 65535
Default |  | Units |
Type | 16 Bit Volatile | Update Rate | On event
Display Format | Standard | Decimal Places | 0
Coding | RO, ND, NC, PT, BU

The parameter gives the reason why the event 0 task was scheduled.
The value only has meaning when event 0 task is running.
A value of 0 means "No Error".

Parameter | 3.01.031 Event 1 task schedule reason
--- | ---
Short description | Event 1 task schedule reason
Minimum | 0 | Maximum | 65535
Default |  | Units |
Type | 16 Bit Volatile | Update Rate | On event
Display Format | Standard | Decimal Places | 0
Coding | RO, ND, NC, PT, BU

The parameter gives the reason why the event 1 task was scheduled.
The value only has meaning when event 1 task is running.
A value of 0 means "No Error".

Parameter | 3.01.032 Event 2 task schedule reason
--- | ---
Short description | Event 2 task schedule reason
Minimum | 0 | Maximum | 65535
Default |  | Units |
Type | 16 Bit Volatile | Update Rate | On event
Display Format | Standard | Decimal Places | 0
Coding | RO, ND, NC, PT, BU

The parameter gives the reason why the event 2 task was scheduled.
The value only has meaning when event 2 task is running.
A value of 0 means "No Error".

Parameter | 3.01.033 Event 3 task schedule reason
--- | ---
Short description | Event 3 task schedule reason
Minimum | 0 | Maximum | 65535
Default | 0 | Units |
Type | 16 Bit Volatile | Update Rate | On event
Display Format | Standard | Decimal Places | 0
Coding | RO, NC, PT, BU

The parameter gives the reason why the event 3 task was scheduled.
The value only has meaning when event 3 task is running.
A value of 0 means "No Error".

Parameter | 3.01.049 Run Time Error Code
--- | ---
Short description |
Minimum | 0 | Maximum | 255
Default |  | Units |
Type | 8 Bit Volatile | Update Rate |
Display Format | Standard | Decimal Places | 0
Coding | RO, TE, ND, NC, PT, BU

Value | Text | Description
0 | No error | No error
1 | Param not exist | Parameter doesn't exist error
2 | Param read-only | Parameter read-only error
3 | Param write-only | Parameter write-only error
4 | Param over range | Parameter overrange error
5 | Param dec places | Parameter decimal place error
6 | Param type | Parameter type error
7 | Param no 64-bit | No 64 bit parameter error
8 | Array bounds | Array bounds error
9 | Pointer alignmt | Pointer alignment error
10 | Pointer address | Pointer address error
11 | DINT div err | DINT divisor error
12 | LINT div err | LINT divisor error
13 | LREAL div err | LREAL divisor error
14 | REAL div err | REAL divisor error
15 | DINT range err | DINT range error
16 | UDINT range err | UDINT range error
17 | User Requested | User requested error
18 | Watchdog err | User task watchdog error
19 | FPU instruct err | Invalid Float Point operation
20 | PosTask config | Bad PosTask configuration
21 | Reserved | Reserved
22 | Reserved | Reserved
23 | Reserved | Reserved
24 | Reserved | Reserved
25 | APC error | APC error
26 | Reserved | Reserved
27 | Reserved | Reserved
28 | Reserved | Reserved
29 | Reserved | Reserved
30 | Reserved | Reserved
31 | Reserved | Reserved
32 | Reserved | Reserved
33 | Reserved | Reserved
34 | Reserved | Reserved
35 | Reserved | Reserved
36 | Reserved | Reserved
37 | Reserved | Reserved
38 | Reserved | Reserved
39 | Reserved | Reserved
40 | Reserved | Reserved
41 | Reserved | Reserved
42 | Reserved | Reserved
43 | Reserved | Reserved
44 | Reserved | Reserved
45 | Reserved | Reserved
46 | Reserved | Reserved
47 | Reserved | Reserved
48 | Reserved | Reserved
49 | Reserved | Reserved
50 | INT maths err | INT maths error
51 | FLOAT maths err | FLOAT maths error
52 | Reserved | Reserved
53 | Reserved | Reserved
54 | Reserved | Reserved
55 | Reserved | Reserved
56 | Reserved | Reserved
57 | Reserved | Reserved
58 | Reserved | Reserved
59 | Reserved | Reserved
60 | Reserved | Reserved
61 | Reserved | Reserved
62 | Reserved | Reserved
63 | Reserved | Reserved
64 | Reserved | Reserved
65 | Reserved | Reserved
66 | Reserved | Reserved
67 | Reserved | Reserved
68 | Reserved | Reserved
69 | Reserved | Reserved
70 | Reserved | Reserved
71 | Reserved | Reserved
72 | Reserved | Reserved
73 | Reserved | Reserved
74 | Reserved | Reserved
75 | Reserved | Reserved
76 | Reserved | Reserved
77 | Reserved | Reserved
78 | Reserved | Reserved
79 | Reserved | Reserved
80 | Reserved | Reserved
81 | Reserved | Reserved
82 | Reserved | Reserved
83 | Reserved | Reserved
84 | Reserved | Reserved
85 | Reserved | Reserved
86 | Reserved | Reserved
87 | Reserved | Reserved
88 | Reserved | Reserved
89 | Reserved | Reserved
90 | Reserved | Reserved
91 | Reserved | Reserved
92 | Reserved | Reserved
93 | Reserved | Reserved
94 | Reserved | Reserved
95 | Reserved | Reserved
96 | Reserved | Reserved
97 | Reserved | Reserved
98 | Reserved | Reserved
99 | Reserved | Reserved
100 | Link Loss | Network link has been lost
101 | E/IP Timeout | An Ethernet/IP RPI timeout trip has occurred
102 | E/IP Read Param | Invalid read consistency parameter, is parameter read only?
103 | E/IP Write Param | Invalid write consistency parameter, is parameter read only?
104 | E/IP Fault | An unexpected Ethernet/IP error has occurred
105 | Modbus Timeout | The Modbus connection has timed out
106 | Cyclic Timeout | Cyclic Rx link timeout
107 | Cyclic RX Late | Cyclic Rx data was received late
108 | INIT Switch | Ethernet switch initialisation error
109 | INIT PTP | IEEE1588 (Precision Time Protocol) initialisation error
110 | INIT Cyclic | Cyclic data initialisation error
111 | INIT Modbus | Modbus TCP initialisation error
112 | INIT SMTP | Email (SMTP) initialisation error
113 | INIT Ethernet/IP | Ethernet/IP initialisation error
114 | INIT TCP/IP | TCP/IP initialisation error
115 | Ethernet Failure | Ethernet controller initialisation error
116 | E/IP PLC IDLE | Ethernet/IP PLC Idle
117 | Sync Task ORun | Synchronous task overrun
118 | INIT Param Chann | Parameter channel Initialisation error
119 | Link Overload | Link overload error
120 | MCast error | Multicast over limit error
121 | Reserved | Reserved
122 | Reserved | Reserved
123 | Reserved | Reserved
124 | Reserved | Reserved
125 | Reserved | Reserved
126 | Reserved | Reserved
127 | Reserved | Reserved
128 | Reserved | Reserved
129 | Reserved | Reserved
130 | Reserved | Reserved
131 | Reserved | Reserved
132 | Reserved | Reserved
133 | Reserved | Reserved
134 | Reserved | Reserved
135 | Reserved | Reserved
136 | Reserved | Reserved
137 | Reserved | Reserved
138 | Reserved | Reserved
139 | Reserved | Reserved
140 | Reserved | Reserved
141 | Reserved | Reserved
142 | Reserved | Reserved
143 | Reserved | Reserved
144 | Reserved | Reserved
145 | Reserved | Reserved
146 | Reserved | Reserved
147 | Reserved | Reserved
148 | Reserved | Reserved
149 | Reserved | Reserved
150 | Reserved | Reserved
151 | Reserved | Reserved
152 | Reserved | Reserved
153 | Reserved | Reserved
154 | Reserved | Reserved
155 | Reserved | Reserved
156 | Reserved | Reserved
157 | Reserved | Reserved
158 | Reserved | Reserved
159 | Reserved | Reserved
160 | Reserved | Reserved
161 | Reserved | Reserved
162 | Reserved | Reserved
163 | Reserved | Reserved
164 | Reserved | Reserved
165 | Reserved | Reserved
166 | Reserved | Reserved
167 | Reserved | Reserved
168 | Reserved | Reserved
169 | Reserved | Reserved
170 | Reserved | Reserved
171 | Reserved | Reserved
172 | Reserved | Reserved
173 | Reserved | Reserved
174 | Reserved | Reserved
175 | Reserved | Reserved
176 | Reserved | Reserved
177 | Reserved | Reserved
178 | Reserved | Reserved
179 | Reserved | Reserved
180 | Reserved | Reserved
181 | Reserved | Reserved
182 | Reserved | Reserved
183 | Reserved | Reserved
184 | Reserved | Reserved
185 | Reserved | Reserved
186 | Reserved | Reserved
187 | Reserved | Reserved
188 | Reserved | Reserved
189 | Reserved | Reserved
190 | Reserved | Reserved
191 | Reserved | Reserved
192 | Reserved | Reserved
193 | Reserved | Reserved
194 | Reserved | Reserved
195 | Reserved | Reserved
196 | Reserved | Reserved
197 | Reserved | Reserved
198 | Reserved | Reserved
199 | Reserved | Reserved
200 | SW Fault | Software Fault
201 | BG Overrun | Background task overrun
202 | FW Invalid | Invalid firmware for hardware version
203 | Drv unknown | Unknown drive type
204 | Drv unsupported | Unsupported drive type
205 | Mode unknown | Unknown drive mode
206 | Mode unsupported | Unsupported drive mode
207 | FLASH Corrupt | Corrupted Non-volatile FLASH
208 | Dbase Init | Database initialisation error
209 | FS Init | File system initialisation error
210 | Memory Alloc | Memory allocation error
211 | Filesystem | File system error
212 | Configuration | Configuration file error
213 | OHt | Overheated
214 | TO drv | The drive has not responded within the watchdog period
215 | eCMP | eCMP communication failure
216 | TO eCMP Slot1 | eCMP communication to slot 1 timeout
217 | TO eCMP Slot2 | eCMP communication to slot 2 timeout
218 | TO eCMP Slot3 | eCMP communication to slot 3 timeout
219 | TO eCMP Slot4 | eCMP communication to slot 4 timeout
220 | Output Overload | Digital output current demand too high
221 | Factory Settings | Missing factory settings
222 | Functional Test | Functional test failure
223 | Config Restore | Configuration file restore error
224 | Self Test Error | Power on self test error
225 | Runtime Config | Runtime configuration error
226 | Processor except | Processor exception
227 | Task Starvation | System task starvation
228 | Runtime except | Runtime exception
229 | COM Overrun | COM task overrun
230 | Reserved | Reserved
231 | Reserved | Reserved
232 | Reserved | Reserved
233 | Reserved | Reserved
234 | Reserved | Reserved
235 | Reserved | Reserved
236 | Reserved | Reserved
237 | Reserved | Reserved
238 | Reserved | Reserved
239 | Reserved | Reserved
240 | Reserved | Reserved
241 | Reserved | Reserved
242 | Reserved | Reserved
243 | Reserved | Reserved
244 | Reserved | Reserved
245 | Reserved | Reserved
246 | Reserved | Reserved
247 | Reserved | Reserved
248 | Reserved | Reserved
249 | Reserved | Reserved
250 | Reserved | Reserved
251 | Reserved | Reserved
252 | Reserved | Reserved
253 | Reserved | Reserved
254 | Reserved | Reserved
255 | Reserved | Reserved

This parameter provides the reason for a module or user application exception.

Parameter | 3.01.050 Run Time Error Task Id
--- | ---
Short description |
Minimum | 0 | Maximum | 14
Default |  | Units |
Type | 8 Bit Volatile | Update Rate |
Display Format | Standard | Decimal Places | 0
Coding | RO, TE, ND, NC, PT, BU

Value | Text
0 | System Watchdog
1 | User FWheel task
2 | User Clock0 task
3 | User Clock1 task
4 | User Clock2 task
5 | User Clock3 task
6 | User Pos task
7 | User Init task
8 | User event1 task
9 | User event2 task
10 | User event3 task
11 | User event4 task
12 | User error task
13 | Unknown task
14 | No error

Parameter | 3.01.051 Run Time Error Area
--- | ---
Short description | Returns the area of the code in the user application that triggered the run time error
Minimum | 0 | Maximum | 65535
Default |  | Units |
Type | 16 Bit Volatile | Update Rate |
Display Format | Standard | Decimal Places | 0
Coding | RO, ND, NC, PT, BU

This parameter can be used in conjunction with Run Time Error Offset (3.01.052) to highlight in Machine Control Studio (MCS) the line/ code on which a run-time error occurred.

From V01.10.07, MCS includes a 'Locate MCi Error' option under its debug menu. Choosing this option and entering the the Run Time Area and Offset from 3.01.051 and 3.01.052 makes MCS display the code running at the time of the error.

NOTE:
For the Area/ Offset to be used successfully, a project archive containing the exact project (with no later changes) and referenced libraries used to originally build MCi program must be loaded in MCS before choosing the 'Locate MCi Error' option. Additionally, before building an MCi project for release and creating the project archive using the File/ Project Archive menu option in MCS, do a clean build using the Build/ Clean or Build/ Clean All menu options to ensure the Area/ Offset values shown in 3.01.051/ 3.01.052 in the field can successfully locate the code in error when values are returned from the field at a later date.

Parameter | 3.01.052 Run Time Error Offset
--- | ---
Short description | Returns the offset of the code in the user application that triggered the run time error
Minimum | 0 | Maximum | 4294967295
Default |  | Units |
Type | 32 Bit Volatile | Update Rate |
Display Format | Standard | Decimal Places | 0
Coding | RO, ND, NC, PT, BU

This parameter can be used in conjunction with Run Time Error Area (3.01.051) to highlight in Machine Control Studio (MCS) the line/ code on which a run-time error occurred. See the description for 3.01.051 for more information.

Parameter | 3.01.053 User Application ID
--- | ---
Short description | Displays the Application ID set by the user program
Minimum | 0 | Maximum | 4294967295
Default | 0 | Units |
Type | 32 Bit Volatile | Update Rate |
Display Format | Standard | Decimal Places | 0
Coding | RO, NC, PT, BU

This parameter displays an ID set from the application using the MC_SetUserID function. The purpose of the ID is dependent on the user's application. Examples might include an application software version number.