Difference between revisions of "SHIP:Node:linkset"

From Serious Documentation
Jump to: navigation, search
(Properties)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[[SHIP:Node|Node Home]]
 
[[SHIP:Node|Node Home]]
 
__TOC__
 
__TOC__
<onlyinclude>Within a given link, there may be one or more linkset nodes. Each linkset encompasses all the traffic between two endpoints in a link.
+
{| class="wikitable" style="margin: 1em auto 1em auto;"
 +
! scope="col" | Node Type
 +
! scope="col" | Description
 +
|-
 +
|<onlyinclude>{{Node|linkset}}{{#if: {{{1|}}}|{{{1}}} }}||Encompasses all the traffic between two endpoints in a {{Node|link}}.</onlyinclude>
 +
|}
  
For '''slave''' link types of master/slave protocols (for example the [[SHIP:Protocols#Modbus_Slave_RTU|MODBUS_SLAVE_RTU]]), the link may be representing one or more Modbus slaves within the SHIPEngine environment. Even though the protocol is running on a single physical communications channel (e.g. UART0), each linkset within the link can act as one of a number of independent virtual slaves.
+
Within a given link, there may be one or more linkset nodes. Each linkset encompasses all the traffic between two endpoints in a link.
  
For '''master''' link types of of master/slave protocols (for example [[SHIP:Protocols#Modbus_Master_ASCII|MODBUS_MASTER_ASCII]]) you may want to address multiple slaves on the channel.  Each slave would be identified by a linkset with the slave ID set appropriately.</onlyinclude>
+
For '''slave''' link types of master/slave protocols (for example the [[Protocols#Modbus_Slave_RTU|MODBUS_SLAVE_RTU]]), the link may be representing one or more Modbus slaves within the SHIPEngine environment.  Even though the protocol is running on a single physical communications channel (e.g. UART0), each linkset within the link can act as one of a number of independent virtual slaves.
 +
 
 +
For '''master''' link types of of master/slave protocols (for example [[Protocols#Modbus_Master_ASCII|MODBUS_MASTER_ASCII]]) you may want to address multiple slaves on the channel.  Each slave would be identified by a linkset with the slave ID set appropriately.
 
== Parent Nodes ==
 
== Parent Nodes ==
 
The following nodes are permitted to hold this node:
 
The following nodes are permitted to hold this node:
Line 16: Line 23:
  
 
== Properties ==
 
== Properties ==
{| class="wikitable" style="margin: 1em auto 1em auto;"
+
{{PropTableStart|}}
! scope="col" | Property
+
|{{:SHIP:Property:all:name}}
! scope="col" | Data Type
 
! scope="col" | Description
 
|-
 
|{{:SHIP:Property:linkset:name}}
 
 
|-
 
|-
 
|{{:SHIP:Property:linkset:id}}
 
|{{:SHIP:Property:linkset:id}}

Latest revision as of 10:57, 24 October 2016

Node Home

Node Type Description
linkset Encompasses all the traffic between two endpoints in a link.

Within a given link, there may be one or more linkset nodes. Each linkset encompasses all the traffic between two endpoints in a link.

For slave link types of master/slave protocols (for example the MODBUS_SLAVE_RTU), the link may be representing one or more Modbus slaves within the SHIPEngine environment. Even though the protocol is running on a single physical communications channel (e.g. UART0), each linkset within the link can act as one of a number of independent virtual slaves.

For master link types of of master/slave protocols (for example MODBUS_MASTER_ASCII) you may want to address multiple slaves on the channel. Each slave would be identified by a linkset with the slave ID set appropriately.

Parent Nodes

The following nodes are permitted to hold this node:

Child Nodes

The following nodes are permitted to exist within this node:

Properties

Property Data Type Description
name** String The name used to identify this node in SHIPTide.
id Byte Some protocols require the endpoint to have an ID number assigned
refresh* Boolean Set true to start a polling cycle on master/slave protocols; goes false when poll complete
enabled* Boolean Defaults to false; must be set true at runtime from a Sail script to enable the link

*available at SHIPEngine run time only and cannot be set in SHIPTide. Use a Sail script at shiplaunch time if this property needs to be set when the GUI starts to run.

**available only in SHIPTide; cannot be accessed from Sail scripts at run-time.

Examples

Adding two linksets to the example in link reference:

Example link with two linksets

In this example, our GUI is acting as a Modbus Slave attached to UART0, potentially one of many on the communications channel. This physical channel could be, for instance, a multi-drop RS485 network with many slaves of which our SIM is only one. Our GUI, because it has the two linksets at ID #1 and #13 created, will respond as if it were two of those slaves on the network.