Using CitectSCADA > Communicating with I/O Devices > Troubleshooting Device Communications > File formats
File formats

The Write file will adopt the following format:

LINE 1

WRITE Debug file Started PORTNAME Debug Level 1 DOW MONTH DOM HH:MM:SS.sss

LINE 2

HH:MM:SS.sss

LINE 3

Out W In X nBytes Y Status Z

LINES 4...

AA BB CC ..

where:

W & X =

Values of buffer pointers

Y =

Number of bytes written

Z =

Return status of the WriteFile

AA BB CC =

Values in hex of each byte written

Example:

WRITE Debug file Started PORT1_BOARD1 Mon Dec 15 16:07:.998 
16:07:09.810
Out 0 In 8 nBytes 8 iStatus 997
0e 02 00 00 10 00 00
16:07:10.802
Out 8 In 16 nBytes 8 iStatus 997
0e 02 00 00 00 10 00 00
..

The Read file will adopt the following format:

LINE 1

READ Debug file Started PORTNAME Debug Level 1 DOW MONTH DOM HH:MM:SS.sss

LINE 2

HH:MM:SS.sss

LINE 3

Out W InRx X nBytes Y Status Z

LINES 4...

AA BB CC ..

where:

W & X =

Values of buffer pointers

Y =

Number of bytes read

Z =

Number of characters remaining in the buffer

AA BB CC =

Values in hex of each byte written

Example

READ Debug file Started PORT1_BOARD1 Mon Dec 15 16:07:07.998 
16:07:09.830
Out 0 In 0 nBytes 8 iStatus 0
0e 02 00 00 00 10 00 00
16:07:10.822
Out 0 In 8 nBytes 8 iStatus 0
0e 02 00 00 00 10 00 00

The Status file will adopt the following format:

LINE 1

STATUS Debug file Started PORTNAME Debug Level 1 DOW MONTH DOM HH:MM:SS.sss

LINE 2

HH:MM:SS.sss

LINE 3

modemStatus X

Example

STATUS Debug file Started PORT_1 Debug Level 1 Wed Nov 05 
15:28:55.310 
15:29:55.950
modemStatus 34
..

More parameters might be added later, so check the COMx information and the Citect Knowledge Base regularly.

See Also