您好,欢迎来到微智科技网。
搜索
您的当前位置:首页CUB5COM Product Manual

CUB5COM Product Manual

来源:微智科技网
Bulletin No. CUB5COM-BDrawing No. LP0606Released 1/08

Tel +1 (717) 767-6511Fax +1 (717) 7-0839www.redlion.netMODELCUB5COM -SERIALCOMMUNICATIONS PLUG-IN OPTION CARDS

DESCRIPTION

This bulletin serves as a guide for the installation, configuration and operationof the RS232 and RS485 serial communications plug-in cards for the CUB5.The plug-in cards are separately purchased option cards that plug into the maincircuit board of the meter. Only one communication card can be used at a time.

Crimson is a Windows®based program that allows configuration of the CUB5meters from a PC. Crimson offers standard drop-down menu commands, thatmake it easy to program the CUB5 meters. The CUB5 program can then besaved in a PC file for future use. ACUB5 serial plug-in card is required toprogram the meter using the software.

INSTALLING PLUG-IN CARDS

The cards plug into the main circuit board of the meter as shown.

SPECIFICATIONS

RS485 SERIALCOMMUNICATIONS CARD

Type: RS485 multi-point balanced interface (non-isolated)Baud Rate: 300 to 38.4k

Data Format: 7/8 bits; odd, even, or no parityBus Address: 0 to 99; max 32 meters per line

Transmit Delay: Selectable, 2 msec min. or 50 msec min.

Comms CardRS232 SERIALCOMMUNICATIONS CARDType: RS232 half duplex (non-isolated)Baud Rate: 300 to 38.4k

Data Format: 7/8 bits; odd, even, or no parity

WARNING: Disconnect all power to the unit beforeinstalling Plug-in card.ORDERING INFORMATIONMODELNO.DESCRIPTIONPART NUMBERCAUTION: The Plug-in cards and main circuit board contain staticsensitive components. Before handling the cards, discharge staticcharges from your body by touching a grounded bare metalobject. Ideally, handle the cards at a static controlled cleanworkstation. Also, only handle the cards by the edges. Dirt, oil orother contaminants that may contact the cards can adverselyaffect circuit operation.RS485 Serial Communications CardCUB5COMCUB5COM1CUB5COM2CBLPROG0CBPRO007SFCRD200RS232 Serial Communications CardRS232 Programming Cable (DB9-RJ11)CBLRS485 Programming Cable (DB9-RJ11)SFCRD*Crimson 2 PCConfiguration Software forWindows 98, ME, 2000 and XP*Crimson software is available for download from http://www.redlion.net/

WIRING CONNECTIONS

Connections to the serial communications cards are made through an RJ11modular connector. Connector pin-outs for the RS485 and RS232 cards areshown below.

RJ11 CONNECTOR PIN OUTSLIMITED WARRANTYThe Company warrants the products it manufactures against defects in materials andworkmanship for a period limited to two years from the date of shipment, provided theproducts have been stored, handled, installed, and used under proper conditions. TheCompany’s liability under this limited warranty shall extend only to the repair orreplacement of a defective product, at The Company’s option. The Company disclaimsall liability for any affirmation, promise or representation with respect to the products.The customer agrees to hold Red Lion Controls harmless from, defend, and indemnifyRLC against damages, claims, and expenses arising out of subsequent sales of RLCproducts or products containing components manufactured by RLC and based uponpersonal injuries, deaths, property damage, lost profits, and other matters which Buyer,its employees, or sub-contractors are or may be to any extent liable, including withoutlimitation penalties imposed by the Consumer Product Safety Act (P.L. 92-573) andliability imposed upon any person pursuant to the Magnuson-Moss Warranty Act (P.L.93-637), as now in effect or as amended hereafter.No warranties expressed or implied are created with respect to The Company’s productsexcept those expressly contained herein. The Customer acknowledges the disclaimersand limitations contained herein and relies on no other warranties or affirmations.1

MODULE 5 - SERIALCOMMUNICATIONSPARAMETERS(5-SEr) PARAMETER MENUModule 5 is the programming module for the Serial CommunicationsParameters. These parameters are used to match the serial settings of the CUB5with those of the host computer or other serial device. The Serial SetupParameters are only accessible when an optional RS232 or RS485 serialcommunications module is installed in the meter.

Indicates Program Mode Alternating Display.Parameter ABBREVIATED PRINTING

Abbrª«NOYES

NOC\"6E«ª󰀚󰀗󰀑󰀑Selection/ValueFactory Settings are shown.This parameter determines the formatting of data transmitted from the meterin response to a Transmit Value command or a Block Print Request. Select NOfor a full print transmission, consisting of the meter address, mnemonics, andparameter data. Select YESfor abbreviated print transmissions, consisting of theparameter data only. This setting is applied to all the parameters selected in thePRINTOPTIONS. (Note: If the meter address is 0, the address will not be sentduring a full transmission.)

BAUD RATE

bAUdª9600«30060012002400480096001920038400

OPtªPRINT OPTIONS

«NOYES

Set the baud rate to match that of other serial communications equipment.Normally, the baud rate is set to the highest value that all of the serialcommunications equipment is capable of transmitting and receiving.

NODATABIT

dAtAǻ7-bit7-bit8-bit

This parameter selects the meter values transmitted in response to a PrintRequest. Aprint request is also referred to as a block print because more thanone parameter can be sent to a printer or computer as a block.

Selecting YESdisplays a sublist for choosing the meter parameters to appearin the print block. All active parameters entered as YESin the sublist will betransmitted during a block print. Parameters entered as NOwill not be sent.The “Print All” (P-ALL) option selects all meter values for transmitting (YES),without having to individually select each parameter in the sublist.

Note: Inactive parameters will not be sent regardless of the print optionsetting. For example, the Setpoint value(s) will not be sent unless an optionalsetpoint card is installed in the meter.

Select either 7- or 8-bit data word length. Set the word length to match theother serial communications equipment on the serial link.

ANALOG MODELS - CUB5V, CUB5I, CUB5P, CUB5TC, CUB5RT

PArªPARITYBIT

DISPLAYDESCRIPTION

FACTORYSETTING

MNEMONIC

Odd«NOOddEVEN

This parameter only appears when the Data Bit parameter is set to a 7-bitdata word length. Set the parity bit to match that of the other serial equipmenton the serial link. The meter ignores parity when receiving data and sets theparity bit for outgoing data. If parity is set to NO, an additional stop bit is usedto force the frame size to 10 bits.

INPHILOSPt-1SPt-2

InputMaximumMinimumSetpoint 1Setpoint 2

YESNONONONO

INPMAXMINSP1SP2

METER ADDRESS

Addrª«0 to99

00Enter the serial node address. With a single unit, an address is not neededand a value of zero can be used (RS232 applications). Otherwise, with multiplebussed units, a unique address number must be assigned to each meter. Thenode address applies specifically to RS485 applications.

2

Sending Serial Commands and Data

When sending commands to the meter, a string containing at least onecommand character must be constructed. Acommand string consists of acommand character, a value identifier, numerical data (if writing data to themeter) followed by a command terminator character, * or $.

Command Chart

CommandDescriptionNotesRegister Identification Chart

Analog Models - CUB5V, CUB5I, CUB5P, CUB5TC, CUB5RTIDValue DescriptionMNEMONICApplicableCommandsTransmit Details (T and V)NTVRPAddress a specific meter. Must be followed byone or two digit node address. Not requiredwhen node address = 0.Read a register from the meter. Must beTransmit Value (read)followed by a register ID character.Write to register of the meter. Must beValue Change (write)followed by a register ID character andnumeric data.Reset a register value or setpoint output.ResetMust be followed by a register ID character Block Print RequestInitiates a block print output. Registers in the(read)print block are selected in Print Options.Node (meter)Address SpecifierABCDEInputMaximumMinimumSetpoint 1(Reset output 1)Setpoint 2(Reset output 2)INPMAXMINSP1SP2TT, RT, RT, R, VT, R, V,5 digit5 digit5 digit5 digit positive/4 digit negative5 digit positive/4 digit negativeCommand String Examples:

Command String Construction

The command string must be constructed in a specific sequence. The meterdoes not respond with an error message to illegal commands. The followingprocedure details construction of a command string:

1. The first 2 or 3 characters consist of the Node Address Specifier (N) followedby a 1 or 2 character node address number. The node address number of themeter is programmable. If the node address is 0, this command and the nodeaddress itself may be omitted. This is the only command that may be used inconjunction with other commands.

2. After the optional address specifier, the next character is the commandcharacter.

3. The next character is the register ID. This identifies the register that thecommand affects. The Pcommand does not require a register ID character. Itprints all the active selections chosen in the Print Options menu parameter.4. If constructing a value change command (writing data), the numeric data issent next.

5. All command strings must be terminated with the string terminationcharacters * or $. The meter does not begin processing the command stringuntil this character is received. See Command Response Time section fordifferences in meter response time when using the * and $ terminator.

1. Node address = 17, Write 350 to the setpoint 1 value

String: N17VD350*

2. Node address = 5, Read input, response time of 50 msec min

String: N5TA*

3. Node address = 0, Reset Setpoint 1 output

String: RD*

4. Node address = 31, Request a Block Print Output, response time of 2 msec min

String: N31P$

Transmitting Data to the Meter

Numeric data sent to the meter must be limited to transmit details listed in theRegister Identification Chart. Leading zeros are ignored. Negative numbersmust have a minus sign. The meter ignores any decimal point and conforms thenumber to the scaled resolution. (For example: The meter’s scaled decimal pointposition is set for 0.0 and 25 is written to a register. The value of the register isnow 2.5. In this case, write a value of 250 to equal 25.0).

Note: Since the meter does not issue a reply to value change commands, followwith a transmit value command for readback verification.

Receiving Data From The Meter

Data is transmitted from the meter in response to either a transmit command(T), a block print request command (P) or a User Input print request. Theresponse from the meter is either a full field transmission or an abbreviatedtransmission, depending on the selection chosen in Module 5.

The end of the response string is terminated with a and . After thelast line of a block print, an extra , and are added to provideseparation between the print blocks.

Full Field Transmission

Byte

Description

Abbreviated Transmission

Byte

Description

1, 234-67-151617181920

2 byte Node Address field [00-99] (Space)

3 byte Register Mnemonic field

9 byte data field; 7 bytes for number, one byte for sign, one byte fordecimal point

(carriage return) (line feed)* (Space)* (carriage return)* (line feed)

1-91011121314

9 byte data field, 7 bytes for number, one byte for sign, onebyte for decimal point (carriage return) (line feed)* (Space)* (carriage return)* (line feed)

* These characters only appear in the last line of a block print.

The abbreviated response suppresses the node address and the registermnemonic, leaving only the numeric part of the response.

* These characters only appear in the last line of a block print.

The first two characters transmitted are the meter address. If the addressassigned is 0, two spaces are substituted. Aspace follows the meter address field.The next three characters are the register mnemonic, as shown in the RegisterIdentification Chart.

The numeric data is transmitted next. The numeric field (bytes 7 to 15) is 9characters long. When a requested display value exceeds the meter’s displaylimits, decimal points are sent in place of numerical data to indicate a displayoverrange.

The remaining 7 positions of this field consist of a minus sign (for negativevalues), a floating decimal point (if applicable), and five positions for therequested value. The data within bytes 9 to 15 is right-aligned with leadingspaces for any unfilled positions.

3

Meter Response Examples (Analog models):

1. Node address = 17, full field response, Input = 875

17 INP875 2. Node address = 0, full field response, Setpoint 1 = -250.5SP1 -250.5

3. Node address = 0, abbreviated response, Setpoint 2 = 250, last line of blockprint 250

Command Response Time

The meter can only receive data or transmit data at any one time (half-duplexoperation). During RS232 transmissions, the meter ignores commands whiletransmitting data, but instead uses RXD as a busy signal. When sendingcommands and data to the meter, a delay must be imposed before sendinganother command. This allows enough time for the meter to process thecommand and prepare for the next command.

At the start of the time interval t1, the computer program prints or writes thestring to the com port, thus initiating a transmission. During t1, the commandcharacters are under transmission and at the end of this period, the commandterminating character (* or $) is received by the meter. The time duration of t1is dependent on the number of characters and baud rate of the channel.

t1= (10 times the # of characters) / baud rate

At the start of time interval t2, the meter starts the interpretation of thecommand and when complete, performs the command function. This timeinterval t2varies. If no response from the meter is expected, the meter is readyto accept another command.

If the meter is to reply with data, the time interval t2is controlled by the useof the command terminating character. The ‘*’terminating character results ina response time of 50 msec. minimum. This allows sufficient time for therelease of the sending driver on the RS485 bus. Terminating the command linewith ‘$’results in a response time (t2) of 2 msec. minimum. The faster responsetime of this terminating character requires that sending drivers release within 2msec. after the terminating character is received.

At the beginning of time interval t3, the meter responds with the firstcharacter of the reply. As with t1, the time duration of t3is dependent on thenumber of characters and baud rate of the channel. At the end of t3, the meter isready to receive the next command.

t3= (10 times the # of characters) / baud rate

The maximum serial throughput of the meter is limited to the sum of thetimes t1, t2and t3.

Timing Diagram FigureData is transferred from the meter through a serial communication channel.In serial communications, the voltage is switched between a high and low levelat a predetermined rate (baud rate) using ASCII encoding. The receiving devicereads the voltage levels at the same intervals and then translates the switchedlevels back to a character. The voltage level conventions depend on the interfacestandard. The table lists the voltage levels for each standard.

LOGICINTERFACE STATERS232*RS485*Communication Format

Start Bit and Data Bits

Data transmission always begins with the start bit. The start bit signals thereceiving device to prepare for reception of data. One bit period later, the leastsignificant bit of the ASCII encoded character is transmitted, followed by theremaining data bits. The receiving device then reads each bit position as they aretransmitted.

Parity Bit

After the data bits, the parity bit is sent. The transmitter sets the parity bit toa zero or a one, so that the total number of ones contained in the transmission(including the parity bit) is either even or odd. This bit is used by the receiverto detect errors that may occur to an odd number of bits in the transmission.However, a single parity bit cannot detect errors that may occur to an evennumber of bits. Given this limitation, the parity bit is often ignored by thereceiving device. The CUB5 meter ignores the parity bit of incoming data andsets the parity bit to odd, even or none (mark parity) for outgoing data.

10mark (idle)space (active)TXD,RXD; -3 to -15 VTXD,RXD; +3 to +15 Va-b < -200 mVa-b > +200 mV* Voltage levels at the ReceiverData is transmitted one byte at a time with a variable idle period betweencharacters (0 to ∞). Each ASCII character is “framed” with a beginning start bit,an optional parity bit and one or more ending stop bits. The data format andbaud rate must match that of other equipment in order for communication totake place. The figures list the data formats employed by the meter.

Stop Bit

The last character transmitted is the stop bit. The stop bit provides a single bitperiod pause to allow the receiver to prepare to re-synchronize to the start of anew transmission (start bit of next byte). The receiver then continuously looksfor the occurrence of the start bit. If 7 data bits and no parity is selected, then 2stop bits are sent from the meter.

Character Frame FigureRed Lion Controls AP

Red Lion Controls 20 Willow Springs CircleYork PA 17406Tel +1 (717) 767-6511Fax +1 (717) 7-0839

Red Lion Controls BV

Printerweg 10NL - 3821 AD AmersfoortTel +31 (0) 334 723 225Fax +31 (0) 334 3 793

Unit 101, XinAn Plaza

Building 13, No.99 Tianzhou Road

ShangHai, P.R. China 200223

Tel +86 21 6113-3688Fax +86 21 6113-3683

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- 7swz.com 版权所有 赣ICP备2024042798号-8

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务