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. 70686G 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. © 2019 Telesis Technologies, Incorporated – All Rights Reserved 70686G 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 70686G 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 70686G iii PROFINET® PNIO Option This page intentionally left blank. iv 70686G 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 78012 77992 80800 PNIO-Serial Converter USB Flash Drive with software and Profinet Supplement Documentation (70686) DB9 Adapter RS232 to USB Converter Connection details: 70686G 1 PROFINET® PNIO Option Merlin ll LS & Merlin 2H systems 2 70686G PROFINET® PNIO Option Merlin ll LS & Merlin 2H Embedded systems 70686G 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: Message ID: 3-bytes (bits 0-23, many are reserved for future use) 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 70686G 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. 70686G 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 6 Byte 1 2 Register 256 257 3 258 4 5 6 7 8 9 259 260 261 262 263 264 10 11 12 13 14 … 265 266 267 268 269 … Purpose Error Status Spare 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. 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 Machine Status MSB (Not used in TMC470) Machine Status (Not used in TMC470) Machine Status (Not used in TMC470) Machine Status LSB (Not used in TMC470) Spare (8-15) (Reserved for future use) 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. Reserved Response Message ID Response Message Type Response Message ACK or NAK Response Message Data 70686G PROFINET® PNIO Option PROFINET-IO Cyclic Output Data Byte 1 2 Register 256 257 3 258 4 5 6 259 260 261 Purpose Spare (16-23) (Reserved for future use.) 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 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 Message ID (Used to trigger new message) Message Type Message Data 70686G 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. 5. From the Supervisor Main Screen, press F5 (SETUP). The system will display the Setup Menu. 6. Press F8 to toggle the PROPERTIES selection to SERIAL2 7. Press F4 (PROPERTIES) to access the Host2 Screen. 8. Disable (uncheck) the Serial Tool check box. 9. Set the communication parameters as follows: • • • • Baud: 19200 Parity: NONE Bits: 8 F1:FILE F2:EDIT F3:MACHINE F4:MARKER F5:SETUP SUPV –Offline– Pattern:SAMPLE_02 :002 F1:LEVEL F6:<SUPERVISOR> F2:QUERY TEXT *001:[TEXT: User Text: ] F3:DESIGN F7:<UNITS> 002:[TEXT: Fixed Text: ABCDE ] F4:PROPERTIES F8:<SERIAL2 > 003:[ ] F5:MANAGEMENT 004:[ ] 005:[ ] HOST 2: COMM SERIAL TOOL PROT F2 DEFAULTS 10. Press Page Down to select the PROT page. HOST: COMM 11. Set the Protocol to NET232EX. Protocol: PROT 8 70686G PROG <NET232EX> 12. Press F1 (SAVE) to save the settings. F1 SAVE ECHO Baud: <19200 > Parity: <NONE> Bits: <8> Stop Bits:<1> F1 SAVE Stop Bits: 1 PROG F2 DEFAULTS ECHO 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”. 70686G 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 1 2 3 4 Register 256 257 258 259 5 260 6 261 7 262 8 263 Purpose Error Status Spare (Not used in TMC520) Error Status MSB (Not used in TMC520) Error Status LSB (Not used in TMC520) Machine Status MSB .0 = .1 = .2 = .3 = .4 = .5 = .6 = .7 = Machine Status .0 = MACHINE PULSING .1 = .2 = .3 = .4 = .5 = .6 = .7 = 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 Machine Status LSB .0 = MACHINE ABORTED .1 = .2 = .3 = .4 = MACHINE ONLINE .5 = MACHINE HOMING .6 = MACHINE PRINTING .7 = MACHINE DRYRUN Spare (8-15) (Reserved for future use) continued on next page… 10 70686G PROFINET® PNIO Option PROFINET-IO Cyclic Input Data (continued) Byte 9 Register 264 10 11 12 13 14 … 265 266 267 268 269 … Purpose 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. Reserved Response Message ID Response Message Type Response Message ACK or NAK Response Message Data PROFINET-IO Cyclic Output Data Byte 1 2 Register 256 257 3 258 4 5 6 259 260 261 Purpose Spare (16-23) 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 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 Message ID (Used to trigger new message) Message Type Message Data 70686G 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: 8. 9. 12 • • Interface: COMn Protocol: NET232EX Select the COMn tab and edit its parameters as follows: • • • • Baud: 19200 Parity: NONE Data Bits: 8 Stop Bits: 1 When finished, select the OK button: 70686G 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 eightcharacter 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”. 70686G 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 1 2 3 4 Register 256 257 258 259 5 260 6 261 7 262 8 263 Purpose Error Status Spare (Not used in TMC600) Error Status MSB (Not used in TMC600) Error Status LSB (Not used in TMC600) Machine Status MSB .0 = .1 = .2 = .3 = .4 = .5 = .6 = .7 = Machine Status .0 = MACHINE PULSING .1 = .2 = .3 = .4 = .5 = .6 = .7 = 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 Machine Status LSB .0 = MACHINE ABORTED .1 = .2 = .3 = .4 = MACHINE ONLINE .5 = MACHINE HOMING .6 = MACHINE PRINTING .7 = MACHINE DRYRUN Spare (8-15) (Reserved for future use) continued on next page… 14 70686G PROFINET® PNIO Option PROFINET-IO Cyclic Input Data (continued) Byte 9 Register 264 10 11 12 13 14 … 265 266 267 268 269 … Purpose 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. Reserved Response Message ID Response Message Type Response Message ACK or NAK Response Message Data PROFINET-IO Cyclic Output Data Byte 1 2 Register 256 257 3 258 4 5 6 259 260 261 Purpose Spare (16-23) 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 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 Message ID (Used to trigger new message) Message Type Message Data 70686G 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 70686G 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 eightcharacter 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”. 70686G 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 Offset Purpose 0 Error Status Spare 1 Error Status MSB 2 Error Status LSB 3 Machine Status .0 = MACHINE .1 = MACHINE .2 = MACHINE .3 = .4 = .5 = .6 = .7 = 4 Machine Status .0 = MACHINE .1 = MACHINE .2 = MACHINE .3 = MACHINE .4 = MACHINE .5 = MACHINE .6 = MACHINE .7 = MACHINE PREVIEW PREPOSITION INPUT SERIAL TOOL SELECTED PULSE FLY FLY TRIGGER Machine Status .0 = MACHINE .1 = MACHINE .2 = MACHINE .3 = MACHINE .4 = MACHINE .5 = MACHINE .6 = MACHINE .7 = MACHINE TARGET HOMING PRINTING DRYRUN PAUSED PARKING BATCH REPEAT 5 18 MSB FLY AUTO GO FLY TRIGGER LASER AXIS RESET 6 Machine Status .0 = MACHINE ABORTED .1 = .2 = .3 = .4 =MACHINE ONLINE .5 = .6 = .7 = 7 Spare (8-15) 70686G PROFINET® PNIO Option Byte Offset Purpose 8 Inputs (0-7) .0 = READY .1 = DONE .2 = PAUSED .3 = SPARE 1 .4 = SPARE 2 .5 = SPARE 3 .6 = Reserved .7 = Reserved 9 Reserved 10 Response Message ID 11 Response Message Type 12 Response Message ACK (Decimal value 6) or NAK (Decimal value 21) 13 … Response Message Data PROFINET-IO Cyclic Output Data Byte Offset Purpose 0 Spare (16-23) 1 Outputs MSB (8-15) .0 = Reserved .1 = Reserved .2 = Reserved .3 = Reserved .4 = Reserved .5 = Reserved .6 = Reserved .7 = Reserved 2 Outputs LSB (0-7) .0 = GO .1 = ABORT .2 = SELECT 0 .3 = SELECT 1 .4 = SELECT 3 .5 = SELECT 4/ONLINE .6 = Reserved .7 = Reserved 3 Message ID 4 Message Type 5 Message Data 70686G 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: Computers with RS232 connector: See diagrams on pages 1-3. 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 (#77992). Systems with no RS232 Connection: : See diagrams on pages 1-3. a. Locate adapter (PN 77992). b. Connect the DB9S connector to Converter (#80820). c. Connect the USB cables from the adapter and the converter to an available USB ports on the computer or embedded controller. 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: 7. 8. 20 • • Interface: COMn Protocol: NET232EX Click on the Port tab. Set the parameters as follows: • • • • Baud: 19200 Parity: NONE Data Bits: 8 Stop Bits: 1 Click OK to save the settings. 70686G 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. Message Type Description 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 polls the system for the current Offset Angle setting for the primary scan head and returns 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 polls the system for the current Offset Angle for the secondary scan head and returns the current value to the host. Type C Machine Connection Status Type E Places the marking system Offline with the option of displaying an error message. Type e Displays a message provided in the data section if the system is idle – Does not take the system offline Type F Updates the Focus offset parameter for the Laser head. 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 polls the system for the current Offset X/Y setting for the primary scan head and returns 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 polls the system for the current Offset Angle for the secondary scan head and returns 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 K Parks the Marking System. The Machine must be Online Type L Get laser description 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 can be used to recover from a power outage when the marker is unattended. 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 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 polls the marking system and returns 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 polls the specified query text buffer and returns the current data 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 S Polls the system for the machine status. The machine status is returned to the host in an eight-character hexadecimal mask. 70686G 21 PROFINET® PNIO Option 22 Message Type Description 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 polls the specified field and returns the current data to the host. Type X Sets the current Pattern Serial Number to the integer value in the message data. Type 1 Note: Message type one is not recommended for use. Please use message type V when possible. If message type 1 is needed please contact your Telesis representative. 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 polls the specified field and returns the current data to the host. 70686G 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 1 2 3 4 5 6 7 8 Register 256 257 258 259 260 261 262 263 9 10 11 12 13 14 … 264 265 266 267 268 269 … Purpose Spare Spare Spare Spare Spare Spare Spare 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 SPARE Reserved Response Message ID Response Message Type Response Message ACK or NAK Response Message Data PROFINET-IO Cyclic Output Data Byte 1 2 3 4 5 6 Register 256 257 258 259 260 261 Purpose Spare Spare Spare Message ID (Used to trigger new message) Message Type Message Data 70686G 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 70686G 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 70686G 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 70686G 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… 70686G 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 70686G 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… 70686G 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 70686G