Home

1782-JDCE Revision 6 DeviceNet Serial Gateway User`s Manual

image

Contents

1. 42 TABLE B 12 RECEIVE RECORD OBJECT INSTANCE 43 TABLE 1 WRC REPLACEMENTS SPARE PARTS AND OTHER 46 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 1 Overview The 1782 JDCE is a family of DeviceNet to serial link communications gateways that provide a flexible DeviceNet interface to a wide variety of ASCII devices The JDCE allows the user to easily and conveniently connect and integrate peripheral products with either RS232 or RS485 serial ports into a DeviceNet system The JDCE does not interpret the data being transmitted across it and so the transferred messages may contain data of any nature or definition This allows you to use the same device for a many different DeviceNet serial interface applications Using the JDCE you may communicate with the connected peripheral devices in the same fashion as the other DeviceNet products in the system Data may be read written using either I O polling or explicit messaging Typically real time data is read and written as I O by the DeviceNet Master via Polled I O and parameters are read and written with the Explicit Messaging technique Revision 6 also allows you to read write serial data via explicit messages The 1782 JDCE is defined as a Communications Adapter device on the DeviceNet system It has a 3 pin plug connector for connection to a RS232 or R
2. 127 0 255 Default P ins Data Setting Value Type USINT USINT USINT USINT Disabled USINT NULL 0 USINT 43 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 Maximum number Max of characters the Receive 7 Get set 20 20 USINT Characters receive into its I O port from the serial device Character which identifies the Starting beginning of the Character Get Set data string from the Any erT a Dy USINT Delimiter I O device when the 0 127 0 255 length is specified as 0 Character which Ending identifies the end of the data string from Any valid standard Carriage So eset the I O device when character return Di USINT the length is 0 127 0 255 specified as 0 Selects whether or No Delimiter not the beginning 0 No Delimiter a Mode 10 delimiter is included 1 Exclude Delimiter Delimite USINT in the data string 2 Include Delimiter Include Selects whether or not the end delimiter 0 No Delimiter Exclude 11 Get Set is included in the 4 Exclude Delimiter Include 2 USINT Delimiter data string 2 Include Delimiter If enabled the 0 Disabled position of the bytes 1 16 bit Swap Byte Swap in the serial Enabled Mode 12 Get Set messages will be 2 24 bit Swap Disabled USINT swapped every 2 or Enabled 4 bytes 3 32 bit Swap i Enabled 1 0 Set New Data Defines if the Status Bit and wait for received stri
3. see below The JDCE baud rate is set to Autobaud operation at the factory No baud rate setting is required Make sure that there is power on the DeviceNet network and plug the cable into the 1782 JDCE The 1782 JDCE will undergo its initialization sequence flashing both LED s red and green After approximately 5 seconds the Module Status LED labeled MS will flash green Network Status LED labeled NS will remain off This condition occurs while the JDCE is attempting to synchronize to the network baudrate The Module Status LED MS will go on solid after the Device successfully determines the network baudrate This requires devices on the network attempting to communicate with each other The Network Status LED labeled NS will begin to flash green If it turns solid red check for a duplicate MaclD on the network It will remain off until the JDCE receives a valid DeviceNet message from which it will set its baud rate Once the Master recognizes the unit on the link and allocates the connection initiates communications The Network Status LED will be solid green The device is now being actively scanned The 1782 JDCE is now operating on the network Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 2 2 Default Settings The following list shows the default set up for all the parameters Serial Port Serial Character Framing Serial Port Comm Speed Serial Port
4. 2 3 0 Status Byte Description i i ei artirina ESBE pee TBE a ERER E SRE EEr anaE RETE ni 25 5 4 TRANSMITTING SERIAL DATA TO THE ASCII 1 4148880000001000000000000000 26 SULI Overview rd tva oet 26 5 4 2 Setting up the Transmit Character Buffer Length eese eene nnne nennen 26 5 4 5 Setting Up and Using the Transmit Delimiter eese eene 26 5 4 4 Setting up and Using the TX Byte Swap 26 5 4 5 Transmitting from the Master to the JDCE sss ene nennen eene 27 2 4 61 Transmit String D t Typen nee en E ER D E ERR ep ode sted 27 5 4 7 Record Header vs Data Only Mode eese eene teen nennen eene eene erret enne 27 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 5 4 8 Transmitting Serial Data Denen sine ss IHR 28 153 3 Consume Assemblies estesa etie d da te eder iced ein 28 5 4 0 Setting Up the Scanner I O Transmit Size esee nennen trennen eene 29 5 4 10 Master Slave Handshake vs Immediate Mode esee eene tenente tnter en 29 5 4 11 Explicit Messages to Transmit Serial Data String sese eene nenne 30 5 5 SETTING UP DEVICENET 8 2 2 442 2002000 enne erre
5. 3 This is where most configuration tools will look to change the baudrate 2 Because autobaud is not supported by the standard DeviceNet Object the JDCE provides a parameter to allow the autobaud selection These values can be set and retrieved by using the standard Set and Get services 32 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 A Theory of Operation A 1 The Transmit Record Algorithm A 1 1 Basic Theory of operation The Transmit record object addresses several issues of utilizing a DeviceNet network device in the process of communicating via a serial data stream The device takes a block of data passed by the and transmits this data out over the DeviceNet link This data can be protected via a record counter for allowing a DeviceNet I O connection to allow a device to control the transmission of this data from the JDCE by changing it The data flow and algorithm are shown below for reference Serial Delimit Data Switch Transmit Data Parser Record Enabled Figure A 1 Transmit Record Algorithm Functional Flowchart As Diagramed above the serial data is set and then parsed if the serial data length is set to zero The serial data parse then sets the length on the serial data If Record is disabled the data is immediately added to the serial port s transmit queue Also whenever the record number is changed the serial transmit data is sent to the serial port object The delimit parse d
6. configuration tool that supports them They provide a graphical interface to the device s parameters and allow the addition of helpful text descriptions in setting up your device The current EDS file is available on our website www wrcakron com If your configuration tool does not support the EDS device profiles the set up of a DeviceNet device requires a little more understanding of DeviceNet and its operation This section is designed to fully describe the features of the 1782 JDCE and to help you set them up If you have problems setting up this or any other WRC device we are available to help you We can be reached via phone at 330 733 6662 or via the Internet at support wrcakron com The Parameters are defined in this section 5 1 Device Parameters The JDCE is configured using the Parameter Object Class 15 OF rex as defined in Table 5 1 17 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 Table 5 1 Configuration Parameter List Parameter Access Description Parameter Choices Dot Dow Data Instance Setting Value Type Serial Port Parameters Defines the number of D Serial data bits stop bits and m 2 Character Get Set _ 7N2 parity in data character D Framing frames Serial Port Defines the baud rate of Comm Speed the serial port 4 19 9600 baud Maximum number of Max Number characters the 1782 of Receive Get Set JDCE expects to receive 20 char
7. defined in the parameter object 2 Length Number of bytes to transmit O indicates String or Short String transmit delimited mode in which the device transmits up to and including the transmit delimiter character defined in the parameter object 2 Char ASCII Character 3 2 Chr ASCII Character 4 e ASCII Character AM ERN IRA ECCO CU include End Delimiter 4 7 ERI 7 Any Undefined last char in this record transmitted to Master 38 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 B 3 Identity Object Class 1 Instances 0 and 1 exist in the 1782 JDCE Table B 4 Identity Object Class Attributes Instance 0 Attribute Access DeviceNet ME 10 Rule Name Data Type Description of Attribute Value 1 UINT Revision of this object 1 2 Get Max Object UINT Maximum instance number of an 1 Instance object currently Max Class Attribute ID number of the last class 6 Get Attribute ID UINT attribute of the class definition 7 implemented in the device Max Instance Attribute ID number of the last 7 Get Attributes ID UINT instance attribute of the class 1 definition implemented in the device Table B 5 Identity Object Instance Attributes Instance 1 Attribute Access DeviceNet A 3 ID Rule Name Data Type Description of Attribute Value 1 Get Vendor UINT ODVA Vendor Number for this 9 WRC produc
8. e edere tuti Des ORE ce edere ree tette che de die dg 4 TABEE 122 PART NUMBERS si eter eet doeet BER aee ue o cepe Ee ee oreet Poe ne de ee e le quete 6 TABLE 2 1 DEFAULT RECEIVE DATA ASSEMBLY 8 9 TABLE 2 2 DEFAULT TRANSMIT DATA ASSEMBLY 10 TABLE 4 1 MODULE STATUS LED LABELED MS 1 1 enne entente nnn entere seen res enters rennen nena 14 TABLE 4 2 NETWORK STATUS LED LABELED 85 00 2 2 2 2 221 60000000000000000000000000000000000 0 14 TABLE 4 3 RS232 RS485 CONNECTOR 5 8 2 ttrt tE tEEEEEEEEEEEEEEEEEEEEEEEEEEEEE EEEE EEEE EEE 15 TABLE 4 4 MAXIMUM NETWORK CABLE LENGTHS 2 15 TABLE 9 1 CONFIGURATION PARAMETER LIST erre e EE Sees e NEN 18 TABLE 5 2 SERIAL FRAMING 21 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 TABLE 523 SERIAL BAUD RATES uia ace tnter a e A E TRACER ses PT E CO A ensure 21 TABI SA SERIAL STATUS BYTE eee ai tede i rre 25 TABLE 5 5 CONSUME ASSEMBLY ARRAY TYPE 5 11 28 TABLE 5 6 CONSUME ASSEMBLY SHORT STRING TYPE NO HANDSHAKING ccccesssssececececeensaeceeececsesssseceeeeeeeeneas 28 TABLE 5 7 CONSUME ASSEM
9. instance number of 9 Instance the Parameter object 9 Parameter supports parameter 8 Get class WORD Bits that describe parameters instances params are descriptor stored in non volatile memory Table B 8 Parameter Instance Attributes Instances 1 7 AUD Fee DeviceNet Data Type Description of Attribute Value data ipe specified in Actual value of parameter It can ype Sp be read from or written to This Descriptor Data Type EET and Data Size attribute is read only if bit 4 of FS Attribute 4 is TRUE 2 Set Link Path USINT Size of link path If this is 0 then Number Size no link is specified of bytes DeviceNet path to the object from 3 Set Link Path ARRAY eee where this parameter s value is pan retrieved 4 WORD Description of parameter 5 Data Type USINT Data type code 6 Get Data Size USINT Number of bytes in Parameter Value Parameter Value Table B 9 Parameter Common Services Service ee Code Class Instance Service Name Description of Service Resets all parameters to out Returns the contents of the 10 hex Set_Attribute EET Modifies an attribute value 40 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 B 5 Serial Port Object 0x70 Table B 10 Serial Port Object Instance Attributes Parameter EE Access Description Parameter Choices Instance Setting Value T
10. the record number of the data string in Parameter 14 if the Header option is selected 5 3 9 Status Byte Description The Serial Status byte is an OR d bitfield of a number of status and exceptions Bits 0 2 are defined Table 5 4 Serial Status Byte Bit Exception TX I O Overflow Rx I O Overflow Rx Parity Error Handshake Error New Data Flag e TXI O Overflow The transmit queue has overflowed resulting in a loss of data The transmit I O is full of data waiting to be transmitted Some of the data added has been lost When space becomes available in the TX I O this bit will be reset e RxI O Overflow The receive queue has overflowed resulting in loss of data The receive I O is full of data waiting to be processed The data has been lost When space becomes available in the RX I O this bit will be reset e Handshake Error This error will occur only in Master Slave Handshake Mode It indicates that the Master has requested a new data record from the JDCE but the JDCE has not indicated new data is available to be sent e New Data This bit is used only when the Master Slave Handshake option is active When the JDCE receives a new data string into its serial port it sets this flag in its DeviceNet response message The bit will remain set for 2 produce messages after the Master requests the new data It then will be reset 25 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6
11. 04 5 4 Transmitting Serial Data to the ASCII Device 5 4 1 Overview The JDCE transmits a number of characters from the DeviceNet Master to your serial device via e Poll I O e Explicit Message The received character string is transmitted when specific number of bytes defined Transmit Character Buffer Length is received or e the defined End of String Terminator character is detected When either of these events occurs the JDCE stores the DeviceNet string data into its internal buffer and will then transmit it out its serial port In order to transmit data to your serial device the data must first be sent to the JDCE and then the JDCE must send the data to the serial device The options for transmitting from the Master to the JDCE are discussed first 5 4 2 Setting up the Transmit Character Buffer Length The Transmit character buffer length is the number of characters that the JDCE can receive in its transmit buffer from the DeviceNet system This size contributes to the I O s Consume Size This size can be found in the Parameter object 5 4 3 Setting Up and Using the Transmit Delimiter The transmit delimiter is an end of string character which is used by the JDCE to determine how many bytes to transmit over the serial link to your JDCE device This Transmit Delimiter will be used if the Transmit Buffer Length equals 0 If the buffer length is not 0 the JDCE will ignore the transmit delimiter The JDCE will transmit up
12. 15 Fhex Serial Port 112 70hex Serial Transmit 113 7155 Serial Receive 114 72hex of Instances 1 1 1 3 Explicit Msg Polled I O COS Cyclic 28 1 1 1 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 B 2 Serial I O Polled Data Formats Table B 2 Poll Produce Data ASCII Receive String Byte Characte Description When Used r 0 Transaction ID Integer value 0 255 Header Mode 0 Initialized State 1 Status Header Mode 2 Length With String or Short_String 3 Length With String 4 Delimiter Include Start Delimiter 4 1 Char 5 27 Char ee ee _ er e LastChar Terminator Include End Delimiter is less than Max Receive Chars value is less than Max Receive Chars value Max Rec Any Pad character present if characters received Pad Mode Char 2 is less than Max Receive Chars value 37 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 Table B 3 Poll Consume Data ASCII Transmit String Byte Characte Description When Used r New Data Integer value changed to indicate to send new Master Slave Handshake Mode Record data Number 0 Transaction ID Integer value 0 255 Header Mode 0 Initialized State 1 Length Number of bytes to transmit O indicates String or Short String transmit delimited mode in which the device transmits up to and including the transmit delimiter character
13. 1782 Revision 6 DeviceNet Serial Gateway User s Manual finc Western Reserve Controls Inc Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 Although every effort has been made to insure the accuracy of this document all information is subject to change without notice Western Reserve Controls Inc assumes no liability for any errors or omissions in this document or for direct indirect incidental or consequential damage resulting from the use of this document Document 25 0 Rev 6 04 July 2003 Copyright 2000 2002 WRC Western Reserve Controls Inc 1485 Exeter Road Akron OH 44306 330 733 6662 Phone 330 733 6663 FAX sales wrcakron com Email http Awww wrcakron com Web WRC is a trademark of Western Reserve Controls Inc DeviceNet is a trademark of the Open DeviceNet Vendor Association All other trademarks are property of their respective companies Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 TABLE OF CONTENTS 1 OVERVIEW cisscicssvcvests E R 1 1 1 FEATURES tete NE T tanien dene dae due ie edite 2 1 2 REVISION 6 ENHANCEMENTS irn Eee vae deep ga ave 3 1 3 TYXPICAE APPLEIGATIONS b 3 1 4 BASIE nisse innen ein 4 1 5 MAJOR OPTION SELEC
14. 5 5 ST 5 08 AU equivalent included Status Indicators Module Status green red bi color LED Network Status green red bi color LED Serial port Baud rate 1200 2400 4800 9600 19 2k 38 4k baud software selectable Parity Odd even none software selectable Data bits 7 or 8 software selectable Cable Connection JDCE 3 pin pluggable header male Phoenix Contact MSTBA 2 5 3 G 5 08 AU or equivalent 11 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 Network Isolation Max Power Mounting Size Operating Temp Humidity Serial Cable 3 contact plug female contacts Phoenix Contact 2 5 3 ST 5 08 AU equivalent included Status Indicators Transmit Active green LED Receive Active green LED 2500V optional models JDCE 3 or JDCE 4 only 1 75 watts 160 mA 11 Vdc 70 mA 25 Vdc unregulated power supply DIN rail mount EN 50022 Depth 3 54 90 mm Width 0 98 25 mm Height 3 11 79 mm 0 70 C 0 95 RH non condensing 12 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 4 Hardware Installation and Set Up 4 1 Overview The JDCE is mounted on an EN50022 DIN rail The JDCE contains two LED s to indicate the status of the device and the status of the network The device can be connected to the main DeviceNet trunk line or to a drop line via a 5 pin female plug style con
15. ARAMETER OBJECT CLASS FHEX 15 40 B 5 SERIAL PORT OBJECT 0X70 etie cre all 41 B 6 TRANSMIT RECORD OBJECT CLASS 113 0 71 1 1 2 0020000000000000000000000000000555000 42 B 7 RECEIVE RECORD OBJECT CLASS 114 0 72 1 1 2 2 0 1700044000000000000000000000000008500005 43 B 8 COMMON DEVIGENET SERVICES nen alien th n ne i nt ip en b tee 45 A ACCESSORIES AND OTHER WRC PRODUCTS 2u 00020002002000200000020002000200000000000 000020000000 000000 0000000000000 en 46 TABLE OF FIGURES FIGURE 1 1 1702 1 FIGURE 4 1 1782 JDCE OUTLINE DRAWING 13 FIGURE 4 2 DEVICENET CABLE 16 FIGURE 5 1 RECEIVE ARRAY DATA EEEE EErEE 24 FIGURE 5 2 RECEIVE SHORT STRING DATA e nsesesese sensns sese se sess e ese ese etes esee eterne 24 FIGURE 5 3 RECEIVE STRING DATA 24 FIGURE 1 TRANSMIT RECORD ALGORITHM FUNCTIONAL 33 FIGURE 2 RECEIVE RECORD ALGORITHM FUNCTIONAL FLOWCHART 34 LIST OF TABLES FABLE 121 T O MESSAGE TYPES eh 222 2 I ERE reete ee ERU
16. BLY STRING TYPE NO 5 0 10001001 29 TABLE 5 8 CONSUME ASSEMBLY ARRAY TYPE WITH 29 TABLE 5 9 CONSUME ASSEMBLY SHORT STRING TYPE WITH HANDSHAKING 29 TABLE 5 10 CONSUME ASSEMBLY STRING TYPE WITH 5 2 0 30 1 OBJECTS m pionero aane anat ario ni ED E 36 TABLE B 2 POLL PRODUCE DATA ASCII RECEIVE STRING 37 TABLE B 3 POLL CONSUME DATA ASCII TRANSMIT STRING c cccessesceceessececsescececeneecsesaececseceeeeesneeeesesaeeecseeeeenens 38 TABLE B 4 IDENTITY OBJECT CLASS ATTRIBUTES INSTANCE 39 TABLE B 5 IDENTITY OBJECT INSTANCE ATTRIBUTES INSTANCE 1 39 TABLE B 6 IDENTITY OBJECT COMMON SERVICES 2 10020 0020000 60000000000000000000000000 00 39 TABLE B 7 PARAMETER CLASS ATTRIBUTES INSTANCE 40 TABLE B 8 PARAMETER INSTANCE ATTRIBUTES INSTANCES 1 7 40 TABLE B 9 PARAMETER COMMON SERVICES sssssssseseceesessaececececsesseaeeeeececeesnsaeceeececsessaaeeesececeessaaeceeececeeseaeeesececeeneas 40 TABLE B 10 SERIAL PORT OBJECT INSTANCE ATTRIBUTES 41 TABLE B 11 TRANSMIT RECORD OBJECT INSTANCE ATTRIBUTES
17. N uo 14 42 1 DeviceNet LEDs mp ani a DPI ID e 14 4 2 2 Seral PoTEEEDS 2 2 2 ARE a RE Rev e dip E RD eti dp D GE ENT 14 4 3 SERIAL PORT CONNECTOR ices arcet ecce tt to dide o ncn d 14 4 4 DEVICENET CONFIGURATION eit ei eco cde tre Ee 15 4AL Network Ternunationsixa s a a 16 4 4 2 DeviceNet Connection Wiring eiii eiecit teh eei epe eerte th b Pedro ro etae dete 16 5 SOFTWARE CONFIGURATION AND SET UP 0 220000000000000000200000000020000000000000 sesto setas setas eese seen aee 17 5 1 DEVICE PARAMETERS aie ds 17 5 2 SETTING UP THE SERIAL EINK ato ter een ameta name 21 5 3 RECEIVING SERIAL DATA FROM THE ASCII 21 3 94 OVeviewaa anne ev he RNR Elie ERR ENE hess 21 5 3 2 Setting up the Receive Character Buffer Length 21 5 3 3 Setting up and Using Pad Mode niensis iaie itineris rinier tnen nennen etre nennen enne enne trennen 22 5 3 4 Setting Up and Using the Swap Bytes 23 5 3 5 Setting Up and Using Delimiter Operation eese eene ethernet rennen ener 23 3 3 6 Receive String Data Type i isa E RU E UHR YET HH 24 5 3 7 Setting Up the Scanner I O Receive Size esses ennt nennen eene 24 5 3 8 Explicit Messages to Receive the Serial Data String eese eerte 24
18. Net Master If either delimiter is used you also can elect whether or not to include those characters in the string 23 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 sent to the Master 5 3 6 Receive String Data Type This is the format of the data array short_string or string you will send to the DeviceNet Master These are shown below Which one you pick depends on your application and will modify the format of the data field This is the format of the data you will send to the JDCE array short_string or string These are shown below Which one you pick depends on your application and will modify the format of the data field The Array data type does not have a length associated with it It is equivalent to specifying a length of zero using a string or short string data type The Short_String data type is the default data type of the device This will suffice for most applications The Short_String data type has only one byte of length and the rest of the data bytes are appended after the length The String data type has two bytes of length The String data type is useful in talking to some PLC s or other devices that have a data file specifically made to handle this data type The length is little endian low byte high byte and the high order byte should always be set to zero The JDCE will only receive up to 50 bytes of information so the extra byte although required for this data t
19. Receive from ASCH Device Max Number of Receive Chars Receive Record Start Mode Receive Start Delimiter Receive Record End Mode Receive End Delimiter Gateway Send Produce on DeviceNet to Master Receive String Data Type Pad Mode Pad Character Receive Swap Mode DeviceNet Handshake Mode Gateway Produce Assembly Size Serial Data Actual Received Data Size Receive Record Number Serial Port Transmit to ASCII Device Max Number of Transmit Chars Transmit End Delimiter Mode Transmit End Delimiter Character Gateway Receive Consume on DeviceNet from Master Transmit String Data Type Transmit Swap Mode Record Header Mode Gateway Consume Assembly Size Explicit Messages from EDS Editor Actual Serial Data String to Send to ASCII Device Transmit Serial Data Size Transmit Record Number Default Operation 7N2 9600 baud Default Operation 20 Not enabled Colon Enabled and include with data string Carriage return Default Operation Short string data with preceding 1 byte length Off null character 0 Off Off 23 bytes 0 0 Default Operation 20 Include delimiter with Include Carriage return Short String data with 1 preceding length byte Off Active record header bytes precede data string 22 bytes Default Operation 0 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 2 3 2 4 Status 0 no errors DeviceNet Set up Default Operation DeviceNet Baud Rate Autob
20. S485 interface port on your device and a 5 pin pluggable DeviceNet connector for connections to the DeviceNet network The device does baud rate selection automatically when it is powered up on a network The 1782 JDCE has one assigned DeviceNet address which is set by a 6 position DIPswitch on the unit Other JDCE parameters are software configurable Each 1782 JDCE has 2 standard green red DeviceNet LED s for module status and network status and two green LED s to indicate RS485 232 transmit and receive activity The RS232 version may be used for point to point connection to a single serial device The RS485 version may be connected in a point to point fashion to a single device or to multiple devices in the standard RS485 convention aM n a P E paT a ox Figure 1 1 1782 JDCE Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 1 1 Features The 1782 JDCE has the following features Translates messages and data between DeviceNet and a serial peripheral device ODVA Group 2 Only Slave ODVA Conformance tested to DeviceNet Spec 2 0 Defined as a DeviceNet Communications Device Profile 12 Chex Autobaud operation Messaging of Serial Data e Poll e COS e Cyclic Explicit Messaging e Serial data e Configuration data Pad mode option Byte swapping option Transaction header or data only mode option Master Slave handshake option Software Configurable Parameters for serial port
21. String Type No Handshaking Byte 1 Byte 2 Bytes 3 X X lt 51 as Transaction ID lt CR gt Byte Length ASCII Data Terminator 28 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 Table 5 7 Consume Assembly String Type No Handshaking Byte 1 Byte 2 Byte 3 Bytes 4 X lt 52 a d E Transaction ID CR Byte Length MSB Length LSB Asch Data Terminator 5 4 9 Setting Up the Scanner I O Transmit Size The JDCE automatically calculates the number of bytes it will receive from the DeviceNet Master Its value is determined by a combination of the incoming data and the options you have selected Parameter 23 defines the size of the DeviceNet message to be sent to the JDCE from the Master and should be set as the Tx size in your Scanner s I O set up Important You must set your scanner s Tx transmit value to this number of bytes 5 4 10 Master Slave Handshake vs Immediate Mode If DeviceNet Master Slave Handshake Mode is selected the DeviceNet Master can inhibit the JDCE from sending new ASCII data until the Master is ready to receive and process the new data This option is available only if the Header option is also selected and it is used only with a Poll I O or Explicit Message In this mode there two data required for the complete transaction e A New Data Available Flag is set by the JDCE in the status byte
22. TIONS 2a kin pus apcvaves ERR REINES EE ERE CREER 5 1 5 2 Header vs Data Only Option eade gu ge cess eee 5 1 53 Master Slave Handshake vs Immediate Option eee eese eee trennen nennen enne ener 5 L4 Padvws NoPad Option eese ee e rei de prr cuca E ERE SERE RR Rear dea Fate Hed 5 1 6 PRODUCT VERSION AND EDS re Ruten une Pee veo exu su pee v E RUNE E tees 5 1 7 ORDERING INFORMATIONS csc eee eciebise eret messen PUE XS EARN FREU EC ERE AE EVE S ENNS 6 2 QUICK START eso C EESO ENE SE 7 2 1 HOW TO INSTALL AND ESTABLISH DEVICENET 8 7 2 2 DEFAULT SETTINGS needed bank Oo ces EN EU ed eH UR ee er qu E E ME 8 2 3 HOW TO INSTALL A SERIAL NETWORK ccccccessessscecececeesesececececseneseaecececeesesuaceceeececsesusaecececeesesaeeeesesenensaaeees 9 2 4 How TO READ SERIAL DEVICE INPUT DATA FROM THE 9 2 5 How TO WRITE SERIAL OUTPUT DATA TO THE JDCE ccccccccccecesssssscecececeessueeeccecsesnsueeecececsessaeseeececeeneaeee 10 3 GENERAL SPECIFICATIQONS snsdevenessoaxencnsesbenessnsceacedeosdsssvescncessesassnceensecsenscsepeessents 11 4 HARDWARE INSTALLATION AND SET UP 2000000000000000002000020000000020000200n0000000000000000000 0000000000000 13 4 1 OVERVIEW E 13 4 2 ISEB OPERATIO
23. Termination A DeviceNet system must be terminated at each end of the trunk line The host controller and the last JDCE or other DeviceNet device on the network must always be terminated to eliminate reflections even if only two nodes are present The DeviceNet specifications for the terminating resistor are e 121 ohm e 1 metal film e 1 4 Watt An appropriate terminating resistor WRC part number RM121DN may be purchased from WRC IMPORTANT Per the DeviceNet spec do not terminate devices on drop lines NOTE If you feel you are having DeviceNet communications errors check your network terminations With power removed from the network measure the dc resistance with an ohmmeter It should measure 600 If it measures 1210 add another 1210 terminating resistor If it measures 40Q then you have 3 terminators and must remove one 4 4 2 DeviceNet Connection Wiring The JDCE uses a 5 pin plug style DeviceNet connector which has male pins Network Connector Female Contacts 5 V red 4 CAN white 3 drain bare 2 CANL blue j 29 8 Bw il 0000909 Device Connector Male Contacts Figure 4 2 DeviceNet cable connector 16 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 5 SOFTWARE Configuration and Set Up The 1782 JDCE x is an easy device to set up and configure Using features like the EDS sheets for configuration can expedite the process if you use a network
24. This informs the Master that the JDCE has received a new data string and is waiting for the OK to send it See Table 5 4 e An additional Ready for New Data byte is pre pended to the message the Master sends to the JDCE The JDCE s Consume Object This New Data byte is used to indicate to the JDCE that the Master is ready to receive the new data The JDCE s Produce Object does not change format Table 5 8 Consume Assembly Array Type With Handshaking Byte 1 Byte 2 Bytes 3 X X lt 51 ae gt New Data Transaction ID lt CR gt Record Byte Byte Terminator Table 5 9 Consume Assembly Short_String Type With Handshaking Byte 1 Byte 2 Byte 3 Bytes 4 X X lt 52 2 220 New Data Transaction ID lt CR gt Record Byte Byte Lengi Bye Terminator 29 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 Table 5 10 Consume Assembly String Type With Handshaking Byte 1 Byte 2 Byte 3 Byte 4 Bytes 5 X X lt 53 ae 2 New Data Transaction Length Length CR Record Byte ID Byte MSB LSB Terminator The Master monitors this new data flag and when the Master is ready to receive new serial data it sets a new number in the new record number byte of the next poll command message Note that this applies only to data being sent from the JDCE to the Master The operation proceeds a
25. Transmit Serial Data Length Transmit The record number of Record 26 Get Set the current transmit data USINT Number buffer The Combined status 1 TX FIFO Overflow byte for the Serial Port 2 Rx FIFO Overflow Status 27 Get Object The Receive 4 Rx Parity Error No Status Record objet and He 64 Handshake Error Transmit Record object 128 New Data Flag DeviceNet Set up SHORT _STRIN USINT USINT 0 125 Kilobaud 122 28 Get Set DeviceNet Baud Rate 1 250 Kilobaud D aud Rate 2 500 Kilobaud en 3 Automatic Detection Automatic 3 USINT 20 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 5 2 Setting Up the Serial Link Parameters 1 and 2 allow you to define the serial link communications options Table 5 2 Serial Framing Formats Value Baud Rate 7N2 7E1 7E2 701 702 8N1 8N2 8E1 801 9600 1200 2400 4800 19200 38400 5 3 Receiving Serial Data from the ASCII Device 5 3 1 Overview The JDCE receives a number of characters and transmits these to the DeviceNet Master via e l O poll COS Cyclic e Explicit Message The received character string is captured when e the specific number of bytes defined Receive Character Buffer Length is received or e the defined End of String Terminator character is detected When either of these events occur the JDCE stores the received message strin
26. aud How to Install a Serial Network The communication between your serial device s and the 1782 JDCE is an RS232 3 wire or RS 485 2 wire differential network Connect an appropriate cable to your device In an RS485 network make sure at least one point on the link is grounded Connect the other end of the cable to the JDCE using the 3 point terminal plug provided Note the terminal markings on the JDCE case See Figure 4 1 Turn on power to the serial device and the JDCE Set up the ASCII buffer sizes on the JDCE The defaults are 20 and 20 If more than 20 bytes are required for the transmit or receive buffers set the appropriate parameters in your configuration file to the buffer size you need for your ASCII data NOTE This will modify the IO message size You will need to reconfigure the poll C O S cyclic transmit and receive data sizes if you modify the ASCII buffer size from the default value In many configuration tools this will unmap the data in your scanner s scan table They must be remapped in order to be able to process the data in your PLC or PC software These values are displayed in the Parameter Object Class 15 Fhex How to Read Serial Device Input Data from the JDCE Connect to the JDCE from your configuration tool Connect the serial side of the JDCE to your computer s serial port or another serial device Go to the device configuration screen in the configuration tool Make sure that the JDCE is in the default
27. data The data is always little endian low byte precedes high order byte and the others are all one byte in length on the JDCE Note that the get service has no data The get service gets data from an attribute of a class or class instance The service number of this request is 14 Enex The class instance and attribute are all defined by which variable you want to get The response from a get command takes on the form service value The value will be little endian and can be of variable length and bounds based on the definition of the attribute The service will be reported as the get service with the highest bit set to indicate a response The set service sets data from an attribute of a class or class instance The service number of this request is 16 1044 The class instance and attribute are all defined by which variable you want to set The value is little endian and the size is defined by the attribute that you are setting The response from a set command only echoes the service The service will be reported as the set service with the highest bit set to indicate a response An error response will have the service set to 94 4 This response will be followed by a two byte error code defining the type of fault For a detailed list of error codes connect to the ODVA web site at www odva org 45 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 A Accessories and Other WRC Products The following compone
28. e it is probably not necessary to set up the transmit and receive sizes 5 5 4 Setting up the Connection Timer EPR EPR stands for Expected Packet Rate This is the value that the JDCE sets the connection timer to for the cyclic and polled connection This is also the value it uses in the connections to calculate the time the device should wait before signaling a timeout If you have a scanner or scanning software you must configure it with the EPR that you want the JDCE to be scanned with The scanner will then configure the EPR in the JDCE at the beginning of communications Consult your scanner s manuals on how to configure the EPR the EPR is sometimes referred to as the scan rate Note If you need to set up the EPR it can be done manually by performing a set Service 10h on the connection class Class 54 4 attribute 9 The polled connection uses instance 2 where as the COS and cyclic connections use instance 4 This must be done after allocating the connection 5 5 5 Setting up the DeviceNet Baudrate Autobaud is the mechanism that allows the DeviceNet device in this case the JDCE to automatically determine the baudrate that is operational on the network to which the JDCE is connected and to adjust its DeviceNet speed to match The JDCE is shipped with autobaud as its default baudrate If you wish to change the baudrate to a fixed speed you can set it in two different places 1 The first is in the DeviceNet object Class
29. e multiple times and when the Master wants to eliminate the Message Header overhead It may be most useful with Explicit Messages transmissions to the JDCE The Poll I O and Explicit Message operate slightly differently but follow the same rules for the options and can be used to perform the same functions A transmission of the serial data from the JDCE to your ASCII device can be initiated in 2 different ways Remember that if a poll connection is set up serial data in the mapped I O location will be sent to the JDCE on every poll command e In Header Mode changing the record number will always initiate a transmission on the network Even if you do not set new data into the data string the old data will be transmitted See Table 2 2 e n Data Only Mode the JDCE will transmit data out its serial port every time it receives a poll command or Explicit Message to its transmit buffer CAUTION THIS IS NOT A GOOD IDEA IF YOU ARE OPERATING OVER A JDCE MESSAGE AN I O MESSAGE IS REPETITIVLY SENT OVER AND OVER AGAIN AND GENERATES INTERNAL WRITES TO ATTRIBUTE 2 THIS WILL CAUSE YOU TO SEND LARGE AMOUNTS OF DATA TO YOUR DEVICE AND CAN CAUSE TX I O OVERFLOWS THIS ALMOST GARUNTEES CORRUPTED DATA AND IMPROPER INFORMATION SENT TO YOUR SERIAL DEVICE 27 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 5 4 8 Transmitting Serial Data The length of the string set determines the use of a delimiter in transmitting data
30. e transmitted immediately from the Master to the JDCE 30 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 5 5 Setting up DeviceNet Communications The 1782 JDCE supports 4 modes of data transfer of the serial buffer They are Polled I O Change of State I O Cyclic I O Explicit Message 5 5 1 Polled I O The polled connection is the only manner in which you can send serial output data to the I O and therefore to your I O device The DeviceNet Master initiates the polled connection transfer The Master sends the JDCE its serial output buffer along with a record number and length byte The JDCE monitors the record number for a change in the record number If the record number changes then the 1782 JDCE transmits the data buffer on its serial link If the record number does not change then the device does not transmit the data buffer After the device has transmitted its data out to the serial link the JDCE then takes any information that is stored in its current serial input buffer and sends this data to the DeviceNet Master It sends all characters up to and including the received delimiter padding only if specified in the parameter object When the JDCE receives a new message either with a delimiter or with an overflow condition without a delimiter the device then increments the receive record updates the length byte and copies the new information from the last receive delimiter into the buf
31. er s Manual Revision 6 04 5 5 3 Setting up the DeviceNet I O Connections It is useful to first set up your serial link before setting up your connection To set up the communications with your network configuration tool it is often necessary to know the connection input and output sizes Instructions for setting up your serial connection are provided above See the sections on receive and transmit sizes If you are using a network configuration tool with some type of scanner or scanning software you must direct your scanner to set up the connections for you This often requires some information about the device such as input and output sizes The input and output sizes are computed from the transmit size and the receive sizes These sizes are defined in the parameter object of your device The transmit size of the poll connection is computed by adding 2 to the Transmit Buffer Size on the 1782 JDCE The Transmit size for the change of state and cyclic connections are set to 0 because these connections do not initiate a transmission on the serial link The receive size of all three connections is computed by adding the number of option bytes to the receive buffer size This final value is reported in Parameter 13 Important Remember to re map the data if necessary after you set the sizes because many configuration tools will automatically your data when you change the connection sizes If you are not using such a software packag
32. essages The JDCE will fill a short message with the pre defined Pad Character The data length is defined by the Max Receive Length parameter If the No Pad option is selected the JDCE will return the actual number of characters defined plus the Header data if selected Default 1 6 Product version and EDS This manual applies to 1782 JDCE x version 6 01 and higher An EDS Electronic Data Sheet for the 1782 JDCE is shipped with your device or is available on WRC s web site http www wrcakron com Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 1 7 Ordering Information Table 1 2 Part Numbers Model Serial Interface Number RS232C 1782 JDCE 1 RS485 1782 JDCE 2 Isolated RS232C 1782 JDCE 3 Isolated RS485 1782 JDCE 4 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 2 Quick Start To quickly install your 1782 JDCE in your DeviceNet system follow the instructions below For more details see Section 4 2 1 1 How to Install and Establish DeviceNet Communications Connect your DeviceNet network cable to a 5 pin female Phoenix type plug according to DeviceNet cable wiring specifications Make sure that the DeviceNet network is properly terminated The JDCE Node Address MacID is set to 63 at the factory Make sure no other device on the network is set to 63 or change the JDCE address to one that is not currently used
33. essages will be Transmit Swap Mode 21 Get Set 0 255 with 8 bit data 0 Disabled 1 16 bit Swap Enabled Disabled USINT 2 24 bit Swap Enabled 3 32 bit Swap Enabled 0 Master Slave Handshake handshaki USINT 1 No handshaking 20 bytes of array data and 3 USINT header bytes SHORT Any data string STRIN G USINT USINT B 0 No End Delimiter 1 Exclude End Delimiter Include 2 USINT 2 7 Include End Delimiter Any valid standard ASCII Cam character Di USINT 0 127 with 7 bit data return 0 255 with 8 bit data 0 Array Short Stri 1 Short String ng USINT re Disabled 0 USINT 6 bit Swap Enabled 4 bit Swap Enabled Na 19 1782 JDCE User s Manual Western Reserve Controls Inc Revision 6 04 3 32 bit Swap Enabled swapped every 2 or 4 bytes Selects whether or not Record Header the header information 0 Include record header Mode Ma is included in the 1 Omit record header USINT DeviceNet data string send serial data only Total number of byte of TO data that are AO Dyes Gateway received from the of array Consume 23 Get data and 2 USINT f Master This should be Assembly Size header the TX size of your bytes Scanner Serial Port Transmit Explicit Messages from EDS Editor Transmit Serial 24 Get Set Serial data to be sent to Bat Data String the serial transmit buffer ASCII Block Data Ply Transmitted Serial Data 25 Bese eo the
34. etermines the length of the string by searching the string for a delimiter character The algorithm can be configured to ignore include or exclude the character A 2 The Receive Record Algorithm The receive record algorithm was developed in order to enable the receipt of data from a remote serial device and the subsequent transmission of data over a DeviceNet I O connection The Receive Record Algorithm Controls when data is acquired and when that acquired data is presented to the connection This Section will help you understand the algorithm in order to efficiently utilize all of the capabilities of the JDCE to make your job easier 33 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 A 2 1 Basic Theory of operation The Basic function of the JDCE is to address the problem of receiving and transmitting serial data over DeviceNet Serial data is data stream in which data is presented to a device one byte at a time and does not have a beginning or an end DeviceNet however is not stream oriented data is presented in chunks of defined sizes and bounds The Receive Record algorithm formats the streaming data into a data block It uses user defined events on the receive serial link to determine where this data block starts and ends It then uses a status byte to notify the controlling JDCE when new data is available The JDCE then increments the record number and the new data are presented The Receive Record Algor
35. factory configuration Set the baudrate and framing format of the serial port to the baudrate and framing format of the serial device that you are using Put the Configuration tool in to monitor mode Direct the device that you are communicating with to send data For example if you are connected to a computer terminal program type a message into the terminal When you hit enter the module will update the data with the message that you typed and increment the record number Poll messages work in the same manner as the parameter object interface The default assembly format of the poll message is shown below Table 2 1 Default Receive Data Assembly Format Byte 1 Byte 2 Byte 3 Byte 4 X lt 22 Byte 1 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 max 23 Transaction ID ASCII Data following the lt CR gt Byte Status Byte Length Byte length byte Terminator 2 5 How to Write Serial Output Data to the JDCE 1 Do steps 1 6 of Section 2 4 above AeA Change the Transmit record number Enter the serial data that you wish to send in the transmit data parameter Change the Length of the data in the length byte to reflect the length you wish to send The JDCE will generate the characters that you typed in on the computer screen Poll message works in the same manner as the parameter object interface The assembly formats of these messa
36. fer If an overflow occurs the JDCE indicates so in its receive status bit The receive status byte also reflects parity errors in the device 5 5 2 Cyclic and Change of State I O The Cyclic connection initiates a transmission every time the connection timer expires This is explained below in the Section 5 5 4 The cyclic connection can only send data from the JDCE If you need to transmit on the I O link you will need to use the polled connection to do so The polled and cyclic connections are not exclusive so both can exist at the same time The manner in which cyclic connection reports its data is the same as the polled connection The cyclic connections transmit buffer is the same as the polled connections transmit buffer so overflows and received delimiters act the same over any connection The Change of State COS connection is the same as the cyclic connection except that as well as triggering communications on the expiration of the timer the COS connection also initiates a transfer on a receive of the delimiter or an overflow The COS connection is mutually exclusive with the cyclic connection but can coexist with the polled connection The COS connection operation is very useful in conserving bandwidth and provides the Master with the most current data as fast or faster than a poll connection The COS connection automatically turns on the COS mechanism when the connection is created 31 Western Reserve Controls Inc 1782 JDCE Us
37. g into its internal buffer and will then transmit Produce it onto DeviceNet at the next appropriate opportunity 5 3 2 Setting up the Receive Character Buffer Length The receive character buffer length is the number of characters that the JDCE can receive from your I O device into its buffer at one time The length of the data string sent to the DeviceNet Master is less than or equal to this size plus any header options selected to be discussed later If the JDCE receives more characters that this number it will internally generate an overflow and 21 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 force the data into the JDCE DeviceNet transmit buffer to be sent to the Master The subsequent received characters will then be received into the buffer and handled as the start of next incoming message string The overflow bit in the status byte will be set as well Caution Incoming characters could be missed in the process of handling a string longer than the defined max length This value can be set and retrieved by using the standard set and get services on class 15 Fhex instance 3 attribute 1 5 3 3 Setting up and Using Pad Mode Pad Mode operation is the method used by the JDCE adds extra characters to the end of its received data string after the delimiter character from the external I O device before sending the string to the DeviceNet scanner Master as an I O Response The quantity added is s
38. ges are configurable and are covered in the next chapter Table 2 2 Default Transmit Data Assembly Format Byte 1 Byte 2 Byte X 1 max Bytes 3 X lt 21 lt 22 Transaction ID Byte Length Byte lt CR gt ASCII Data Terminator 10 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 3 General Specifications Product 1782 JDCE Device Serial Gateway Description Communications gateway between a serial capable device over an RS232 or RS485 interface and a DeviceNet network Device Type Communications Adapter C hex 12 Device Profile Identity Object Message Router Object DeviceNet Object Connection Object Parameter Object Serial I O Object vendor specific Transmit Serial Object vendor specific Receive Serial Object vendor specific Product Revision 6 01 DeviceNet Conformance Designed to conform to the ODVA DeviceNet Specification Volume and Il Version 2 0 DeviceNet Communications Predefined Master Slave Connection Set Group 2 Only Server DeviceNet Baud rate selection Autobaud operation default Fixed baud software selectable 125k 250k and 500k baud Address selection Address number 0 to 63 switch selectable default 63 Cable Connection JDCE 5 pin pluggable header male Phoenix Contact MSTBA 2 5 5 G 5 08 AU or equivalent DeviceNet Cable 5 contact plug female contacts Phoenix Contact 2
39. ithm creates a DeviceNet object and presents the data in an ordered fashion to the DeviceNet I O connection The Receive Record object may be reached over DeviceNet at Class 0x72 If you are going to be using explicit messaging to communicate with the device we recommend that you access the data from this point and not the parameter object because the parameter object obeys slightly different rules in order to ease the interface with today s most common configuration tools End Event Event Detection System Auto Inc Record Number S Received Data Switch Data Figure A 2 Receive Record Algorithm Functional Flowchart The Receive Record Algorithm is diagramed above The serial stream originates from the serial port object 0x70 It is looked at a byte at a time by the event detection system If the event detection system detects a beginning event the beginning delimiter is received or disabled it opens the first data switch allowing the serial data to accumulate in the back buffer Once an end event is received the End delimiter is received or the back buffer is full the event detection system will close the data switch and set a new data status When the new data status is set if the device is set up in auto increment mode the object will automatically increment the record number and clear the new data bit In this situation the user will not be allowed to set the Receive Record Number and it will not be included in the poll
40. m the serial port are transmitted to the master This data is the same format as a poll response 1 1 1 3 Change of State or C O S C O S I O is the function by which a slave device sends its input data to the master when defined input data changes without the host explicitly requesting it In the case of the JDCE this occurs when the delimiter character is asynchronously received from the serial device when the defined number of characters is received or when the internal buffer is filled This data is the same format as a poll response 1 1 1 4 Explicit Messages Explicit messages are typically used to read and write configuration data This data allows the JDCE to change its internal operating parameters such as baudrate and parity Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 In product revision 6 and higher explicit messages can be used to read and write the serial port data as well 1 5 Major Option Selections The 1782 JDCE has several different operating modes Some of these are available only in certain combinations These option selections are described here briefly and in more detail later 1 5 2 Header vs Data Only Option In Data Only Mode only the actual ASCII string data is transmitted between the JDCE and the Master This data may or may not include any selected delimiter characters The data itself may or may not contain a 1 byte or 2 byte data length value depending upon which data t
41. nector It also has two green LED s to indicate the presence of activity on the RS 232 485 transmit and receive lines All power for the JDCE is derived from the DeviceNet power 1782 DC DeviceNet Converter GND eov E LEFT T R d s ADL AIDA AR 8 7 V CANH 8 NIC NS CANL V Figure 4 1 1782 JDCE Outline Drawing 13 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 4 2 LED Operation 4 2 1 DeviceNet LEDs The JDCE has two LEDs that provide visual status information to the user about the product and the DeviceNet network See Tables 5 1 and 5 2 that follow below for how to interpret LED status indications Table 4 1 Module Status LED labeled MS LED State Module Status Meaning OFF There is no power through DeviceNet Green JDCE is operating normally Flashing Green JDCE needs commissioning e g attempting autobaud Flashing Red Recoverable fault Red JDCE may need replaced Flashing Red Green JDCE is in self test mode Table 4 2 Network Status LED labeled NS LED State Network Status Meaning OFF JDCE has no power or has not completed the Dup_MAC_ID test Flashing Green JDCE is on line but is not allocated to a Master Green JDCE is operating normally Flashing Red One or more I O connections are timed out Red Critical link failure JDCE has detected an error that makes it incapable of communicating on the link Bus off or Du
42. ng is I O to increment record Auto Auto sent immediately to number 13 Get Set master in poll 1 Automatically Increme 1 USINT mode or after a I O increment the record nt handshake ACK number and show the new data when an end event is received Record 14 Get Status of the Record Bit 7 New Data No 0 BYTE Status object Available Status 44 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 B 8 Common DeviceNet Services DeviceNet is divided into logical functional blocks called objects which provide services that allow for control over the hardware and routines that those objects contain To allow for multiple similar functions the objects are built of multiple instances that the services of the objects act upon A class service acts upon the entire object allowing one service to be enacted on all of the instances This saves time effort and network bandwidth The common services are a common set of services that have been provided in most or all of the objects to allow for common functionality in creating deleting getting setting and resetting the variables of the different classes and instances We will describe two of the services here get and set The get and set services have a common format for specifying what object instance attribute and service that the command is specifying In order of first to last DeviceNet specifies service class instance attribute and
43. nts can be used with an Ajax for replacements or spare parts or as complementary devices as a part of your DeviceNet or other CAN Bus system Table A 1 WRC Replacements Spare Parts and Other Products Part WRC Part Number DIN rail WRC 50022 Terminating resistor axial lead RM121DN Discrete I O block 4 channels 1782 JDB4 Discrete I O block 8 channels 1781 JDB8 Analog Input block 4 channels 10 bit 1782 JDA4 Analog I O block 8 channels 12 bit 1782 JDA8 DeviceNet to Serial I O Gateway 1782 JDC Extended DeviceNet to Serial I O Gateway 1782 JDCE DeviceNet to Modbus Gateway 1782 JDM Discrete I O block 24 channels WRC1 JDB24 Discrete I O block 48 channels WRC1 JDB48 Discrete I O Analog Input block 24 DIO 32 Al WRC1 JDA 24 Discrete I O Analog Input block 48 DIO 32 WRC1 JDA 48 Analog I O block 32 channels WRC1 JDAIO Discrete and Analog I O block 24 DIO 32 AIO WRC1 JDAIO 24 Discrete and Analog I O block 4810 32 AlO WRC1 JDAIO 48 Discrete I O block 8 Dis 8 DOs 4 Als W5 JDB16x DeviceNet CANopen Extender DIN mount WRC CANX DIN DN SDS Extender DIN mount WRC CANX DIN SD DeviceNet CANopen Extender DIN mount WRC CANX DIN C7 DeviceNet CANopen Extender NEMA box WRC CANX NEM AU DeviceNet CANopen Extender NEMA box WRC CANX NEM DN SDS Extender NEMA box WRC CANX NEM SD DeviceNet CANopen Extender Fiber Optic WRC CANR DF DN NEMA box 46
44. onse is too short The JDCE also supports byte reordering to support non string data type l O s The DeviceNet network data ordering scheme is little endian meaning that the low byte of a multi byte messages transmitted first This means that if you are using an I O that is using a 16 bit or larger word size and you map the I O s data directly into this space without string support your data bytes will show up swapped The JDCE implements byte reordering swapping in order to ease use on these PLCs The swapping mechanism re orders the I O data so that is appears correctly on I O s that use Little endian byte order and greater than 8 bit word sizes To Implement byte swapping determine the number of bytes in your data size Subtract 1 from this number and set the Receive Record object s byte swapping attribute to this value also available through the parameter object Now you must set the length of your message size to a multiple of 1 this value or the JDCE will not be able to swap the bytes correctly The data will now be ordered properly in your JDCE 35 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 B DeviceNet Profile Objects and Services B 1 1782 JDCE DeviceNet Profile This section describes the DeviceNet Objects present in the I O The I O conforms to a Type 12 Communications Adapter Device Table B 1 DeviceNet Objects DeviceNet Object Object Class Parameter
45. operation Address selection via DIP switches DIN rail mount Pluggable 5 pin DeviceNet connection Pluggable RS 485 2 pin connection RS 232 3 Pin Connection 2 standard DeviceNet module and network status LED s 2 serial transmit and receive LED s Powered from DeviceNet 11 25 Vdc network power ASCII string length up to 50 bytes Serial port baud rate up to 38 4k baud Optional isolated RS485 or RS232 interface Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 1 2 Revision 6 Enhancements This manual applies to 1782 JDCE version 6 01 The specific enhancements incorporated in Revision 6 of the product include 1 3 Explicit Message ASCII string send and receive Start string delimiter operation Transaction header mode or data only mode selection option Master Slave handshake option Typical Applications Weigh scales Bar code readers and scanners Display panels Robots Drives Operator stations HMI Magnetic code readers Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 1 4 Basic Operation The JDCE operates as the DeviceNet front end to the serial device s The DeviceNet Master can receive and send data to and from the 1782 JDCE via the methods described in this section It sends the data to the device and likewise accepts responses from the device which are passed back to the DeviceNet system as required The JDCE has one DeviceNet address All DeviceNet mes
46. plicate MAC ID 4 2 2 Serial Port LEDs The JDCE also has two 2 RS 232 485 activity LEDs one for transmit TX or Signal 5 and one for receive RX or Signal SG These LEDs are electrically tied to the serial data lines and will illuminate when there is data signals active on the respective data lines and the JDCE has power 4 3 Serial Port Connector The ASCII devices are connected to the JDCE via a 3 wire communications cable See your Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 ASCII device s User Manual for details on the proper connections The RX and TX designators are referenced with respect to the JDCE Table 4 3 RS232 RS485 Connector Signals Designator RS232 RS485 RS232 RS485 Signal Signal 3 RX SG Signal 2 TX SG Signal 1 GND Ground Shield Note The RS232 max distance spec is 50 feet 15m Note The RS485 max distance sped is 4000 feet 1219m 4 4 DeviceNet Configuration DeviceNet specifications provide for a maximum network distances for the main trunk line and drop lines depending upon the baud rate used on the network See Table 4 4 Table 4 4 Maximum Network Cable Lengths Trunk Line Length Drop Length Cumulative Baud Rate 125k baud 250k baud 500k baud 15 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 4 4 1 Network
47. r 5 2 Transmit is used included 1 7 Get Set in the data string delimiter Include 2 USINT Mode or excluded in the 2 Include The resultant data delimiter string If enabled the 0 Disabled position of the 1 16 bit Swap Receive bytes in the serial Enabled Swap Mode 8 Get Set messages will be 2 24 bit Swap Disabled 0 USINT swapped every 2 Enabled or 4 bytes 3 32 bit Swap Enabled 42 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 Status 9 Get Status of the Record Object No Error 0 BYTE B 7 Receive Record Object Class 114 0x72 Table B 12 Receive Record Object Instance Attributes Param Parameter Instance Serial Port Instance Last Record Get Set Number Received Serial Data N 6 Get Set Description Instance of the serial port object that we listen to Record number assigned to the last received data string Last received serial data Format of data Indicates whether to pad the invalid data region after the delimiter with the pad character or to use variable length responses The value to use to pad the invalid data portion of the poll response Parameter Choices Only one serial port is available on the 1782 IO 0 Array 1 Short String 2 String 0 Pad Mode Disabled 1 Pad Mode Enabled Any valid standard I O character 0
48. r are sent to the DeviceNet Master If Pad Mode 1 then the JDCE will fill the Poll Response data with the Pad Char up to the defined size If Pad Mode 0 then the JDCE will send only the data up to and including the delimiter 4 If no delimiter is received then The JDCE will receive up to Max Number of Receive Chars and then send this string to DeviceNet with an overflow error f will continue to receive and send strings of size Max Number of Receive Chars along with the overflow error until a delimiter is received This could continue indefinitely if your I O device does not transmit the specified delimiter 5 3 5 Setting Up and Using Delimiter Operation When receiving data strings from your serial device the JDCE can take advantage of both Start and Stop End delimiters The Start Delimiter is the start of string indicator and the End Delimiter is the end of string indicator This allows you further control over exactly which characters are sent to the Master When you select Start Delimiter operation you define a character that prompts the JDCE to start storing the incoming data string All characters up to this Start Delimiter after the previous message was completed are ignored Once the Start Delimiter is received all characters are stored until either the End Delimiter is received or the Max Receive Char Length is reached Once the End Delimiter is reached the data string is captured and prepared to send to the Device
49. re understanding and setting up some parameters 5 4 6 Transmit String Data Type This is the format of the data you will send from the JDCE array short string or string to the DeviceNet Master These are shown below Which one you pick depends on your application and will modify the format of the data field See Section 5 3 6 above Receive String Data Type for details 5 4 7 Record Header vs Data Only Mode This defines whether the JDCE and Master exchange header bytes in the DeviceNet transactions or whether only data is transferred Record Header Mode is used primarily in Poll I O to prevent the JDCE from repeatedly sending its data buffer to the serial device each time it receives a poll command In this mode of operation the Master will update the Record Number whenever it wants the JDCE to send another serial string to the ASCII device The JDCE interrogates the record number sent from the Master and will not transmit the serial data until a new record number is received The Record Numbers do not have to be in any special order from the JDCE perspective They can be chosen in any fashion selected by the Master In Data Only Mode the JDCE transmits out its serial port whenever it receives data into its internal buffer whether or not the data has been updated It does not use the header system to initiate serial transmissions This technique is useful when the target ASCII device is not affected by receiving the same messag
50. request assembly The JDCE now includes functionality to allow you to specify the data type of the string The string may be set to the DeviceNet data types of STRING SHORT STRING or ARRAY The difference between the data types is how the length of the string is reported The STRING data type has a two byte indicator for length This data type may be used to directly map your data into an a b that supports the string data file The SHORT STRING data type is the classic data type from the JDCE revisions 5 and under This data type has a 1 byte length allowing for backwards compatibility and data space savings The ARRAY data type does not have a length field and may be used if you do not need to know the length of your received data The JDCE also supports scanners that are not fully DeviceNet compliant and do not support 34 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 short poll responses These short poll responses save bandwidth on the DeviceNet network but many scanners do not support this functionality and will not allow communication with a device that responds in this manner The JDCE supports this non compliant behavior through pad mode This is a function where a character is appended to the end of the serial data in order to fill out the poll response The default for pad mode is OFF and the default for the pad character is 0 NULL Turn pad mode ON if you receive errors indicating that the I O data resp
51. s 20 USINT Chars into its ASCII port from the serial device Selects whether or not Receive Record Get Set the start delimiter is 0 No Start Delimiter No Start Start Mode included with the 1 Exclude Start Delimiter Delimiter USINT USINT USINT received data 2 Include Start Delimiter Character which identifies the beginning Receive Start of the data string from Any valid standard ASCII Delimiter Get Set he ASCII device when character ET the length is specified as 0 127 0 255 0 USINT Selects whether or not Includ Receive Record Get S the End delimiter is 0 No End Delimiter End Mode en included with the 1 Exclude End Delimiter Pe data 2 Include End Delimiter Delimiter Character which 2 identifies the end of the c Receive End Get Set data siting from the Any valid standard ASCII Carriage Di USINT Delimiter character return ASCII device when the 0 127 0 255 length is specified as 0 3 Defines the format of _ er Get Set the data string sent to 1 USINT the Master 2 String Indicates whether to pad the invalid data region Pad Mode Geuse After the delimiter with 9 Pad Mode Disabled Disabled USINT the pad character orto 4 Pad Mode Enabled use variable length ASCII responses Pad Character 10 Get Set The value to use to pad AY valid standard ASCII iy 0 USINT the invalid data portion 0 127 with 7 bit data 18 We
52. s follows e The JDCE receives a new data string e The JDCE sets the New Data Flag in the Status byte of its next produce message e The Master sends out messages to the JDCE in the normal fashion If the Master is not ready to receive new data the New Record Data byte remains constant e When the Master is ready to receive the new data string it changes the New Record Data byte to any value different than what it had been sending e The JDCE will send the new data upon receipt of a record from the Master in which the New Record Data byte has been changed e f the receives an updated New Record Data byte and has new it will set the Handshake Error bit in its Produce Status byte In Immediate Mode this handshaking is not active and the JDCE sends new data as soon as it is received from the ASCII device It is the Master s responsibility to be ready to accept and process the new data string when it is presented 5 4 11 Explicit Messages to Transmit Serial Data String You can use Parameters 24 25 and 26 to set up the serial data string and send it to your ASCII device via the Explicit Messaging technique Parameter 24 will hold the data you wish to send Parameter 25 defines the size in bytes of the DeviceNet message to be sent from the JDCE to the device Parameter 26 holds the record number of the data string in Parameter 24 if the Header option is selected Changing the record will cause the data in Parameter 24 to b
53. sages to the JDCE itself to read write its internal data are sent to this address DeviceNet messages to and from the serial device be sent to the JDCE DeviceNet assembly objects using either I O or Explicit Message commands The JDCE Parameter Object allows you to define the specific operation of each JDCE These parameters include all the set up required for the serial communications link The following chart and section defines the various messaging methods used for typical data types at your serial device and a brief explanation follows Table 1 1 I O Message Types Typical Data Polled Cyclic Bit Strobe Change of State Explicit Message Commands 4 Status y Parameters Ni 1 1 1 1 Polled The DeviceNet Master uses the JDCE s predefined polled IO connection to send serial input and output data to the JDCE When a poll is received and the record has changed since the last poll was sent the JDCE sends the associated transmit data out the serial port to the remote ASCII device When the JDCE receives serial data from a device on the serial link the poll response data to the Master contains up to 50 bytes of received data 1 1 1 2 Cyclic Input Message Cyclic I O is the function by which a slave device sends its input data to the master at a specific time period without the host explicitly requesting it When the specified time interval defined by you elapses the most recent input data fro
54. stern Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 of the poll response If enabled the position of the bytes in the serial Receive Swap messages will be Get Set Mode swapped every 2 3or 4 bytes If enabled Master must DeviceNet acknowledge it is ready Handshake Get Set for next new data before Mode JDCE sends the new data Gateway Produce Assembly Size Serial data in the receive Serial Data buffer Total number of bytes of I O data that are sent to the Master from the JDCE This should be the RX size of your Scanner Calculated length of the DeviceNet message to send to the ASCII device from the Master Get Get Received Data Size The Receive Record Number sent from the master Receive Record Number Serial Port Transmit to ASCII Device Maximum number of characters the 1782 JDCE expects to transmit out its serial port to the serial device Max Number of Transmit Chars Selects whether or not the End delimiter is included with the received data Transmit End Delimiter Mode Character which identifies the end of the transmit data string from DeviceNet to the ASCII device when the length is specified as 0 Transmit End Delimiter Character Gateway Receive Consume on DeviceNet from Master Transmit Defines the format of String Data Get Set the data string received Type from the Master If enabled the position of the bytes in the serial m
55. t 2 Get Device UINT ODVA Communications Device Type 12 Comm Type Adapter A UINT WRC Unique Product Code Number 701 2bdhex 4 STRUCT of Revision of this device Revision Revision 5 WORD Summary status of device 6 Get Serial UDINT WRC Unique Device Serial Number Number 7 Get Product SHORT_STR ASCII Name of product 1782 JDCE Name ING The interval in second that the device Heartbeat generates a heartbeat message A g ale Interval DEIN value of 0 disables heartbeat 0 Table B 6 Identity Object Common Services poi Class Instance Service Name Description of Service z Returns the contents of the OE hex Get_Attribute_Single specified attribute 10 hex No Yes Set Attribute Single Modifies an attribute value 39 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 B 4 Parameter Object Class 15aec There are many configurable data parameters associated with your JOCE The JDCE uses a Parameter Object a collection of these parameters to assist you in reading and changing configurable data Following are the Class Attributes Instance Attributes and Services that are supported by the JDCE for the Parameter Object Table B 7 Parameter Class Attributes Instance 0 Attribute Access DeviceNet at 10 Rule Name Data Type Description of Attribute Value 1 UINT Revision of this object 1 2 Get Max UINT Maximum
56. t en nter erre esse 31 23 94 9Polled TO ER Be as eeu SEHE 31 3 5 2 Cyclic and ie EE cepe ee tete a AE 31 5 5 3 Setting up the DeviceNet I O Connections eese eene 32 5 5 4 Setting up the Connection Timer EPR a eene 32 Setting up the DeviceNet Ba dr te rorarii p eA Ee e bi pee 32 A THEORY OF OPERATION cussossossonsennsonsesnsesnsenssssssssnssonssonsnnnsnnssnnssnnsennsnnssnnssnnssnnnsnnsssnsssnssnssonnsnnssnnssnnnene 33 THE TRANSMIT RECORD ALGORITHM 33 1 1 Basic Theory of oper tion i se ee 33 2 THE RECEIVE RECORD 2 2 22 1 100 000000010000 000000000405000000000000000 33 2 1 Basic Theory of Operation ET Rr eR RE IE t eee EN 34 B DEVICENET PROFILE OBJECTS AND 2 0 11 36 1 1782 JDCE DEVICENET PROFILE dees ae e iaar oe ter eerie i 36 B 2 SERIAL l O POEEED DATA FORMATS ense evene er nete ene Pelle ditte aids 37 B 3 IDENTITY OBJECT CLASS e e eere t eor ero teretes Uere redes 39 B 4 P
57. to a serial device from the JDCE If the string length is zero or the data type is type Array The JDCE receives data sent from the DeviceNet Master and uses the delimiter to determine how much data is sent to the serial device The JDCE will compute the length and then store this as the new length in the string attribute This will not show up if the data type is array you will just see the string truncated and the length will be in the background If a delimiter is contained within the string then all characters up to and including the defined delimiter are stored If no delimiter is contained within the string then JDCE will store all the data received If the string length gt 0 or the data type is String or Short String The JDCE receives data sent from the DeviceNet Master ignoring any embedded terminator It will store the number of characters defined in Max Number of Transmit Chars or the total sent by the Master whichever is less Now the JDCE will send the data immediately if attribute X is set to 1 You can always cause this data to be transmitted by incrementing the record counter 1 5 5 Consume Assemblies The consume assemblies follow the formats below shown for both Immediate Mode and Handshaking Mode Table 5 5 Consume Assembly Array Type No Handshaking Byte 1 Bytes 2 X X lt 50 de que Transaction ID CR Byte ASE Pale Terminator Table 5 6 Consume Assembly Short_
58. to and including the delimiter when the above condition is met The transmit delimiter can be set to any valid I O character that can be received over the link Be very careful not to set the delimiter to a value outside of the valid range for your data bits Note A data bit size setting of 7 will only allow you a delimiter range of 0 127 dec 00 7Fhex If you do not have a valid delimiter or the delimiter is never received the device will only update the output buffer on detection of an overflow condition These values can be set and retrieved by using the standard set and get services on class 15 Fhex instance 4 attribute 1 5 4 4 Setting up and Using the TX Byte Swap Mode This option may be helpful if the JDCE is connected to a DeviceNet scanner that organizes the data string characters into data type elements that are larger than 1 byte each An example is many Allen Bradley PLCs such as the SLC500 In such cases the bytes of the data in the Master s memory organization can be reversed from the order in which they are sent or received on the DeviceNet and the serial link to the ASCII device This may cause problems in some cases See Section 5 3 4 above Setting Up and Using the Swap Bytes Mode 26 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 5 4 5 Transmitting from the Master to the JDCE You can transmit data to the JDCE from the Master using 2 methods Poll I O or Explicit Messages Both requi
59. tribute 1 22 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 5 3 4 Setting Up and Using the Swap Bytes Mode This option may be helpful if the JDCE is connected to a DeviceNet scanner that organizes the data string characters into data type elements that are larger than 1 byte each An example is many Allen Bradley PLCs such as the SLC500 In such cases the bytes of the data in the Master s memory organization can be reversed from the order in which they are sent or received on the DeviceNet and the serial link to the ASCII device This may cause problems in some cases Thus the message received or desired ABCDEFGH string may appear in memory as BADCFEHG for 2 byte word organization and DCBAHGFE for 4 byte word organization e Transmit Byte Swapping By setting Parameter 21 class Fhex instance 21 attribute 1 the bytes from the Master will be swapped by the JDCE before transmitting the string to the ASCII device e Receive Byte Swapping By setting Parameter 11 class Fue instance 11 attribute 1 JDCE will re order the bytes received from your ASCII device before sending the string to the Master e Rules for Usage 1 This feature is set for both transmit and receive independently 2 The Byte Swapping works better if the string length is an even multiple of the byte swap size 3 Ifa delimiter is received then All characters up to and including the defined delimite
60. uch that the data string returned to the scanner is always a constant length and that length is the number specified in the receive_character_length parameter plus any header options The quantity of pad characters sent can vary from message to message depending upon the size of the incoming string e Pad Mode Selection Pad mode is included with our device for compatibility with Scanners that cannot receive variable length I O messages Notable examples include many Allen Bradley s scanners at the time of printing For such scanners you must turn ON Pad mode a value of 1 Turning Pad mode ON will not harm Scanners that do support variable length receive messages The default value for Pad Mode is OFF If your scanner does support variable I O messaging lengths you leave the Pad Mode option OFF a value of 0 to conserve some network bandwidth The selection of Pad Mode is valid only for the DeviceNet message that the JDCE produces It has no effect on DeviceNet messages sent from the Scanner to the JDCE This value can be set and retrieved by using the standard set and get services on class 15 Fre instance 9 attribute 1 e Pad Mode Character The JDCE allows you to specify the character that pad mode uses to pad the received serial data This can be set to any valid I O value 0 127 in 7 bit modes 0 255 in 8 bit modes This value can be set and retrieved by using the standard set and get services on class 15 Fhex instance 10 at
61. ype 1 TX I O Overflow Status Serial port status 5 _ Rx Overflow 4 Rx Parity Error Reserved Reserved Serial Character Get Set Character Framing framing Format I O VO peat Baud communications 9600 baud Rate speed Notify Rx Object to notify Get when receive Path events happen Notify Tx Object to notify 7 Get when transmit Path events happen 41 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 B 6 Transmit Record Object Class 113 0x71 Table B 11 Transmit Record Object Instance Attributes Param AGBS Description Parameter Default Default Data Instance Choices Setting Value Type Hardware Interface 1 Get Serial port number 1 serial port only 1 1 USINT Instance Record number assigned to the 2 Get data string to be USINT Number sent to the serial device String data to send String Data 3 Get to the serial None USINT device Data String 0 Array Type 4 Get Set Format of Tx data _ Short_String Array USINT 2 String Maximum number Max Numb of characters the Bo ae 5 Get Set JDCE expects to 20 chars 20 USINT of Tx Chars transmit port to the serial device Character which Transmit identifies the end End Get Set of the data string SUT standard Carriage Dy USINT 5 return Delimiter when the length is 0 127 0 255 specified as 0 Selects if the transmit delimite
62. ype array short_string or string is selected In Header Mode there are 1 or 2 bytes of header information that precede the data string as described above The Header information includes a record number transaction ID and a status byte Default 1 5 3 Master Slave Handshake vs Immediate Option If DeviceNet Master Slave Handshake Mode is selected the DeviceNet Master can inhibit the JDCE from sending new ASCII data until the Master is ready to receive and process the new data This option is only available if the Header option is also selected and it is used only with a Poll I O or Explicit Message The JDCE will indicate to the Master that new data is available by setting the New Data Flag in the Status byte of the Produce message When the Master is ready to receive new serial data it sets a new number in the new record number byte of the next poll command message Note that this applies only to data being sent from the JDCE to the Master In Immediate Mode this handshaking is not active and the JDCE sends new data as soon as it is received from the ASCII device Default 1 5 4 Pad vs No Pad Option If the Pad option is selected the JDCE will always send a fixed number of data bytes to the Master It is typically used when a Terminating Character trigger is used to stop receiving ASCII data This is useful if the ASCII device s connected to the JDCE have varying data lengths and the Master cannot accept varying length I O m
63. ype is always 0 Note If the Short_String or String data type is used the length is not sent to the ASCII device Data Byte 1 DataByte2 Data Byte N Figure 5 1 Receive Array Data Format Length Byte Data Byte 1 DataByte2 Data Byte N Figure 5 2 Receive Short_String Data Format Len Byte 0 Len Byte 1 Data Byte 1 Data Byte2 Data Byte N Figure 5 3 Receive String Data Format 5 3 7 Setting Up the Scanner I O Receive Size The JDCE automatically calculates the number of bytes it will send the DeviceNet Master Its value is determined by a combination of the incoming data and the options you have selected Parameter 15 defines the size of the DeviceNet message to be sent by the JDCE to the Master Important If you are using a Scanner that must receive a constant message length you must set its Rx receive value to this number of bytes 5 3 8 Explicit Messages to Receive the Serial Data String Parameters 14 15 and 16 contain the status of the most recent incoming serial data string You can 24 Western Reserve Controls Inc 1782 JDCE User s Manual Revision 6 04 use the data to read your device s ASCII data via the Explicit Messaging technique Parameter 14 holds the most recent received data As explained in Section 5 3 6 Parameter 15 defines the size in bytes of the DeviceNet message to be sent by the JDCE to the Master Parameter 16 holds

Download Pdf Manuals

image

Related Search

Related Contents

Fujitsu PRIMERGY TX150 S6  87/88Série - GE Measurement & Control    LAVAGE SÉCHAGE 2010/2011 - Multi  Toshiba Satellite R10 Tablet PC  User Guide for Composting - Mountain View Regional Waste  Appât insecticide anti-fourmis en gel OPTIGARD  Notice - Castorama  EKM Dash User Manual  2 - Canon Europe  

Copyright © All rights reserved.
Failed to retrieve file