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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

10.1 General<br />

Explicit Read/Write of Input/Output Cards<br />

The programmer can directly access the inputs/outputs on the serial bus (SB) without waiting for them to be refreshed<br />

by the PLC monitor.<br />

REMARK This <strong>function</strong> must be reserved for high priority cases, since it is costly in CPU time.<br />

10.2 Explicit Read of an Input Card read_i<br />

Syntax<br />

read_i(rcmch, n)<br />

rcmch: Word encoding the rack, card, module and channel.<br />

n: Number of bytes to be read.<br />

Operation<br />

The system checks the coherence of parameters rcmch and n.<br />

The system immediately reads card rc and updates image area %Ircmch to %Ircmch+n.<br />

Detail of argument «rcmch»<br />

Bit 15 Bit 0<br />

Examples<br />

read_i(0x6b10, 1) Causes refresh of %I6b10.B<br />

read_i(0x6b10, 2) Causes refresh of %I6b10.W<br />

read_i(0x6b10, 4) Causes refresh of %I6b10.L<br />

Channel No. (from 0x0 to 0xF)<br />

Module No. (from 0x0 to 0x3)<br />

Card No. (from 0x0 to 0xC)<br />

Rack No. (from 0x0 to 0x6)<br />

en-938846/3 10 - 3<br />

10

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

Saved successfully!

Ooh no, something went wrong!