24.10.2013 Views

Configuring Hardware and Communication Connections STEP 7.pdf

Configuring Hardware and Communication Connections STEP 7.pdf

Configuring Hardware and Communication Connections STEP 7.pdf

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.

Calling SFC15 in the Publisher (CPU 318-2 DP)<br />

<strong>Configuring</strong> the Distributed I/O (DP)<br />

CALL "DPWR_DAT"<br />

LADDR :=W#16#64 //start address Q 100<br />

RECORD :=P#M 10.0 BYTE 16 //source area for user data<br />

RET_VAL:=MW100 //return value<br />

Calling SFC14 in the Receiver (CPU 316-2 DP)<br />

CALL "DPRD_DAT"<br />

LADDR :=W#16#78 //start address I 120<br />

RET_VAL:=MW100 //return value<br />

RECORD :=P#M 10.0 BYTE 2 //target area for user data<br />

<strong>Configuring</strong> <strong>Hardware</strong> <strong>and</strong> <strong>Communication</strong> <strong>Connections</strong> with <strong>STEP</strong> 7<br />

A5E00706939-01 3-49

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

Saved successfully!

Ooh no, something went wrong!