background image

Appendix 5

Data Format From Netiom-UDP

The basic format of the message without a serial output string is:

[Identifier][Message Type][Message Number][Digital Input Data][Output Data][Analogue Data]

where:

Identifier is fixed and is always 

NetiomUDP 

.

Message Type is a single character and may be:

‘A’  indicates  that  the  data  is  a  regular  update  to  which  Netiom-UDP  will  not  expect  an

acknowledgement. Normally this type of message is used as a heartbeat to indicate that the

link is still established.

‘U’ indicates that new data is present and that an acknowledgement is requested.

‘C’ indicates that the message was generated in response to a ‘U’ type message.

‘R’ indicates that the message is a resend because a previous ‘U’ type message has not been

acknowledged.

Message Number is a single binary byte and is used to ensure that type ‘R’ messages do not

send multiple strings over the serial port. Normally this value is incremented (and allowed to

roll  over)  for  each  non  ‘R’  type  message.  When  a  type  ‘R’  message  is  sent  it  uses  the

Message Number of the previous message. Note that a value of zero is never sent.

Digital  Input  Data  is  a  16  character  string  consisting  of  ‘1’s  and  ‘0’s  followed  by  a  comma

representing the states of the inputs.

Output  Data  is  a  16  character  string  consisting  of  ‘1’s  and  ‘0’s  followed  by  a  comma

representing the states of the outputs.

Analogue Data is a 4 field comma delimited string. Each of the fields is an ASCII number up

to 4 characters representing the value on an Analogue Input. Input 1 is reported first.

Example:

NetiomUDPA~1100110011001100,1111000011110000,123,456,99,1024

The basic format of the message with a serial output string is:

[Identifier][Message Type][Message Number][Digital Input Data][Output Data][Analogue Data]

[Serial Identifier][Number of Characters][Data]

where

Serial Identifier is the character ‘S’ and indicates that the message contains serial data.

Number of Characters is a single binary character with the number of characters received via

the serial port

Data is the serial string to be sent. This can be in any format.

Содержание NETIOM-UDP

Страница 1: ...ion may also help with problem solving Details of how Netiom UDP establishes and controls the link are in the Appendices This information is provided for those who are interested in the internal worki...

Страница 2: ...s will flicker off every few seconds as it detects normal network polling Red is the transmit indication This will switch off when data is transmitted from Netiom UDP It is normally on The programming...

Страница 3: ...em and download to Netiom UDP using the Write To NETIOM button on the general page 12 Remove the programming link The red LED should now flicker once or twice 13 Wait for about 5 seconds and replace t...

Страница 4: ...lts from the file DefaultConfig txt If you need a different set of defaults you can overwrite this file with your own values If you have several different configurations then these can be saved as sep...

Страница 5: ...should be avoided as these are generally pre allocated to well known services Connections The connections section defines how the link is established and maintained In client mode the Netiom UDP will...

Страница 6: ...en the timeout value can be specified in the range 20mS to 20 seconds Note that it is important that both ends of the link have the same baud rate as there is limited buffering within the Netiom UDPs...

Страница 7: ...the internal 5 Volt supply rail via a 10K resistor The input can be directly interfaced to TTL and CMOS outputs The input voltage should not exceed 5 Volts In addition the inputs can use clean contact...

Страница 8: ...which plug directly into the 10 way header Note that if these outputs are to drive inductive loads such as relays and motors then the load must have some form of back EMF suppression fitted IF SUPPRES...

Страница 9: ...nection is via a ribbon cable to the output header If all 16 outputs are to be displayed then two VIOM Display modules will be required Relay Module The Relay module consists of 8 single pole change o...

Страница 10: ...em Check that power is connected and that it is the correct polarity Problem The green LED is off but the red and yellow are on Solution This is an ethernet connection problem Make sure that the ether...

Страница 11: ...t input status The IP address will be 255 255 255 255 and the MAC address will be 0xFFFFFFFF both defined as broadcast values The target will recognise that this is a packet from a Netiom UDP and will...

Страница 12: ...e is received then Netiom UDP will immediately transmit a message irrespective of the state of the update period This message will be marked as urgent and assigned a message number On receiving this m...

Страница 13: ...ion at the remote end will not commence until reception at the local end is complete or the buffer is full Systems using the serial port must take this latency into account especially if retries and t...

Страница 14: ...binary byte and is used to ensure that type R messages do not send multiple strings over the serial port Normally this value is incremented and allowed to roll over for each non R type message If a ty...

Страница 15: ...d to roll over for each non R type message When a type R message is sent it uses the Message Number of the previous message Note that a value of zero is never sent Digital Input Data is a 16 character...

Отзывы: