You are on page 1of 36

Installation and Setup

®
PROFINET (PNIO) Option
for Telesis Marking Systems

This document contains installation and setup data for the Telesis®
PROFINET®IO device. This convertor allows the marking system
controller to communicate with remote devices in a PROFINET®
environment.

Document No. 70686F

Telesis Technologies, Inc.


28181 River Drive
P.O. Box 1000
Circleville, Ohio 43113
PROFINET® PNIO Option

Foreword
Telesis Technologies, Inc. (hereinafter referred to as Telesis) reserves the right to change the information
and specifications contained in this document without prior notice. The reader should consult Telesis to
determine whether such changes have been made.

In no event shall Telesis be liable for any incidental, indirect, special, or consequential damages whatsoever,
including but not limited to lost profits, arising out of, or relating to this document or the information it
contains, even if Telesis has been advised, has knowledge, or should have knowledge of the possibility of
such damages.

Telesis expressly warrants the equipment it manufactures as set forth in the Standard Terms and Conditions
of Sale. Telesis makes no other warranties, expressed or implied, including and without limitation,
warranties as to merchantability or fitness for a particular purpose.

The information contained in this document is confidential and is proprietary to Telesis or its licensors.

Trademarks
Telesis and Merlin are registered trademarks of Telesis Technologies, Inc. in the USA and/or other countries.

PROFINET is a registered trademark of PI PROFIBUS and PROFINET International.

Siemens is a registered trademark of Siemens AG.

© 2018 Telesis Technologies, Incorporated – All Rights Reserved

70686F i
PROFINET® PNIO Option

Safety Summary
The following formats are used throughout this documentation to advise you of hazards associated with the
laser marking system.

Notification of hazards or unsafe practices that will result


in serious personal injury or death.

Notification of hazards or unsafe practices that could


result in serious personal injury or death.

Notification of hazards or unsafe practices that could


result in product damage or minor personal injury.

Information to help clarify a task, action or concept.

ii 70686F
PROFINET® PNIO Option

Contents
Overview ....................................................................................................................................... 1
Profinet to Serial Kit ......................................................................................................... 1
Kit (PN 76888) contents: .................................................................................... 1
Connection details:............................................................................................. 1
Hardware Platform ........................................................................................................... 4
PROFINET-IO Slave .......................................................................................................... 4
PROFINET-IO Cyclic Output Data ....................................................................................... 4
PROFINET-IO Cyclic Input Data.......................................................................................... 5
Example of the Message Pass-Through Service .................................................................... 5

Mapping of the Telesis PNIO Device (by Controller) ...................................................................... 6


TMC470 CONTROLLER ...................................................................................................... 6
PROFINET-IO Cyclic Input Data ................................................................................. 6
PROFINET-IO Cyclic Output Data ............................................................................... 7
Connecting to the TMC470 Controller ......................................................................... 8
TMC470 Message Types for Pass-Through Service ....................................................... 9
TMC520 CONTROLLER .................................................................................................... 10
PROFINET-IO Cyclic Input Data ............................................................................... 10
PROFINET-IO Cyclic Output Data ............................................................................. 11
Connecting to TMC520 Controller ............................................................................. 12
TMC520 Message Types for Pass-Through Service ..................................................... 13
TMC600 CONTROLLER .................................................................................................... 14
PROFINET-IO Cyclic Input Data ............................................................................... 14
PROFINET-IO Cyclic Output Data ............................................................................. 15
Connecting to TMC600 Controller ............................................................................. 16
TMC600 Message Types for Pass-Through Service ..................................................... 17
MERLIN II LS SOFTWARE ................................................................................................ 18
PROFINET-IO Cyclic Input Data ............................................................................... 18
PROFINET-IO Cyclic Output Data ............................................................................. 19
Connecting to Merlin II LS ...................................................................................... 20
Merlin II LS Message Types for Pass-Through Service................................................. 21
MERLIN2H SOFTWARE .................................................................................................... 23
PROFINET-IO Cyclic Input Data ............................................................................... 23
PROFINET-IO Cyclic Output Data ............................................................................. 23
Connecting to Merlin2H .......................................................................................... 24
Merlin2H Message Types for Pass-Through Service .................................................... 25

Using the PNIO Device in Your Projects ....................................................................................... 26

70686F iii
PROFINET® PNIO Option

This page intentionally left blank.

iv 70686F
PROFINET® PNIO Option

Overview

Profinet to Serial Kit


Profinet to Serial Kit (PN 76888) is used to allow communication from the marking system controller
with remote devices in an Ethernet environment.

Kit (PN 76888) contents:


76889 PNIO-Serial Converter
78012 USB Flash Drive with software and Profinet Supplement Documentation (70686)
77992 DB9 Adapter

Connection details:

70686F 1
PROFINET® PNIO Option

Merlin ll LS & Merlin 2H systems

2 70686F
PROFINET® PNIO Option

Merlin ll LS & Merlin 2H Embedded systems

70686F 3
PROFINET® PNIO Option

Hardware Platform
The Telesis PNIO-SERIAL device (PN 76889) is loaded with PNIO firmware #77939. A TFTP server is
implemented to receive updates.

Throughout this document, the term “Telesis controller”


refers to the TMC470 controller, the TMC600 Controller, or
the Merlin II LS-based laser marking software.

PROFINET-IO Slave
The Telesis PNIO device is a non-profile device. For Cyclic I/O data exchange, one input data slot and one
output data slot is implemented. The bytes of data associated with these slots are mapped to data within this
device. Acyclic data exchange is not implemented.

PROFINET-IO Cyclic Messaging is a Producer/Consumer relationship where the server produces an input data
packet at given intervals and the client produces an output packet at given intervals.

The PNIO device contains an internal Extended Protocol serial client that exchanges data with the Telesis
controller. The current data is buffered inside the PNIO device. Data received via PROFINET-IO will update the
internal output buffer and result in Extended Protocol data being sent to the Telesis controller. Data received
from the Telesis controller will update the internal input buffer and be produced via PROFINET-IO at the next
production interval.

Some of the data being transferred is more acyclic in nature, with explicit request/response pairings. This is
implemented in a Message Pass-through service. In order to transport these types of messages via the PNIO
cyclic data exchange, a Message ID Field is implemented. When the PLC changes the Message ID field in the
PNIO output data, it is an indication to the PNIO device that the remaining Message Type and Data contains a
new Extended Protocol request to be sent to the Telesis Controller.
When the Extended Protocol response is received, the response data is “passed through” back to the PLC.
The PNIO device changes its Response Message ID field in the PNIO input data as an indication to the PLC that
a response is available via the Response Message Type, Response ACK field, and Response Message Data.

PROFINET-IO Cyclic Output Data


The PROFINET-IO cyclic output packet (produced by the PLC and consumed by the PNIO device) consists of
the following data items:
• Outputs: 3-bytes (bits 0-23, many are reserved for future use)
• Message ID: 1-byte
• Message Type: 1-byte
• Message Data: up to 105 bytes

When this output data changes, the PNIO device’s internal serial client will send the corresponding Extended
Protocol commands to update the data in the Telesis controller.

A change in the Message ID indicates that a new command / request message is contained in the subsequent
bytes (Message Type and Message Data) and will trigger an Extended Protocol command / request via the
Message Pass-through service.

4 70686F
PROFINET® PNIO Option

PROFINET-IO Cyclic Input Data


The PROFINET-IO cyclic input packet (produced by the PNIO device and consumed by the PLC) consists of the
following data items:
• Error Status: 3-bytes
• Machine Status: 4-bytes
• Inputs: 2-bytes
• Input: 1-byte Reserved
• Response Message ID: 1-byte
• Response Message Type: 1-byte
• Response Message ACK: 1-byte
• Response Message Data: up to 105 bytes.

The input data is obtained by the PNIO device from the Telesis controller. The Telesis PNIO device will
continuously poll for the Error Status, Machine Status, and Inputs. The Telesis PNIO device will only update
the Response Message ID, Message Type, ACK/NAK and Message Data if a message Pass-through service was
initiated by the PLC and a response was received by the PNIO device.

Example of the Message Pass-Through Service


PLC wants to send down data to field 1 (a variable text field) of the TMC470 Controller.

MESSAGE TYPE = ‘V’ 0x56


MESSAGE DATA = “01ABCDEF” in ASCII, null terminated
MESSAGE ID = 0x01 (Assumes message ID was previously set to 0)

The Telesis PNIO device will detect a Message ID change. That is an indication that it needs to send a
variable text field message to the Telesis Controller and does so. Upon receiving a response from the Telesis
Controller the appropriate registers are populated with the appropriate data.

RESPONSE MESSAGE TYPE = ‘V’


RESPONSE MESSAGE DATA = “”
RESPONSE MESSAGE ACK = <ACK> ASCII ACK or 0x06
RESPONSE MESSAGE ID = 0x01 NOTE: Same id as the original command ID.

Even though this data is maintained in the registers, the


message will not be re-sent by the Telesis PNIO device
unless the MESSAGE ID is changed by the PLC.

70686F 5
PROFINET® PNIO Option

Mapping of the Telesis PNIO Device (by Controller)

TMC470 CONTROLLER

The Register numbers in the following tables are example


assignments and can change from system to system. The
registers are usually assigned by the PLC program when
the device is selected and added to the program.

PROFINET-IO Cyclic Input Data


Byte Register Purpose
1 256 Error Status Spare
2 257 Error Status MSB
.0 = RAM Error
.1 = Serial Number Range Error
.2 = Print Count Range Error
.3 = Over Temperature Error
.5 =
.6 =
.7 = Unspecified Error.
3 258 Error Status LSB
.0 = Online Error
.1 = Pattern Load Error
.2 = Operation cannot be done, no pattern is loaded.
.3 = Operation is not allowed when marker is OFFLINE
.4 = Pattern Field Error
.5 = Marker Aborted
.6 = File Transfer Error
.7 = Pixel Out of Range Error
4 259 Machine Status MSB (Not used in TMC470)
5 260 Machine Status (Not used in TMC470)
6 261 Machine Status (Not used in TMC470)
7 262 Machine Status LSB (Not used in TMC470)
8 263 Spare (8-15) (Reserved for future use)
9 264 Inputs (0-7)
.0 = READY
.1 = DONE
.2 = PAUSED
.3 = NO FAULT
.4 = SPARE (PIN 25) (Spare 2)
.5 = SPARE (PIN 24) (Spare 1)
.6 = Reserved for future use
.7 = Reserved for future use.
10 265 Reserved
11 266 Response Message ID
12 267 Response Message Type
13 268 Response Message ACK or NAK
14 … 269 … Response Message Data

6 70686F
PROFINET® PNIO Option

PROFINET-IO Cyclic Output Data


Byte Register Purpose
1 256 Spare (16-23) (Reserved for future use.)
2 257 Outputs MSB (8-15)
.0 = SELECT 5
.1 = SPARE (PIN 11)
.2 = SPARE (PIN 12)
.3 = SPARE (PIN 13)
.4 = Reserved
.5 = Reserved
.6 = Reserved
.7 = Reserved
3 258 Outputs LSB (0-7)
.0 = GO
.1 = ABORT / STOP
.2 = SELECT 0
.3 = SELECT 1
.4 = SELECT 2
.5 = SELECT 3
.6 = ONLINE or SELECT 6 (software programmable)
.7 = SELECT 4
4 259 Message ID (Used to trigger new message)
5 260 Message Type
6 261 Message Data

70686F 7
PROFINET® PNIO Option

Connecting to the TMC470 Controller


For complete operating instructions, please refer to the TMC470 Operation Manual.

1. Ensure power to the controller is OFF.

2. Connect the PNIO device (PN 76889) to the TMC470 Controller COM2 port: {.....}2
The TMC470 COM 2 port supplies power to the device.

3. Turn the controller ON.

4. Change the operating mode to Supervisor.


F1:FILE F2:EDIT F3:MACHINE F4:MARKER F5:SETUP
5. From the Supervisor Main Screen, press F5 (SETUP). SUPV –Offline– Pattern:SAMPLE_02 :002
 F1:LEVEL F6:<SUPERVISOR>
The system will display the Setup Menu. F2:QUERY TEXT
*001:[TEXT: User Text: ]
F3:DESIGN F7:<UNITS>
6. Press F8 to toggle the PROPERTIES selection to 002:[TEXT: Fixed Text: ABCDE ]
F4:PROPERTIES F8:<SERIAL2 >
003:[ ]
SERIAL2 F5:MANAGEMENT
004:[ ]
005:[ ]
7. Press F4 (PROPERTIES) to access the Host2
Screen.

8. Disable (uncheck) the Serial Tool check box. HOST 2: COMM PROT PROG ECHO

9. Set the communication parameters as follows: Baud: <19200 >


SERIAL TOOL  Parity: <NONE>
• Baud: 19200 Bits: <8>
• Parity: NONE Stop Bits:<1>
• Bits: 8 F1 SAVE F2 DEFAULTS
• Stop Bits: 1

10. Press Page Down to select the PROT page. HOST: COMM PROT PROG ECHO

11. Set the Protocol to NET232EX. Protocol: <NET232EX>

12. Press F1 (SAVE) to save the settings.

F1 SAVE F2 DEFAULTS

8 70686F
PROFINET® PNIO Option

TMC470 Message Types for Pass-Through Service


The following message types may be used with the TMC470 Controller via NET232EX Protocol. Please refer to
the TMC470 Operation Manual for complete details on using Extended Protocol Message Types.

Type 1 Downloads data to the marking system or polls the system for information.
Downloading Data. When used to supply data, this message type overwrites the content of
the specified field with the data sent from the host. Note that if the field contains message
flags, they will be overwritten, not updated.
Polling Data. When used to poll for data, this message type requests the content of the
specified field. You may request the actual content of the field (as defined by the pattern
designer) or you may request the parsed (real-time) data in the field. For example, if the field
contains a date/time flag, the actual content might be “%C”, but the parsed (real-time) data
might be “03/05/14 09:42”.

Type C Clears all errors from the controller and, if displayed, will remove the error message from the
TMC470 display screen. No data is sent or returned with type of message.

Type G Allows the host to initiate a print cycle.

Type I Requests the marking system return the status of standard output and input signals. The
controller will return a hexadecimal code for the 6 output signals and 12 input signals.

Type O Allows the host to place the machine online. This permits a marking system that is unattended to
recover from a power outage by supplying the Online command from the host.

Type P Downloads data to the marking system or polls the system for information.
Downloading Data. When used to supply data, the host sends the name of the pattern to be
loaded.
Polling Data. When used to poll for data, this message type requests the name of the pattern
currently loaded in the controller.

Type Q Updates text in the specified query text buffer with the data sent from the host.

Type S Requests the error status of the marking system. The controller will return a value that represents
a particular type of error. Each error type has one or more messages that may be displayed on the
controller when an error occurs.

Type V Downloads data to the marking system or polls the system for information.
Downloading Data. When used to supply data, this message type updates the variable text in
the specified field with the data sent from the host. The specified field must contain a variable
text flag (%#V or %#v). To avoid data truncation, the data supplied to each field must be
compatible with the maximum number of characters allowed for that field.
You may supply data to a single variable text field or to multiple variable text fields. When
supplying data to multiple fields:
• If you attempt to supply data to more variable text fields than exist in the pattern, the
extra data will be ignored.
• If you supply data for fewer variable text fields than exist in the pattern, the extra
variable text fields will be cleared of their data (but will retain their variable text flags).
Polling Data. When used to poll for data, this message type requests the user-supplied text
that is contained in a specific variable text field.
Suppose a field contains both fixed text and variable text (e.g., MODEL %5V), and the user has
supplied the text “12345”. This message type will return only the value of the user-supplied
text “12345”.

70686F 9
PROFINET® PNIO Option

TMC520 CONTROLLER

The Register numbers in the following tables are example


assignments and can change from system to system. The
registers are usually assigned by the PLC program when
the device is selected and added to the program.

PROFINET-IO Cyclic Input Data


Byte Register Purpose
1 256 Error Status Spare (Not used in TMC520)
2 257 Error Status MSB (Not used in TMC520)
3 258 Error Status LSB (Not used in TMC520)
4 259 Machine Status MSB
.0 =
.1 =
.2 =
.3 =
.4 =
.5 =
.6 =
.7 =
5 260 Machine Status
.0 = MACHINE PULSING
.1 =
.2 =
.3 =
.4 =
.5 =
.6 =
.7 =
6 261 Machine Status
.0 = MACHINE PAUSED
.1 = MACHINE PARKING
.2 = MACHINE BATCH
.3 = MACHINE REPEAT
.4 = MACHINE PREVIEW
.5 = MACHINE PREPOSITION
.6 = MACHINE INPUT
.7 = MACHINE SERIAL
7 262 Machine Status LSB
.0 = MACHINE ABORTED
.1 =
.2 =
.3 =
.4 = MACHINE ONLINE
.5 = MACHINE HOMING
.6 = MACHINE PRINTING
.7 = MACHINE DRYRUN
8 263 Spare (8-15) (Reserved for future use)

continued on next page…

10 70686F
PROFINET® PNIO Option

PROFINET-IO Cyclic Input Data (continued)


Byte Register Purpose
9 264 Inputs (0-7)
.0 = READY
.1 = DONE
.2 = PAUSED
.3 = SPARE (PIN 23) (Spare 1)
.4 = SPARE (PIN 24) (Spare 2)
.5 = SPARE (PIN 25) (Spare 3)
.6 = ONLINE
.7 = Reserved for future use.
10 265 Reserved
11 266 Response Message ID
12 267 Response Message Type
13 268 Response Message ACK or NAK
14 … 269 … Response Message Data

PROFINET-IO Cyclic Output Data


Byte Register Purpose
1 256 Spare (16-23)
2 257 Outputs MSB (8-15)
.0 = SELECT 5
.1 = SPARE INPUT (PIN 11)
.2 = SPARE INPUT (PIN 12)
.3 = SPARE INPUT (PIN 13)
.4 = Reserved
.5 = Reserved
.6 = Reserved
.7 = Reserved
3 258 Outputs LSB (0-7)
.0 = GO
.1 = ABORT / STOP
.2 = SELECT 0
.3 = SELECT 1
.4 = SELECT 2
.5 = SELECT 3
.6 = ONLINE or SELECT 6 (software programmable)
.7 = SELECT 4
4 259 Message ID (Used to trigger new message)
5 260 Message Type
6 261 Message Data

70686F 11
PROFINET® PNIO Option

Connecting to TMC520 Controller


For complete operating instructions, please refer to the TMC520 Operating Instructions. This on-screen
information is available via the Merlin520 PS software Help features.

1. Ensure power to the controller is OFF.

2. Connect the PNIO device (PN 76889) to the TMC520 Controller COM1 port: {.....}1
The TMC520 COM 1 port supplies power to the device.

3. Turn the controller ON.

4. Change the operating mode to Supervisor.

5. On the Main toolbar, select the Setup button:

6. On the Setup toolbar, select the Host button:

7. Select the Host tab and edit its parameters as follows:


• Interface: COMn
• Protocol: NET232EX

8. Select the COMn tab and edit its parameters as follows:


• Baud: 19200
• Parity: NONE
• Data Bits: 8
• Stop Bits: 1

9. When finished, select the OK button:

12 70686F
PROFINET® PNIO Option

TMC520 Message Types for Pass-Through Service


The following message types may be used with the TMC520 Controller via NET232EX Protocol. Please refer to
the TMC520 Operating Instructions for complete details on Extended Protocol Message Types.

Type 1 Downloads data to the marking system or polls the system for information.
Downloading Data. When used to supply data, this message type overwrites the content of
the specified field with the data sent from the host. Note that if the field contains message
flags, they will be overwritten, not updated.
Polling Data. When used to poll for data, this message type requests the content of the
specified field. You may request the actual content of the field (as defined by the pattern
designer), or you may request the parsed (real-time) data in the field. For example, if the field
contains a date/time flag, the actual content might be “%C”, but the parsed (real-time) data
might be “03/05/14 09:42”.

Type E Places the marking system offline with the option of displaying an error message.

Type G Allows the host to initiate a print cycle.

Type I Requests the marking system return the status of standard output and input signals. The
controller will return a hexadecimal code for the 7 output signals and 13 input signals.

Type O Allows the host to place the machine online. This permits a marking system that is unattended to
recover from a power outage by supplying the Online command from the host.

Type P Downloads data to the marking system or polls the system for information.
Downloading Data. When used to supply data, the host sends the name of the pattern to be
loaded.
Polling Data. When used to poll for data, this message type requests the name of the pattern
currently loaded in the controller.

Type Q Updates text in the specified query text buffer with the data sent from the host.

Type S Polls the system for the machine status. The machine status is returned to the host in an eight-
character hexadecimal mask.

Type V Downloads data to the marking system or polls the system for information.
Downloading Data. When used to supply data, this message type updates the variable text in
the specified field with the data sent from the host. The specified field must contain a variable
text flag (%#V or %#v). To avoid data truncation, the data supplied to each field must be
compatible with the maximum number of characters allowed for that field.
You may supply data to a single variable text field or to multiple variable text fields. When
supplying data to multiple fields:
• If you attempt to supply data to more variable text fields than exist in the pattern, the
extra data will be ignored.
• If you supply data for fewer variable text fields than exist in the pattern, the extra
variable text fields will be cleared of their data (but will retain their variable text flags).
Polling Data. When used to poll for data, this message type requests the user-supplied text
that is contained in a specific variable text field.
Suppose a field contains both fixed text and variable text (e.g., MODEL %5V), and the user has
supplied the text “12345”. This message type will return only the value of the user-supplied
text “12345”.

70686F 13
PROFINET® PNIO Option

TMC600 CONTROLLER

The Register numbers in the following tables are example


assignments and can change from system to system. The
registers are usually assigned by the PLC program when
the device is selected and added to the program.

PROFINET-IO Cyclic Input Data


Byte Register Purpose
1 256 Error Status Spare (Not used in TMC600)
2 257 Error Status MSB (Not used in TMC600)
3 258 Error Status LSB (Not used in TMC600)
4 259 Machine Status MSB
.0 =
.1 =
.2 =
.3 =
.4 =
.5 =
.6 =
.7 =
5 260 Machine Status
.0 = MACHINE PULSING
.1 =
.2 =
.3 =
.4 =
.5 =
.6 =
.7 =
6 261 Machine Status
.0 = MACHINE PAUSED
.1 = MACHINE PARKING
.2 = MACHINE BATCH
.3 = MACHINE REPEAT
.4 = MACHINE PREVIEW
.5 = MACHINE PREPOSITION
.6 = MACHINE INPUT
.7 = MACHINE SERIAL
7 262 Machine Status LSB
.0 = MACHINE ABORTED
.1 =
.2 =
.3 =
.4 = MACHINE ONLINE
.5 = MACHINE HOMING
.6 = MACHINE PRINTING
.7 = MACHINE DRYRUN
8 263 Spare (8-15) (Reserved for future use)

continued on next page…

14 70686F
PROFINET® PNIO Option

PROFINET-IO Cyclic Input Data (continued)


Byte Register Purpose
9 264 Inputs (0-7)
.0 = READY
.1 = DONE
.2 = PAUSED
.3 = SPARE (PIN 23) (Spare 1)
.4 = SPARE (PIN 24) (Spare 2)
.5 = SPARE (PIN 25) (Spare 3)
.6 = Reserved for future use
.7 = Reserved for future use.
10 265 Reserved
11 266 Response Message ID
12 267 Response Message Type
13 268 Response Message ACK or NAK
14 … 269 … Response Message Data

PROFINET-IO Cyclic Output Data


Byte Register Purpose
1 256 Spare (16-23)
2 257 Outputs MSB (8-15)
.0 = SELECT 5
.1 = SPARE INPUT (PIN 11)
.2 = SPARE INPUT (PIN 12)
.3 = SPARE INPUT (PIN 13)
.4 = Reserved
.5 = Reserved
.6 = Reserved
.7 = Reserved
3 258 Outputs LSB (0-7)
.0 = GO
.1 = ABORT / STOP
.2 = SELECT 0
.3 = SELECT 1
.4 = SELECT 2
.5 = SELECT 3
.6 = ONLINE or SELECT 6 (software programmable)
.7 = SELECT 4
4 259 Message ID (Used to trigger new message)
5 260 Message Type
6 261 Message Data

70686F 15
PROFINET® PNIO Option

Connecting to TMC600 Controller


For complete operating instructions, please refer to the TMC600 Operating Instructions. This on-screen
information is available via the MerlinTouchPS software Help features.

10. Ensure power to the controller is OFF.

11. Connect the PNIO device (PN 76889) to the TMC600 Controller COM1 port: {.....}1
The TMC600 COM 1 port supplies power to the device.

12. Turn the controller ON.

13. Change the operating mode to Supervisor.

14. On the Main toolbar, select the Setup button:

15. On the Setup toolbar, select the Host button:

16. Select the Host tab and edit its parameters as follows:
• Interface: COMn
• Protocol: NET232EX

17. Select the COMn tab and edit its parameters as follows:
• COMn as applicable (identify computer COM port where PNIO device is connected)
• Baud: 19200
• Parity: NONE
• Data Bits: 8
• Stop Bits: 1

18. When finished, select the OK button:

16 70686F
PROFINET® PNIO Option

TMC600 Message Types for Pass-Through Service


The following message types may be used with the TMC600 Controller via NET232EX Protocol. Please refer to
the TMC600 Operating Instructions for complete details on Extended Protocol Message Types.

Type 1 Downloads data to the marking system or polls the system for information.
Downloading Data. When used to supply data, this message type overwrites the content of
the specified field with the data sent from the host. Note that if the field contains message
flags, they will be overwritten, not updated.
Polling Data. When used to poll for data, this message type requests the content of the
specified field. You may request the actual content of the field (as defined by the pattern
designer) or you may request the parsed (real-time) data in the field. For example, if the field
contains a date/time flag, the actual content might be “%C”, but the parsed (real-time) data
might be “03/05/14 09:42”.

Type E Places the marking system Offline with the option of displaying an error message.

Type G Allows the host to initiate a print cycle.

Type I Requests the marking system return the status of standard output and input signals. The
controller will return a hexadecimal code for the 7 output signals and 13 input signals.

Type O Allows the host to place the machine online. This permits a marking system that is unattended to
recover from a power outage by supplying the Online command from the host.

Type P Downloads data to the marking system or polls the system for information.
Downloading Data. When used to supply data, the host sends the name of the pattern to be
loaded.
Polling Data. When used to poll for data, this message type requests the name of the pattern
currently loaded in the controller.

Type Q Updates text in the specified query text buffer with the data sent from the host.

Type S Polls the system for the machine status. The machine status is returned to the host in an eight-
character hexadecimal mask.

Type V Downloads data to the marking system or polls the system for information.
Downloading Data. When used to supply data, this message type updates the variable text in
the specified field with the data sent from the host. The specified field must contain a variable
text flag (%#V or %#v). To avoid data truncation, the data supplied to each field must be
compatible with the maximum number of characters allowed for that field.
You may supply data to a single variable text field or to multiple variable text fields. When
supplying data to multiple fields:
• If you attempt to supply data to more variable text fields than exist in the pattern, the
extra data will be ignored.
• If you supply data for fewer variable text fields than exist in the pattern, the extra
variable text fields will be cleared of their data (but will retain their variable text flags).
Polling Data. When used to poll for data, this message type requests the user-supplied text
that is contained in a specific variable text field.
Suppose a field contains both fixed text and variable text (e.g., MODEL %5V), and the user has
supplied the text “12345”. This message type will return only the value of the user-supplied
text “12345”.

70686F 17
PROFINET® PNIO Option

MERLIN II LS SOFTWARE

The Register numbers in the following tables are example


assignments and can change from system to system. The
registers are usually assigned by the PLC program when
the device is selected and added to the program.

PROFINET-IO Cyclic Input Data


Byte Register Purpose
1 256 Error Status Spare (Not used in Laser)
2 257 Error Status MSB (Not used in Laser)
3 258 Error Status LSB (Not used in Laser)
4 259 Machine Status MSB
.0 = MACHINE FLY AUTO GO
.1 = MACHINE FLY TRIGGER LASER
.2 = MACHINE ASIX RESET
.3 =
.4 =
.5 =
.6 =
.7 =

5 260 Machine Status


.0 = MACHINE PREVIEW
.1 = MACHINE PREPOSITION
.2 = MACHINE INPUT
.3 = MACHINE SERIAL TOOL
.4 = MACHINE SELECTED
.5 = MACHINE PULSE
.6 = MACHINE FLY
.7 = MACHINE FLY TRIGGER

6 261 Machine Status


.0 = MACHINE TARGET
.1 = MACHINE HOMING
.2 = MACHINE PRINTING
.3 = MACHINE DRYRUN
.4 = MACHINE PAUSED
.5 = MACHINE PARKING
.6 = MACHINE BATCH
.7 = MACHINE REPEAT

7 262 Machine Status LSB


.0 = MACHINE ABORTED
.1 =
.2 =
.3 =
.4 = MACHINE ONLINE
.5 =
.6 =
.7 =

continued on next page…

18 70686F
PROFINET® PNIO Option

PROFINET-IO Cyclic Input Data (continued)


Byte Register Purpose
8 263 Spare (8-15) (Reserved for future use)
9 264 Inputs (0-7)
.0 = READY
.1 = DONE
.2 = PAUSED
.3 = SPARE OUTPUT 1
.4 = SPARE OUTPUT 2
.5 = SPARE OUTPUT 3
.6 = Reserved
.7 = Reserved
10 265 Reserved
11 266 Response Message ID
12 267 Response Message Type
13 268 Response Message ACK or NAK
14 … 269 … Response Message Data

PROFINET-IO Cyclic Output Data


Byte Register Purpose
1 256 Spare (16-23)
2 257 Outputs MSB (8-15)
.0 = Reserved
.1 = Reserved
.2 = Reserved
.3 = Reserved
.4 = Reserved
.5 = Reserved
.6 = Reserved
.7 = Reserved
3 258 Outputs LSB (0-7)
.0 = GO
.1 = ABORT (STOP)
.2 = SELECT 0
.3 = SELECT 1
.4 = SELECT 3
.5 = SELECT 4 / ONLINE (Software programmable)
.6 = Reserved
.7 = Reserved
4 259 Message ID (Used to trigger new message)
5 260 Message Type
6 261 Message Data

70686F 19
PROFINET® PNIO Option

Connecting to Merlin II LS
For complete operating instructions, please refer to the Merlin II LS Operating Instructions. This on-screen
information is available via the software’s Help menu.

1. Ensure power to the computer is OFF.

2. The PNIO device (PN 76889) connects to the computer that will run the Merlin II LS software. Connect
as follows:
a. Locate adapter (PN 77992).
b. Connect the DB9S connector of the adapter to an available serial port on the computer.
c. Connect the USB cable from the adapter to an available USB port on the computer.
The USB port supplies power to the PNIO device.
d. Connect the PNIO device to the adapter.

3. Turn the computer ON and start the Merlin II LS software.

4. Place the system in Supervisor mode.

5. From the Main Menu select Setup, then select Host.

6. Click on the General tab. Set the parameters as follows:


• Interface: COMn
• Protocol: NET232EX

7. Click on the Port tab. Set the parameters as follows:


• Baud: 19200
• Parity: NONE
• Data Bits: 8
• Stop Bits: 1

8. Click OK to save the settings.

20 70686F
PROFINET® PNIO Option

Merlin II LS Message Types for Pass-Through Service


The following message types may be used with the Merlin II LS software via NET232EX Protocol. Please refer
to the Merlin II LS Operating Instructions for complete details on Extended Protocol Message Types.

Type 1 Downloads data to the marking system or polls the system for information.
Downloading Data. If a text string is provided, this message type overwrites the content of
the specified field with the data received from the host message. Note that if the field contains
message flags, they will be overwritten, not updated.
Polling Data. If a text string is not provided, this message type will poll the specified field
and return the current data to the host.

Type A Downloads data to the marking system or polls the system for information.
Downloading Data. If a text string is provided, this message type updates the Offset Angle
for the primary scan head.
Polling Data. If a text string is not provided, this message type will poll the system for the
current Offset Angle setting for the primary scan head and return the current value to the
host.

Type a Downloads data to the marking system or polls the system for information..
Downloading Data. If a text string is provided, this message type updates the Offset Angle
setting for the secondary scan head.
Polling Data. If a text string is not provided, this message type will poll the system for the
current Offset Angle for the secondary scan head and return the current value to the host.

Type E Places the marking system Offline with the option of displaying an error message.

Type G Initiates a print cycle.

Type H Downloads data to the marking system or polls the system for information.
Downloading Data. If a text string is provided, this message type updates the Offset X/Y
setting for the primary scan head.
Polling Data. If a text string is not provided, this message type will poll the system for the
current Offset X/Y setting for the primary scan head and return the current value to the host.

Type h Downloads data to the marking system or polls the system for information.
Downloading Data. If a text string is provided, this message type updates the Offset Angle
for the secondary scan head.
Polling Data. If a text string is not provided, this message type will poll the system for the
current Offset Angle for the secondary scan head and return the current value to the host.

Type I Polls the marking system for the I/O status. The system returns a hexadecimal code to the host.

Type M Sets the current Omni Serial Number to the integer value in the message data..

Type O Places the marking system online. This allows a host computer to reset. For example, this may
be used to recover from a power outage when the marker is unattended.

continued on next page…

70686F 21
PROFINET® PNIO Option

Merlin II LS Message Type Overview (continued)

Type P Downloads data to the marking system or polls the system for information.
Downloading Data. If a pattern name is provided, the system loads the specified pattern
and opens it. The system must be idle in order to load a pattern. Note also that if the
pattern resides in a location other than the default pattern directory, you must specify the full
file path name to identify the pattern you wish to open.
Polling Data. If a pattern name is not provided, this message type will poll the marking
system and return the name of the currently loaded pattern to the host.

Type R Allows a rotation angle to be specified via the host to rotate all pattern objects about the window
origin

Type Q Downloads data to the marking system or polls the system for information.
Downloading Data. If a text string is provided, this message type updates the text in the
specified query text buffer.
Polling Data. If a text string is not provided, this message type will poll the specified query
text buffer and return the current data to the host.

Type S Polls the system for the machine status. The machine status is returned to the host in an eight-
character hexadecimal mask.

Type V Downloads data to the marking system or polls the system for information.
Downloading Data. If a text string is provided, this message type updates the variable text
in the specified field with the data received from the host message..
Polling Data. If a text string is not provided, this message type will poll the specified field
and return the current data to the host.

Type X Sets the current Pattern Serial Number to the integer value in the message data.

22 70686F
PROFINET® PNIO Option

MERLIN2H SOFTWARE

The Register numbers in the following tables are example


assignments and can change from system to system. The
registers are usually assigned by the PLC program when
the device is selected and added to the program.

PROFINET-IO Cyclic Input Data


Byte Register Purpose
1 256 Spare
2 257 Spare
3 258 Spare
4 259 Spare
5 260 Spare
6 261 Spare
7 262 Spare
8 263 Inputs (0-7)
.0 = READY 1st Marker
.1 = READY 2ND Marker
.2 = DONE 1ST Marker
.3 = DONE 2ND Marker
.4 = ONLINE
.5 = Reserved
.6 = Reserved
.7 = Reserved
9 264 SPARE
10 265 Reserved
11 266 Response Message ID
12 267 Response Message Type
13 268 Response Message ACK or NAK
14 … 269 … Response Message Data

PROFINET-IO Cyclic Output Data


Byte Register Purpose
1 256 Spare
2 257 Spare
3 258 Spare
4 259 Message ID (Used to trigger new message)
5 260 Message Type
6 261 Message Data

70686F 23
PROFINET® PNIO Option

Connecting to Merlin2H
For complete operating instructions, please refer to the Merlin 2H Operating Instructions. This on-screen
information is available via the software’s Help menu.

9. Ensure power to the computer is OFF.

10. The PNIO device (PN 76889) connects to the computer that will run the Merlin II LS software. Connect
as follows:
a. Locate adapter (PN 77992).
b. Connect the DB9S connector of the adapter to an available serial port on the computer.
c. Connect the USB cable from the adapter to an available USB port on the computer.
The USB port supplies power to the PNIO device.
d. Connect the PNIO device to the adapter.

11. Turn the computer ON and start the Merlin2H software.

12. Place the system in Supervisor mode.

13. From the Main Menu select Remote Menu, then check Remote Mode to enable.

14. Click on the Serial Port selection. Set the parameters as follows:
• Com Port Number: COMn
The Com Port Number can be COM1 through COM16. Check the computer device manager for
the correct COM number being used.
Note: if a USB to Serial converter is being used Com5 may be applicable .
• Baud: 19200
• Parity: NONE
• Data Bits: 8
• Stop Bits: 1

15. Click OK to save the settings.

24 70686F
PROFINET® PNIO Option

Merlin2H Message Types for Pass-Through Service


The following message types may be used with the Merlin2H software via NET232EX Protocol. Please refer to
the Merlin2H Operating Instructions for complete details on Extended Protocol Message Types.

Type 1 Downloads data to the marking system or polls the system for information.
Downloading Data. If a text string is provided, this message type overwrites the content of
the specified field with the data received from the host message. Note that if the field contains
message flags, they will be overwritten, not updated. Also Note the Marker number must be
entered.
Polling Data. If a text string is not provided, this message type will poll the specified field
and return the current data to the host.

Type E Stops the Print cycle.

Type F Can load a file from the fixed set using code number or poll the system for the file name by its
code number.

Type G Initiates a print cycle for Marker #1 or #2 .


Type L Message Type “L” allows the host to load objects (fields) from Marker 1 or Marker 2 from a
specified saved file and load them into either Marker 1 or Marker 2.

Where: the first m represents the Marker # to load objects from and the second m represents
the Marker # to load objects into and <string> is the path of the file (pattern).

Please note that the m’s are mandatory fields and the message “L” will be ignored if skipped.

Type O sets the machine Online mode.

Type P Downloads data to the marking system or polls the system for information.
Downloading Data. If a pattern name is provided, the system loads the specified pattern
and opens it. The system must be idle in order to load a pattern. Note also that if the
pattern resides in a location other than the default pattern directory, you must specify the full
file path name to identify the pattern you wish to open.
Polling Data. If a pattern name is not provided, this message type will poll the marking
system and return the name of the currently loaded pattern to the host.

Type Q Downloads data to the marking system or polls the system for information.
Downloading Data. If a text string is provided, this message type updates the text in the
specified query text buffer.
Polling Data. If a text string is not provided, this message type will poll the specified query
text buffer and return the current data to the host.

Type S sets the machine Offline mode.

Type V Downloads data to the Marker#1 or #2 or polls the system for information.
Downloading Data. If a text string is provided, this message type updates the variable text
in the specified field with the data received from the host message..
Polling Data. If a text string is not provided, this message type will poll the specified field
and return the current data to the host.

Type X Sets the current Pattern Serial Number to the integer value in the message data.

Type ? Type ? is used by the PNIO- Serial Device

70686F 25
PROFINET® PNIO Option

Using the PNIO Device in Your Projects


This example shows how you can use the PNIO device in your marking application projects.

The PNIO device will be added to the project and used as an interface between the Telesis marking system
controller and a Programmable Logic Controller (PLC) on the PROFINET.

For this example, Siemens TIA Portal Software (v.12)


was used to configure the connections.
The PLC has been assigned the IP address 192.168.0.1.
All other settings are defaults.

continued on next page…

26 70686F
PROFINET® PNIO Option

1. Select Options, then select Install general station description file.

2. Navigate to the folder containing GSDML-v2.3-GridConnect-Telesis-20140224.xml.

3. Enable (check) the box adjacent to the file name.

4. Click Install.

The Telesis PROFINET IO device should now be accessible.

5. In the Hardware Catalog, locate the appropriate marking system controller (e.g., Telesis TMC470).

continued on next page…

70686F 27
PROFINET® PNIO Option

6. Click and drag the controller to add it to the network.

7. Click on Not assigned and select device Telesis will communicate with.
(In this example, there is only one choice: PLC_1.)

continued on next page…

28 70686F
PROFINET® PNIO Option

8. Click DP-NORM to view and set properties for the device.

9. In this example, the IP address is set to 192.168.0.2.

10. Scroll down to view additional parameters.


a. Disable (uncheck) the box titled: Generate PROFINET device name automatically.
b. Set the PROFINET device name to: telesis-pnio-extprot

continued on next page…

70686F 29
PROFINET® PNIO Option

11. Save the Project.

12. Compile the Project.

13. Verify there are no errors.

14. Download the Project to the PLC.

15. To view or change the Input and Output starting addresses.


a. From the Project tree, open Devices & Networks.
b. Select the Device view tab.
c. From the drop-down menu, select Telesis-PNIO-Serial.

The Input and Output starting addresses can be viewed and changed in the Device Overview window.

30 70686F

You might also like