Creating jobs¶
- Start the AdminClient and open the Jobs module.
- Select your CODESYS component in the Project tree.
- Click on the Create button in the ribbon or drag and drop the component into the Jobs area.
- Check whether the upload type CODESYS is displayed in the Job configuration area.
- Configure the general sections General, Notification, Upload and compare and Create a version automatically after job run version creation after job execution. The sections Notification and Create a version automatically after job run are only displayed if the settings required for this have been made.
-
Make the following settings in the CODESYS settings section:
- In the Project dropdown menu, select the project for which the upload is to take place. Only projects are displayed here that are contained in the selected component and are checked in on the server. Projects created with CODESYS V2 have the ending PRO, CODESYS V3 projects have the ending PROJECT.
-
In the Interface Type dropdown menu, select the interface via which you want to address the PLC. You can select Gateway V2, ARTI V2, Gateway V3 or ARTI V3 here. The corresponding CODESYS version is used accordingly. Alternatively, you can also enter the entry "interfacetype=..." in the Access parameters input field.
Info
The Job configuration of CODESYS V2 projects currently only runs via the access parameters.
-
Enter the connection data of the Gateway in the Gateway IP, Gateway port and Gateway password fields. If no port is specified here and in the Access parameters field, the default port 1217 is used.
- In the Device, PLC IP and PLC port fields, enter the connection data of the device. If no port is specified here or in the Access parameters field, the default port 11740 is used.
- Enter your access data for the device in the User account and User password fields.
- If the PLC saves the data in Motorola byte order (big endian), activate the corresponding checkbox.
- Only for CODESYS V2 projects: If you want to perform an upload of the boot project and compare it with the data from the runtime, activate the Upload boot project option. This allows you to check whether the runtime that is executed on the IPC was created from the boot project in the memory. Jobs can be used to save the following online data:
{Project name}
.SDB ProjectID and Timestamp{Project name}
.PRG Bootproject -
The access data that you can specify in the fields above can also be listed in the Access parameters field.
Info
If data has been entered both above, in the individual fields, and below in the Access parameters field, the entries in the Access parameters field are preferred for reasons of downward compatibility.
The entries in the Access parameters field correspond in form and content to the CODESYS specifications for INI files. For more information, please refer to the CODESYS documentation.
Special importance must be attached to the following parameters:
- value0 =
{IP-Address of the PLC}
- value1 =
{Port Nr.}
- value0 =
-
Save the job and test it with Execute selected jobs once.
Info
You can implement further settings for jobs of this upload type in the AdminClient in the Global settings dialog and by using the INI files.