CP340 RS232 connection Siemens PLC to Sartorius Balances

userxyz

Member
Join Date
May 2002
Location
any
Posts
2,768
Hello,

I have 3 balances connected on RS232 at very low speed (2400bps).
All 3 make good communication.

But, after a day or so, 1 or more connections can be messed up.
The RXD led's are still blinking at that moment, but no valid telegram of 16 bytes from the balances (telegram messed up, CR and LF at wrong place).

Restarting the CPU solves the problem temporarily...

What could be the cause ?

Thanks,
Combo
 
Hi! I don't know your hardware but do still have som queries.

Is the CR/LF the telegram end sequence?

Could it (the mess) be caused by not suited characther delay time?

Do you poll for data, or are they sent continiously from the balances?

Do you call a receive block continiously - to empty the receive buffer? And with which frequency?

Kalle
 
Hellow

Is the CR/LF the telegram end sequence?
Yes

Could it (the mess) be caused by not suited characther delay time?
What do you mean by this ? The telegram is ended with CR/LF (Hex: D and A). My setting is: On End characters (2 chars) CR + LF. In the transfer tab I setted CTS.

Do you poll for data, or are they sent continiously from the balances?
No polling, the balances send their telegram every second (very slow). When I set the balance to a more frequent send, then it get messed up within 10 seconds, so now I've chosed to send it very slowly. This can be done by set: Very unstable print, in that case it refreshes the display and the serial port much slower. So no polling.

Do you call a receive block continiously - to empty the receive buffer? And with which frequency?
Yes. It is called in OB1, with a 319CPU at 1ms cycle time...

Thanks for your comment,
Regards,
Combo
 

Similar Topics

Hi I have a CP340 connected to a balance. Balance to hyperterminal works. Balance to CP doesn't work, RXD blinks, but no data retrieve Any ideas...
Replies
4
Views
2,932
Hello. I´m a plc-rookie and really need help. I have a Siemens 312 PLC , CP 340 rs232 card and an Epson cash display. I want to send a counter...
Replies
0
Views
2,608
Hi folks, I could really use some help - I am trying to connect CP340 with my PC by RS232 protocol. I need to send some characters to PC from...
Replies
0
Views
1,897
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,590
Hallo, I have Tia Portal V16 and I'm upgrading an older machine. That machine has a component running on rs232. The machine has still the old...
Replies
7
Views
947
Back
Top Bottom