background image

Appendix 4

Data Format To Netiom-UDP

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

[Identifier][Message Type][Message Number][Output Data]

where:

Identifier is fixed and must be 

NetiomUDP 

. This is to prevent other network devices using the

same port number causing data to be written to the outputs inadvertantly.

Message Type is a single character and may be:

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

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

link is still established. If the data has changed then Netiom-UDP will still update the outputs.

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

Netiom-UDP will reply with the current status on inputs and outputs.

‘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

acknowlaged.

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.  If  a  type  ‘R’  message  is  sent  it  should  use  the

Message Number of the previous message. Note that a value of zero should be avoided for

the message number.

Output Data is a 16 character string which represents the state of the outputs. Output 1 is the

first character of the string while output 16 is the last. A ‘1’ indicates that the output is on, a ‘0’

indicates that the output is off and a ‘*’ indicates that the output should remain unchanged.

Example:

NetiomUNPA~1100************

Will turn outputs 1 and 2 on. outputs 3 and 4 off and leave all others unchanged. No response

will be returned from Netiom-UDP.

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

[Identifier][Message  Type][Message  Number][Output  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 to be sent

via the serial port

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

Summary of Contents for NETIOM-UDP

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Reviews: