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

Create successful ePaper yourself

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

<strong>Configuring</strong> <strong>Connections</strong><br />

12.7 Blocks for Different Connection Types<br />

Blocks for Use with S7 <strong>Connections</strong><br />

The system function blocks are integrated in the CPUs of the S7-400.<br />

For S7-300, with newer CPUs <strong>and</strong> CPs, you can operate S7 communication<br />

actively (that is, as client) by means of the interface of the CP. The blocks (FBs)<br />

have the same number <strong>and</strong> designation as the SFBs of the S7-400; however, they<br />

must be called up cyclically in the user program of the S7-300-CPU. You can find<br />

the blocks in the SIMATIC_NET_CP library.<br />

The CP must support the client function for S7 communication.<br />

The CPU 317-2 PN/DP with PROFINET interface can also be configured as a<br />

client for S7 communication. In this case, the same blocks are used as in the case<br />

for the S7-300 with CP mentioned above. These blocks are also in the St<strong>and</strong>ard<br />

Library (<strong>Communication</strong> Blocks/CPU_300). The client function is only available with<br />

the PROFINET interface.<br />

SFB/FB/FC Designation Brief Description<br />

SFB8/FB8 USEND Uncoordinated data exchange using a send <strong>and</strong> a receive SFB<br />

SFB9/FB9 URCV<br />

Max. length SFB 8/9: 440 bytes, split into 4x100 bytes.<br />

Max. length FB 8/9: 160 bytes<br />

SFB12/FB12 BSEND Exchange blocks of data of variable length between a send SFB <strong>and</strong><br />

SFB13/FB13 BRCV<br />

a receive SFB<br />

Max. length SFB 12/13: 64 KB<br />

Max. length FB 12/13: 32 KB<br />

SFB14/FB14 GET Read data from a remote device<br />

Max. length SFB 14: 400 bytes, split into 4x100 bytes<br />

Max. length FB 14: 160<br />

SFB15/FB15 PUT Write data to a remote device<br />

Max. length SFB 15: 400 bytes, split into 4x100 bytes<br />

Max. length FB 15: 160<br />

SFB19 START Execute a restart (warm restart) on a remote device<br />

SFB20 STOP Switch a remote device to STOP mode<br />

SFB21 RESUME Execute a hot restart in a remote device<br />

SFB22 STATUS Specific query of the status of a remote device<br />

SFB23 USTATUS Receive status messages from remote devices<br />

SFC62 CONTROL Query the status of the connection that belongs to an SFB instance<br />

FC62 C_CNTRL Query the status of a connection (for S7- 300 CPUs)<br />

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

12-18 A5E00706939-01

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

Saved successfully!

Ooh no, something went wrong!