EasyManua.ls Logo

Siemens SIMATIC CP 340 - Page 5

Siemens SIMATIC CP 340
6 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
First commissioning steps
CP 340 first commissioning steps
Getting Started, 04/2005, A5E00442606-01 1-3
Integrating in the user program
1. When installing the configuration package you installed the example project
"zXX21_01_PtP_Com_CP34x" in the catalog Siemens\STEP7\Examples".
2. In the SIMATIC Manager open the example project with File → Open ... → Projects and
double click on the subproject "CP340 PtP Connection".
3. Open the S7 program of the CPU of this subproject. Double click on the "blocks"
container.
4. Apart from the system data, copy all the blocks into your project under
SIMATIC 300-Station → PU3xx → S7 Program → Blocks.
FC10: is cyclically called up from the OB1
FC11: FC with SEND
FC12: FC with RECEIVE
DB2, DB 3: Instance DBs for the standard FBs
DB10: DB, from which is being sent
DB20: DB, in which the received data is stored
OB1: Cyclic OB
OB100: Restart (warm start) OB
FB2, FB3: Standard FBs for RECEIVE, SEND
5. By double clicking, open the OB100 in your project and verify in the first line of network 1
the module address "288".
6. Save the blocks with File → Save.
7. End the editing process of the FCs with File → Exit.
8. With the SIMATIC Manager select SIMATIC 300 Station → CPU3xx → S7 Program
→ Blocks.
9. With PLC → Download, load all the S7 blocks contained here into your CPU (CPU in
STOP state).
10. Switch the CPU to RUN.
Send
PEW 0: On your "Input SM323" switch the bits 0.1 (Enable FC11 and FC12), 0.6 (REQ for
P_SEND) and 1.1 (select the send request of 10 byte length) to "ON".
The CP340 then sends a message frame of 10 bytes in length via the serial interface (LED
"TxD" flashes). To repeat the send, you must initially switch the Bit 0.6 (REQ for P_SEND) to
"OFF" and then back to "ON" again.
该文档极速PDF编辑器生成
如果想去掉该提示,请访问并下载
http://www.jisupdfeditor.com/
长沙工控帮教育科技有限公司
www.gkbpx.com

Other manuals for Siemens SIMATIC CP 340

Related product manuals