15.07.2013 Views

Automatic control function programming manual ladder language

Automatic control function programming manual ladder language

Automatic control function programming manual ladder language

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

16.3 Identify an Executable Module exechdl<br />

Syntax<br />

16 - 4 en-938846/7<br />

exechdl(&string)<br />

&string: Address of a string ending with a ZERO byte.<br />

Reads the logic identifier of a <strong>function</strong> of an executable module from a C-<strong>language</strong> compiler.<br />

Principle<br />

The string addressed by &string contains the name of a C-<strong>language</strong> <strong>function</strong>.<br />

To be recognised by the monitor, the <strong>function</strong> name must be sent from a C-<strong>language</strong> module by <strong>function</strong> exporte()<br />

(see Sec. 16.4.9).<br />

exechdl() must be called in the %INI task.<br />

Return code<br />

If OK<br />

whexec > 0: Logic identifier of the executable module (value given on 16 bits). This identifier is used to call the<br />

executable module by <strong>function</strong> exec().<br />

Error<br />

whexec == 0: The system does not know the name defined by &string.<br />

Programming error causing a CPU fault<br />

Access to a prohibited address:<br />

- &string parameter error,<br />

- end of string outside authorised area.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!