Hi Syte,

As I'm missing out the serial comlib at the moment (have to re-install it..lazyness I know)
Made a test program, to connect 2 systems through serial connection... Installed it on both side...

just convert it to FUP...

Code:
PROGRAM MAIN
VAR
	SerialLineControl1			: 	SerialLineControl;
	PcComInData1	AT%I*	:	PcComInData;
	PcComOutData1	AT %Q*	:	PcComOutData;
	TxBuffer1				:	ComBuffer;
	RxBuffer1				:	ComBuffer;




	SerialLineControl2			: SerialLineControl;
	PcComInData2	AT%I*	:	PcComInData;
	PcComOutData2	AT %Q*	:	PcComOutData;
	TxBuffer2				:	ComBuffer;
	RxBuffer2				:	ComBuffer;
	SendByte1				: 	SendByte;
	ReceiveByte1			: 	ReceiveByte;
	SendByte2				: 	SendByte;
	ReceiveByte2			: 	ReceiveByte;
END_VAR
and the code for it
Code:
SerialLineControl1(
	Mode		:= 	SERIALLINEMODE_PC_COM_PORT,
	pComIn		:= 	ADR(PcComInData1),
	pComOut	:= 	ADR(PcComOutData1),
	SizeComIn	:= 	SIZEOF(PcComInData1),
	TxBuffer		:= 	TxBuffer1,
	RxBuffer		:= 	RxBuffer1,
	Error		=> 	,
	ErrorID		=> 	);


SerialLineControl2(
	Mode		:= 	SERIALLINEMODE_PC_COM_PORT,
	pComIn		:= 	ADR(PcComInData2),
	pComOut	:= 	ADR(PcComOutData2),
	SizeComIn	:= 	SIZEOF(PcComInData2),
	TxBuffer		:= 	TxBuffer2,
	RxBuffer		:= 	RxBuffer2,
	Error		=> 	,
	ErrorID		=> 	);


SendByte1(
	SendByte	:= 	,
	TxBuffer		:= 	TxBuffer1,
	Busy		=> 	,
	Error		=> 	);
(*
ReceiveByte1(
	RxBuffer		:= 	RxBuffer1,
	ByteReceived=> 	,
	ReceivedByte=> 	,
	Error		=> 	);
*)
(*
SendByte2(
	SendByte	:= 	,
	TxBuffer		:= 	TxBuffer2,
	Busy		=> 	,
	Error		=> 	);
*)


ReceiveByte2(
	RxBuffer		:= 	RxBuffer2,
	ByteReceived=> 	,
	ReceivedByte=> 	,
	Error		=> 	);
Br
Peter