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.

Programming in C Language<br />

Semaphore SEMA<br />

Syntax<br />

Programming error causing a CPU fault<br />

Access to a prohibited address:<br />

- *flag parameter error.<br />

SINT8 SEMA(SINT8*semaphore)<br />

Read n E42000 Variables R_E42000<br />

Syntax<br />

Programming error causing a CPU fault<br />

Access to a prohibited address:<br />

- *dest parameter error,<br />

- *dest+n outside authorised area<br />

SINT32 R_E42000(SINT8 *dest, UINT32 number, UINT32 n)<br />

Write n E42000 Variables W_E42000<br />

Syntax<br />

Programming error causing a CPU fault<br />

SINT32 W_E42000(SINT8 *source, UINT32 number, UINT32 n)<br />

Access to a prohibited address:<br />

- *source parameter error<br />

- *source+n outside authorised area<br />

Read Current Date TMGET<br />

Syntax<br />

Programming error causing a CPU fault<br />

Access to a prohibited address:<br />

- *dest parameter error.<br />

TMGET(*date)<br />

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

16

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

Saved successfully!

Ooh no, something went wrong!