darko79 Posted May 9, 2006 Report Posted May 9, 2006 Hi, I am new with Simens PLC. I use S7-312C CPU and CP340 RS422/485 communication processor.I need to create a FB for examle FB 5, for send message frame via CP340 using ASCII protocol. Data for send is in for example DB5 as ARRAY of CHAR. As input parameter in FB 5 it is need 2 char for adress and 4 char for data. That will be store in DB5. Than one char @ will be in front as start char, so message will be @aaddddcc*<CR>,@ for start, aa 2 char adress, dddd 4 char data, cc CRC from all above, and * and <CR> 2 end char. I just need to enter as input parameter of FB 5 aa and dddd and message will be compose as I show above as sequence of 11 char and send.Thanks a lot. Quote
jacekd Posted May 9, 2006 Report Posted May 9, 2006 In Step7 editor you can find IEC Function Blocks (in Standard Library). There're FBs for handling strings. Also you have to install add-on package CP PtP. Library with FBs for CP comes with this package. Quote
khekd Posted May 10, 2006 Report Posted May 10, 2006 Here is a download that will give you all the samples and manuals you need to use the cp340. good luck! http://support.automation.siemens.com/WW/l...nodeid=21767738 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.