background image

 
 
 
 
 

W5-JDC4 

Revision 1.02 

4-Channel DeviceNet Serial 

Gateway 

User’s Manual 

 
 
 
 
 
 
 

 

Western Reserve Controls

 

 
 
 

Содержание W5-JDC4

Страница 1: ...W5 JDC4 Revision 1 02 4 Channel DeviceNet Serial Gateway User s Manual Western Reserve Controls...

Страница 2: ...ty for any errors or omissions in this document or for direct indirect incidental or consequential damage resulting from the use of this document Document PUB 32 0 Rev 1 02 March 2003 Copyright 2003 W...

Страница 3: ...for Serial Transmit 9 2 5 2 The Transmit Max Character Length 9 3 GENERAL SPECIFICATIONS 10 4 HARDWARE INSTALLATION AND SET UP 12 4 1 OVERVIEW 12 4 2 LED OPERATION 13 4 2 1 DeviceNet LEDs 13 4 2 2 Se...

Страница 4: ...DATA BLOCK DATA TYPE ASSEMBLIES 31 6 2 1 Immediate Mode 31 6 2 2 Handshake Mode 31 6 3 STRING DATA TYPE ASSEMBLIES 31 6 3 1 Immediate Mode 31 6 3 2 Handshake Mode 31 7 THEORY OF OPERATION 33 7 1 THE T...

Страница 5: ...9 4 Receive Record Object Instance Services 51 8 10 COMMON DEVICENET SERVICES 51 TABLE OF FIGURES FIGURE 1 1 W5 JDC4 1 FIGURE 4 1 W5 JDC4 OUTLINE DRAWING TOP VIEW 12 FIGURE 4 2 W5 JDC4 OUTLINE DRAWING...

Страница 6: ...TABLE 6 5 IMMEDIATE MODE CONSUME DATA BLOCK 31 TABLE 6 6 IMMEDIATE MODE PRODUCE DATA BLOCK 31 TABLE 6 7 HANDSHAKE MODE CONSUME DATA BLOCK 31 TABLE 6 8 HANDSHAKE MODE PRODUCE DATA BLOCK 31 TABLE 6 9 IM...

Страница 7: ...iceNet Master via Polled Change of State or Cyclic I O and parameters are read and written with the Explicit Messaging technique However you may also read and write serial data via explicit messages T...

Страница 8: ...on I O Messaging of Serial Data Poll COS Cyclic Explicit Messaging Serial data Configuration data Pad mode option Byte swapping option Master Slave handshake option Individual software configurable pa...

Страница 9: ...explicit messaging This allows you to define the specific operation of each W5 JDC4 These objects include all the set up required for the serial communications link The following chart and section def...

Страница 10: ...t o perating modes Some of these are available only in certain combinations These option selections are described here briefly and in more detail later 1 4 1 Maximum Transmit and Receive Characters Pa...

Страница 11: ...rate is needed set the baudrate rotary switch to the required baudrate See Section 4 4 for actual settings 5 Make sure that there is power on the DeviceNet network and plug the cable into the W5 JDC4...

Страница 12: ...DeviceNet to Master Default Operation Receive String Data Type Short_string data with preceding 1 byte length Pad Mode Enabled 1 Pad Character null character 0 Receive Swap Mode Off DeviceNet Handshak...

Страница 13: ...ASCII buffer size from the default value In many configuration tools this will un map the data in your scanner s scan table They must be remapped in order to be able to process the data in your PLC o...

Страница 14: ...28 to 47 Record Number Channel 2 Status Reserved Length ASCII Data Byte 48 Byte 49 Byte 50 Byte 51 Byte 52 to 71 Record Number Channel 3 Status Reserved Length ASCII Data Byte 72 Byte 73 Byte 74 Byte...

Страница 15: ...padding enabled Table 2 3 Default Output Serial Transmit Assembly Format Byte 0 Byte 1 Byte 2 Byte 3 Bytes 4 to 23 Reserved Record Number Channel 1 Reserved Length ASCII Data Byte 24 Byte 25 Byte 26 B...

Страница 16: ...30 2DAhex Vendor ID 9 Western Reserve Controls Inc DeviceNet Conformance Designed to conform to the ODVA DeviceNet Specification Volume I and II Version 2 0 DeviceNet Communications Predefined Master...

Страница 17: ...or equivalent Status Indicators Transmit Active green LED Receive Active green LED Network Isolation 500V Max Power 3 75 watts 340 mA 11 Vdc 150 mA 25 Vdc unregulated power supply Mounting DIN rail m...

Страница 18: ...ndicate 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 connector It also has eight...

Страница 19: ...nd 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 No Power There is no power through DeviceNet Green Devic...

Страница 20: ...Bus off or Duplicate MAC ID 4 2 2 Serial Port LEDs The W5 JDC4 has two 2 RS 232 activity LEDs for each of the 4 channels one for transmit TX and one for receive RX These LEDs are electrically tied to...

Страница 21: ...osition Definition 0 125k baud 1 250k baud 2 500k baud 3 9 Use values stored in non volatile memory Table 4 5 DeviceNet Address Switches MSB Position LSB Position Address 0 0 0 0 1 1 6 3 63 6 4 9 6 0...

Страница 22: ...terminated to eliminate reflections even if only two nodes are present The DeviceNet specifications for the terminating resistor are 121 ohm 1 metal film 1 4 Watt IMPORTANT Per the DeviceNet spec do n...

Страница 23: ...Western Reserve Controls W5 JDC4 User s Manual Revision 1 02 17 Figure 4 3 DeviceNet Connectors...

Страница 24: ...annel group allow you to define the serial link communications options You must set up each channel individually to match the baud rate and framing characteristics of the particular serial device conn...

Страница 25: ...antity of pad characters sent can vary from message to message depending upon the size of the incoming string 5 3 3 1 Pad Mode Selection Pad mode is included with our device for compatibility with Sca...

Страница 26: ...string to the ASCII device 5 3 4 2 Receive Byte Swapping If Class 114 Instance ch Attribute 12 is non zero the W5 JDC4 will re order the bytes received from your ASCII device before sending the strin...

Страница 27: ...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 W5 JDC4 arra...

Страница 28: ...be sent by the W5 JDC4 to the Master IMPORTANT If you are using a Scanner that must receive a constant message length such as an A B xxxx DNB scanner you must set its input value to this number of byt...

Страница 29: ...set there is data in the transmit FIFO 5 3 9 5 Data in RX FIFO If this bit is set there is data in the receive FIFO 5 3 9 6 Non Delimited Record This bit signifies the currently displayed record was n...

Страница 30: ...t is used only when the Master Slave Handshake option is active When the W5 JDC4 receives a new data string into its serial port it sets this flag in its DeviceNet response message The bit will remain...

Страница 31: ...d by the W5 JDC4 to determine how many bytes to transmit over the serial link to your W5 JDC4 device This Transmit Delimiter will be used if the Transmit Buffer Length equals 0 If the buffer length is...

Страница 32: ...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...

Страница 33: ...Number Byte Reserved Length ASCII Data 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 pol...

Страница 34: ...nd sends this data to the DeviceNet Master It sends all characters up to and including the received delimiter padding the remaining bytes if the serial string is smaller than the maximum receive bytes...

Страница 35: ...l automatically un map your data when you change the connection sizes If you are not using such a software package it is probably not necessary to set up the transmit and receive sizes 5 5 4 Setting u...

Страница 36: ...a more direct mode it is advisable to construct the whole message leaving the Transaction ID alone then change the Record Number when ready to have it sent by the W5 JDC4 For the tables below TID Reco...

Страница 37: ...served String byte 1 String byte 2 String byte 3 String byte N Table 6 8 Handshake Mode Produce Data block TID Status Reserved Reserved String byte 1 String byte 2 String byte 3 String byte N 6 3 Stri...

Страница 38: ...Western Reserve Controls W5 JDC4 User s Manual Revision 1 02 32 Table 6 12 Handshake Mode Produce String TID Status LSB of Length MSB of Length String byte 1 String byte 2 String byte 3 String byte N...

Страница 39: ...data is sent to the serial port object The delimit parse determines the length of the string by searching the string for a delimiter character The algorithm can be configured to ignore include or exc...

Страница 40: ...ecord 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 request assembly The W5 JDC4 now include...

Страница 41: ...ly into this space without string support your data bytes will show up swapped The W5 JDC4 implements byte reordering swapping in order to ease use on these PLC s The swapping mechanism re orders the...

Страница 42: ...described in this manual 8 1 W5 JDC4 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 8 1 DeviceNet...

Страница 43: ...Attributes Instance 1 Attribute ID Access Rule Name DeviceNet Data Type Description of Attribute Value 1 Get Vendor UINT ODVA Vendor Number for this product 9 WRC 2 Get Device Type UINT ODVA Communic...

Страница 44: ...rns the contents of the specified attribute 10 hex No Yes Set_Attribute_Single Modifies an attribute value 8 3 DeviceNet Object Class 3 The behavior of the DeviceNet object does not deviate and will h...

Страница 45: ...been changed science the last power cycle 0 Switch has not changed 1 Switch has changed science the last power cycle 8 Get MacId Switch value USINT The actual value of the MacID switch 0 63 MacID hard...

Страница 46: ...on Table 8 7 Instance 101 Consume Data ASCII Transmit String Byte Character Description When Used 0 New Data Record Number Integer value changed to indicate OK to send new data Master Slave Handshake...

Страница 47: ...cters received is less than Max Receive Chars value Pad Mode Enabled Any Pad character present if characters received is less than Max Receive Chars value Pad Mode Enabled Max Rx Char 4 Any Pad charac...

Страница 48: ...rt services associated with this device 8 7 3 Serial Port Instance Attributes Table 8 10 Class 112 70hex Serial Port Object Instance Attributes Paramete r Attribute Access Description Parameter Choice...

Страница 49: ...is reserved 8 7 3 3 Flow Control Type This Parameter is reserved for future expansion 8 7 3 4 Serial Character Framing Format This attribute defines the framing format of the character It includes Da...

Страница 50: ...4b hex and Putc 4Chex 8 7 4 1 GetC 4Bhex GetC takes no arguments It returns 1 character out of the Receive FIFO If there are no characters in the receive FIFO GetC will return the general error code N...

Страница 51: ...20 chars 20 USINT Transmit End Delimiter 6 Get Set NV Character which identifies the end of the data string from the I O device when the length is specified as 0 Any valid standard I O character 0 127...

Страница 52: ...no processing associated with this object occurs Also if this attribute is set to zero the port will not appear in the consume assembly including the ports header 8 8 3 6 Transmit End Delimiter This...

Страница 53: ...s 114 72 hex 8 9 1 Receive Record Object Class Attributes There are no class attributes for the Transmit Record Object 8 9 2 Receive Record Object Class Services There are no Class services for the Tr...

Страница 54: ...d I O character 0 127 0 255 Carriage return Dhex USINT Start Delimiter Mode 10 Get Set NV Selects whether or not the beginning delimiter is included in the data string 0 No Delimiter 1 Exclude Delimit...

Страница 55: ...he user Data of the transmit string No Data N A USINT EDS Editor Receive Record Number 102 Get Set Will not complain on a set of the record number when not in handshake mode Otherwise the behavior is...

Страница 56: ...tring the new data bit will be set The non delimited record status bit will be set on the change to this record 8 9 3 8 Start Delimiter Character This attribute is Get Set This attribute is stored in...

Страница 57: ...Record Object Instance Services Service Code Class Instance Service Name Description of Service 0E hex Yes Yes Get_Attribute_Single Returns the contents of the specified attribute 10 hex No Yes Set_At...

Страница 58: ...rvice sets data from an attribute of a class or class instance The service number of this request is 16 10hex The class instance and attribute are all defined by which variable you want to set The val...

Отзывы: