S7-300 and CP340

darko79

Member
Join Date
Feb 2006
Location
Serbia
Posts
10
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.
 

Similar Topics

Hi! I need help to make program to set up Siemens TC35i GSM module by PLC and then send SMS message to cellphone. I have all hardware already but...
Replies
13
Views
15,026
Good Day All: We have a radiation dose calibrator (measures radioniclide activity) which connects to a CP340 RS232 module on a Siemens S-300...
Replies
1
Views
4,594
Hi guys, Can someone help me! I've a problem! I want to comunicate via Rs232 (Protocol 3964(R)) with a S5-95U with a CP521 SI card and a...
Replies
2
Views
3,376
Hi I've got a CP340 (RS232) module and the SF red LED is permanently on. Any reasons why this happens? Interrogating the module tells me all is...
Replies
6
Views
2,039
I work on siemens PLC(S7-300),and I want to connect two of them with CP340(RS232C).I use the transmission and receive function block which are...
Replies
1
Views
4,606
endigo
E
Back
Top Bottom