Please enable JavaScript to view this site.

Function to upload to a device connected via CANopen DS301 the parameters contained in a file in the flash of the Robox control.

Syntax

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

nameCmdFile

Full name of the command file

nWs

Workstation number 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 "-F filename", where filename is the full name of the parameter file. (optional, default "/FA/PAX_%d.DCF")

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 object or sub index not existing errors present. Occurs when disabling generation of return code 11 via sys_cfg. (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