|
Topic: DMD0248 Device Configuration |
|
|
|
|
|
Devices are pre-configured interfaces that provide programmatic access to system resources. Additional user configuration of the devices, for example baud rates for serial ports, is provided for in this dialog. Some devices are automatically created - for example @UserLog and @DMLogger - and although they are listed here, they cannot be deleted or edited.
Device Name - this column displays the current name of the device, it is this name that is referenced in the instructions that target the Device.
Type - this column displays the driver type used for the Device. '(Setup only)' is used to denote Devices that are data servers, that is, they are NOT used as target device in instructions.
Configuration - this column displays the current configuration for the Device. 'No configuration required' is used to denote Devices that have a fixed configuration.
Heap Item - this column displays the Heap Item that is used for programmatic access to the Device.
|
|
|
|
|
Add a New DeviceThe three buttons at the right allow the programmer to modify the current
system Configuration by adding, or deleting, or editing Device configurations.
Click the New Device button to
invoke the Add Device dialog to create one of the following Devices:
|
|
Click the Edit Device button to open the edit dialog for the currently highlighted Device.
Click the Delete Device to open deletes the currently highlighted Device.
|
|
|
|
|
Onboard Ethernet Port (@IntEthernet)Device Name - the logical name assigned to the Internal Ethernet Device
RX/WX Settings - configuration
settings used when this Device is used in a DirectLOGIC
Read Network (DLRX) or a DirectLOGIC
Read Network (DLWX) instruction:
|
|
|
|
|
Internal Modbus TCP Client (@IntModbusTCPClient)Device Name - the logical name assigned to the Modbus TCP Client Device
Modbus Protocol Settings - configuration
settings used when this Device is used in a Modbus
Network Read (MRX) or Modbus
Network Write (MWX) instruction:
|
|
|
|
|
Onboard Serial Port (@IntSerial) and H2-SERIO or H2-SERIO-4 ModuleAll of the Serial Port Devices in a controller have a common Port Settings section with the following configuration options:
Device Name - displays the logical name of the serial port Device
Port Settings
|
|
|
|
|
|
|
Serial Port as KSequence ServerWhen the module configuration designates the Onboard Serial Port or a port on the H2-SERIO or H2-SERIO-4 as a K Sequence Server, the additional Device configuration option is available:
|
|
|
K Sequence Protocol Settings
- configuration settings used when this Device responds to K Sequence
Client requests:
|
|
|
|
|
Serial Port as Modbus RTU ClientWhen the module configuration designates the Onboard Serial Port or a port on the H2-SERIO or H2-SERIO-4 as a Modbus RTU Client, the additional Device configuration options are available:
Modbus Protocol Settings - configuration
settings used when this Device is used in a Modbus
Network Read (MRX) or Modbus
Network Write (MWX) instruction: |
|
|
|
|
|
|
Serial Port as Modbus RTU ServerWhen the module configuration designates the Onboard Serial Port or a port on the H2-SERIO or H2-SERIO-4 as a Modbus RTU Server, the additional Device configuration option is available:
Modbus Protocol Settings - configuration
settings used when this Device responds to Modbus RTU Client requests:
|
|
|
|
|
SMTP Client Device (@IntEthernet)The Edit SMTP Client Settings dialog is used to create an SMTP connection from the Do-more controller to an SMTP server in order for the controller to send Email. The information that is required to configure an SMTP connection is always going to be specific to the installation. It is up to the programmer to locate the required information.
Device Name - the name to give
the SMTP Client. This is the name that will be referenced in the Send
Email (EMAIL) instructions. Device Names can consists of 1 to 16 alphanumeric
characters. Device names must follow Nickname
rules
SMTP Server IP Address - the
IP address of the SMTP server that will process the Email sent from the
controller. The controller does not have the DNS capability, that is,
it cannot use the name of the SMTP server to lookup the SMTP server's
IP Address.
SMTP Server Port - the default value of 25 is the standard IP port number that is used by SMTP servers. This normally should not need to be changed.
Timeout - this is the amount of time (in seconds) the SMTP Client will attempt to connect to the specified SMTP server before reporting an error. The default value of 30 seconds should be sufficient in most instances. Be aware that it is quite normal for communications with SMTP servers to take several seconds of time; setting this value too low will only cause needless problems.
'From' Email Address - specifies the Email address that all Emails using this SMTP Client will use in the 'From' field. Email addresses must be in the form of X@Y.Z. SMTP servers typically require that the 'From' address be configured as a recipient address on that SMTP server before they will accept Emails from that address.
Authentication - if the SMTP server requires authentication before it will accept an Email from the controller, select one of the following three methods:
|
|
|
|
|
TCP Client DeviceDefines a client-side TCP socket for general purpose TCP/IP networking, which is useful in cases where the Do-more controller needs to send or receive data through a custom streaming protocol. TCP Client devices are only available if the Do-more controller has an onboard Ethernet port.
TCP Client devices require no configuration, they can create connections to TCP Server devices, but cannot accept connections from other TCP clients.
|
|
|
Connections to TCP Servers are created through the Open TCP Connection (OPENTCP) instruction.
Note: the TCP Client device is NOT the correct choice for connecting to device that are using Modbus/TCP protocol, use the Modbus/TCP Client device as described above.
Device Name - the name to give
the TCP Client. This is the name that will be referenced in the OPENTCP
instruction. Device Names can consists of 1 to 16 alphanumeric characters.
Device names must follow Nickname
rules
|
|
|
|
|
TCP Server DeviceDefines a server-side TCP socket for general purpose TCP/IP networking, which is useful in cases where the Do-more controller needs to send or receive data through a custom streaming protocol. TCP Server devices are only available if the Do-more controller has an onboard Ethernet port.
TCP Server devices are configured with a local port number, which defines the 'listening' port. TCP Server devices can accept connections from a single TCP Client, and upon accepting the client connection, will invoke a Program code-block specified for the 'connected' state, and a different Program code-block when the TCP connection is lost.
The TCP Server is managed through the Start
Listening on TCP Port (TCPLISTEN) instruction. Note: the TCP Server device is NOT the correct choice for allowing a connection from an external device that is using Modbus/TCP protocol, use the built-n Modbus/TCP Server.
|
|
|
Device - the name to give the
SMTP Client. This is the name that will be referenced in the Send Email
(EMAIL) instructions. Device Names can consists of 1 to 16 alphanumeric
characters. Device names must follow Nickname
rules
UDP Port - the port number to list on. This can be any decimal constant in the range of 1 to 65535 |
|
|
|
|
UDP Connection DeviceDefines a UDP socket for general purpose TCP/IP networking, useful in cases where the controller needs to send or receive data through a custom streaming protocol. UDP Connection devices are only available if the controller has an onboard Ethernet port.
UDP Connection devices are used by the Input Data from Packet Device (PACKETIN) and Output UDP to Packet Device (PACKETOUT) instructions.
Device Name - the name to give
the UDP Connection. This is the name that will be referenced in the PACKETIN
and PACKETOUT instructions. Device Names can consists of 1 to 16 alphanumeric
characters. Device names must follow Nickname
rules
UDP Port - the port number to use for this connection. This can be any decimal constant in the range of 1 to 65535. Each UDP connection must have a unique port number. Note: port number 28784 is already used by the Do-more controller. |
|
|
|
|
See Also:
|
|
|
|
|