Please enable JavaScript to view this site.

Function to update in the Robox control flash a parameter file, reading values directly from the drives via CANopen DS301. Starting from the objects described in the command file, a parameter file containing the definition and value of these objects is generated.

Syntax

i32 co_par_upload (string nameCmdFile, i32 nWs, i32 flagBrk [, string nameParFile="/FA/PAX_%d.DCF"] [, string comment=""])

nameCmdFile

Full name of the command file

nWs

Number of workstations on which you want to operate

flagBrk

Location to be used to abort the current execution. Any value different than 0 will cause the execution to abort.

WARNING: The handling of aborting this function using this variable must be done in another task.

nameParFile

String containing the name of the file to be included in the DCF file. (optional, default "/FA/PAX_%d.DCF").

The syntax for these parameters is "-F filename," where filename is the name of the parameters file complete with path

comment

String containing a comment to be inserted in the DCF file. (optional, default "")

The syntax for these parameters is "-C comments" where comments are comments of up to 240 characters without LF (Line Feed)

Result

Meaning of the returned values:

Value

Description

< 0

NACK code not converted. (report to Robox)

0

Operation ok

1

Missing argument. (use mreport -a and/or the predeclared variable sts_co_par_download used for returns)

2

Illegal argument. (use mreport -a and/or sts_co_par_download)

3

One of the specified files does not exist. (use mreport -a)

4

One of the specified files is illegal. (use mreport -a)

5

Aborted operation. (use mreport -a)

6

Memory full (RAM or CF). (use mreport -a)

7

Unable to rename the file. File already exists. (use mreport -a)

8

Error in writing the file. (use mreport -a)

9

Error reading the file. (use mreport -a)

10

Unable to add more data to file in ram while handling. (use mreport -a)

11

Error on read/write object command on fieldbus. (use mreport -a and/or sts_co_par_download)

12

Error opening file. (use mreport -a)

13

Instruction/command handler busy

14

Operation ok but non-existent object or sub index errors present. Occurs when disabling generation of return code 11 via sys_cfg. In case of upload, the line with the value is inserted as a comment with the error report. (use mreport -a)

Validity

Task

Note


 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC