Jump to content

Recommended Posts

Posted
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.
Posted
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.
Posted
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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...