How to make rs232 port "listen" on G308

ROAMER_AUS

Member
Join Date
Jul 2014
Location
Umag
Posts
50
Hi all,

I'm trying to figure out how to capture data that is randomly sent by pin making device to g308. It seems like port has some buffer where it stores received data but I can't find way how to access it. If I try to use 'portinput' function continuously it slows the hmi down so much that you can barely perform other operations on it.

Any ideas?

Thanks!
 
What driver are you using?
If you are using the Raw Serial then create a program that is called in the drivers settings "On Update". It will run when data communication takes place.
 
What driver are you using?
If you are using the Raw Serial then create a program that is called in the drivers settings "On Update". It will run when data communication takes place.

Thanx for that, I'll give it a go. I used "on update" already, but I think I got it wrong with the program code. Will try again.
 
What I've done before is put this in the "On Update" field in the port settings: Data := Comms();

I then defined the program "Comms" as:
return PortInput(serialPort, 0, '\n', 500, 30);

where "serialPort" is the port number for the port.
 
What I've done before is put this in the "On Update" field in the port settings: Data := Comms();

I then defined the program "Comms" as:
return PortInput(serialPort, 0, '\n', 500, 30);

where "serialPort" is the port number for the port.

Yeah, I think that's where I went wrong, with my start code.
 

Similar Topics

Have any of you used an RS232 mux on a plc 5 serial port so more then one device can communicate with it with DF1 protocol? Any idea if it will...
Replies
4
Views
1,781
Anyone have any experience with using a 1747-DPS2 device? Bascially, have a Micrologix 1000 where the round port is being used by the HMI (Panel...
Replies
3
Views
1,986
Hi; In one of our flexo printing machine, the communication protocol between HMI to 48nos frequency inverter drives for setting motors is RS485...
Replies
9
Views
4,791
Dear Sir, I want to write some code for ex. FBR008 to a Laser Controller using RS232 protocol from Delta PLC SA2 series. Please give me some...
Replies
1
Views
3,110
Hello all, I just got back to work and of course there is more to do than one person can realistically be expected to take on, so I was hoping...
Replies
2
Views
2,557
Back
Top Bottom