a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS....

131
ICS ELECTRONICS ICS a division of Systems West Inc. MODEL 4809A, 4819A, 4829A and 4899A GPIB Modbus Interfaces Instruction Manual MODBUS

Transcript of a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS....

Page 1: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

ICSELECTRONICSICS

a division of Systems West Inc.

MODEL 4809A, 4819A, 4829A and 4899A GPIB Modbus InterfacesInstruction Manual

MO

DB

US

Page 2: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

i

MODEL 4809A, 4819A, 4829A, 4899AGPIB Modbus InterfaceInstruction Manual

7034 Commerce Circle, Pleasanton, CA 94588 Phone 925.416.1000, Fax 925.416.0105 Publication Number 120148Web Site http://www.icselect.com April 2017 Edition Rev 19

ICSELECTRONICSICS

division of Systems West Inc.

Page 3: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

ii

LIMITED WARRANTY

Within 12 months of delivery, ICS Electronics will repair or replace this product, at our option, if any part is found to be defective in materials or workmanship (labor is included). Return this product to ICS Electronics, or other designated repair station, freight prepaid, for prompt repair or replacement. Contact ICS for a return material authorization (RMA) number prior to returning the product for repair.

CERTIFICATION

ICS Electronics Corporation certifies that this product was carefully inspected and tested at the factory prior to shipment and was found to meet all requirements of the specification under which it was furnished.

EMI/RFI WARNING

This equipment generates, uses, and can radiate radio frequency energy and, if not installed and used in accordance with the instruction manual, may cause interference to radio communications. The Model 4899A has been tested and found to comply with the limits for a Class A computing device pursuant to Subpart J of Part 15 of the FCC Rules and to comply with the EEC Standards EN 55022 and EN 50082-1, which are designed to provide reasonable protection against such interference when operated in a commercial environment. Operation of this equipment in a residential area is likely to cause interference, in which case the user, at his own expense, will be required to take whatever measures may be required to correct the interference. The Models 4809A, 4819A and 4829A boards should be tested for RFI/EMI compli-ance as a component in the user's equipment.

Certificate of Compliance reproduced in Figure 1-4.

TRADEMARKS

The following trademarks referred to in this manual are the property of the fol-lowing companies:

VEE is a trademark of Agilent, Palo Alto, CALabView is a Trademark of National istruments, Austin, TXICS and GPIB AnyWhere are trademarks of ICS Electronics, Pleasanton, CA

© 2000-2017 ICS Electronics div of Systems West Inc.

Page 4: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

General Information ProductDescriptions,Specifications,FactoryConfiguration,Physical

Characteristics,Certifications andAccessoriesList.

Installation Shipment Check, Installation Guide, Configuration Instructions,

GPIB and Serial Connections, Internal Jumper Settings and RackMounting instructions.

Operation Operation Description, GPIBAddressing, 488.2 Commands, SCPI

Commands,ModbusCommands,ProgrammingGuidelinesandOEMDocumentation.

Theory of Operation BlockdiagramDescription

Maintenance, Troubleshooting and Repair Maintenance,Troubleshootingguide,SelftestErrorCodesandRepair

Directions

Appendices A1 IEEE 488 Bus Description, IEEE 488.2 Message Formats,

CommonCommands andSCPICommands A2 SerialCommunication and Interfacing A3GPIBConnector/SwitchBoardDescription and Installation

Index

Contents

2

4

5

I

3

1

A

Page 5: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

ii

Thispageleftintentionallyblank.

Page 6: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

1-1

11

General Information1.1 INTRODUCTION

Thissectionprovides thespecifications for ICS'sModel4809A,4819A4829Aand4899AGPIB<->ModbusInterfacesandtheiraccessoryitems.Models4809A,4819Aand4829AarePCboardassembliesdesignedformountinginsideanotherpieceofequipment.TheModel4899Aisanen-closedMinibox™productdesignedforbenchtopusewithotherequipment.Allthreeproductsarefunctionallyequivalent.Themanualdescribestheunits'functionsbyreferringtothe4899Abut,whereverthetextreferstotheModel4899A,italsoappliestotheothermodelsunlessotherwisestated.Anymodeldifferencesarenotedinparenthesisorinseparateparagraphs.

1.2 DESCRIPTION

TheModel4809A/4819A/4829A/4899AGPIB<->ModbusInterfacesareIEEE-488.2/GPIB to Serial Interfaces with special firmware to controlModbusRTUSlavedevicesfromtheGPIBorHP-IBbus.TheylettheusersendsimplecommandswithASCIIvaluesovertheGPIBbustocontrolandqueryslaveModbusdevices.EachinterfaceconvertsGPIBcommandsintotheModbusprotocolandaddstheCRCchecksumtomakeacompleteModbusRTUmessage.ThemessagesaresentseriallyoveraRS-232linkoroveraRS-485network.ResponsesarecheckedandvalidresponsedatafromaqueryisreturnedtotheGPIBbuswhenthe4899Aisnextaddressedtotalk.The4809Aand4899AhandlebothRS-232andRS-485Modbusdevices.The4819AhandlesonlyRS-232deviceswhilethe4829AhandlesonlyRS-422/RS-485devices.

Theunitscontainanumberofadvancedfeaturesthatincreasetheirflex-ibilityandsimplifiestheiruseinsystemapplications.AllhaveIEEE-488.2

Page 7: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

1-2

1

compatible interfaceswith an expanded StatusReporting Structure thatcomplieswiththeSCPIstandard.SCPIcommandsareusedtosettheunit'sGPIBaddress,tosettheserialconfiguration,andtoenablebitsintheStatusReportingStructure togenerateSRQs. TheusercanalsoenterhisownIDNmessagetopersonalizetheunitaspartofhisassembly.Allsettingsaresavedinnonvolatilememory.

TheModel4899AispackagedinasmallMinibox™metalcasethatislessthan1Uinheight(1.6inches)ThefrontpanelcontainsthepowerswitchandLEDswhichindicatetheunit'sstatus.TherearpanelcontainstheGPIBandserialconnectorsandaDCpowerjack.The4899AacceptsawiderangeofDCvoltagesandisshippedwithanadapterforthelocalpowerlines.The4899Acanbeusedasastand-aloneboxorrackmountedinsideastandard19-inchwideequipmentrack.

TheModel4809Aisasmall,low-profilePCassemblydesignedformount-inginsidethehostchassis.Ithastwoflat-ribbonconnectorsforitsGPIBsignals.Oneconnectorcanbeconnectedtoapanel-mountedGPIBconnectoronapin-to-pinbasis.ThesecondconnectormatestooneofICS'sGPIBConnector/AddressSwitchAssemblieswhichmountaGPIBconnectorandanGPIBaddressswitchontherearpanelofthehostchassis.ICS'sGPIBConnector/AddressSwitchAssembliesareavailableintwomountingstylesasdescribedinAppendix3.TheRS-232andRS-422serialsignalsareavailableonaflat-ribbonheaderandonaDB-25Pconnector.The4809AhasthesamestatusLEDsasthe4899Aandrunson5to12voltpower.

TheModel4819Aand4829AaresmallPCassemblieswithGPIBandRS-232serialinterfaces.BotharedesignedtobemountedtotherearpanelofthehostchassissotheGPIBandexternalserialconnectorsprotrudethroughtherearpanel.BothinterfacescanbeusedtocontroltheinternalModbusdevice.The4819AORstheexternalserialinputandtheserialModbuspack-etsgeneratedbyGPIBbuscommandsintoasingle-endedRS-232signalstodrivetheinternalModbusdevice.Modbusdeviceresponsesareavailableateitherinterface.The4819AhasthesamediagnosticLEDsasthe4899Aandrunson5to12voltpower.The4829AprovidesdifferentialRS-422/RS-485signalstodrivemultipleModbusslavedevices.The4829AalsoincludestheRS-232toRS-485conversionfunctionsoexternalRS-232signalscanbeusedtocontroltheinternalRS-422/RS-485Modbusdevice.

Page 8: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

1-3

1

1.3 MODEL 4809A/4819A/4829A/4899A SPECIFICATIONS

Thefollowingspecificationsapplytoallmodels.Optionsforyourunitmaybefoundbycomparingthelistbelowtothoselistedontheseriallabelonyourunit.

4899A-X GeneralModelNumber

OptionCodes

-1 SpecialCrystal-3 CustomPaint-5 CustomFrontPanel-7 SpecialProgram-9 FactoryInstalledRackMountKit

-A ShipwithAustralian230VacAdapter-B ShipwithBritish230VacAdapter-E ShipwithEuropean230VacAdapter

BaseModelNumber

4899A-MiniboxProduct

4809A-BoardProduct114922-4809Aboardonlyversion

4819A-BoardProduct115122-4819Aboardonlyversion

4829A-BoardProduct115782-4829Aboardonlyversion

Noteoptions-3,-5,-9,andtheACadaptersdonotapplyto theModel4809Aor4819Aandtotheirboardonlyversions.

The48x9AversioninterfaceshaveadditionalfloatingpointModbuscom-mandsnotavailableintheoriginal48x9interfaces.The48x9Aseriesunitsarefullycompatiblewiththeoriginal48x9interfaces.

Page 9: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

1-4

1

1.4 IEEE 488 INTERFACE

1.4.1 488.1 Capabilities

The488BusinterfacemeetstheIEEESTD488.1-19A87standardandhasthefollowingcapabilities:

SH1,AH1,T6,L3,SR1,PP0,DC1,RL0,DT0,C0andE1/E2drivers.

1.4.2 Address Ranges

Primaryaddresses 0-30

1.4.3 Buffers

GPIBinput 2kbytesGPIBoutput 1kbytesSerialinput/output 256bytes

1.4.4 488.2 Common Commands The4899AconformstoIEEESTD488.2-19A87.Whenaddressedtolisteninthecommandmode,theunitrespondstothefollowing488.2commands:

*CLS,*ESE,*ESE?,*ESR?,*IDN?,*OPC,*OPC?,*PSC*RCL,*RST,*SAV,*SRE,*SRE?,*STB,*TST?,and*WAI.

1.4.5 SCPI Parser

The extended SCPI parser complies with the SCPI Standard Version1994.0.

Page 10: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

1-5

1

1.5 SERIAL MODBUS INTERFACE

The4899Aand4809A'sserialModbusinterfaceprovidesRS-232single-endedandRS-485(RS-422)differentialsignals.Signalsareselectedbyinternaljumpers.The4899AhasaDB-25Sconnectoronitsrearpanel,the4809Ahasa26-pinflat-ribbonheaderandaDB-25Pconnector.SignalpinoutsconformtoEIARS-530specificationandarelistedinTable2-2.

The4819AprovidesRS-232single-endedsignalsonaDE-9Sconnector.DCE/DTEjumpersletuserexchangeTXandRXsignalpinnumbers.SignalpinoutsarelistedinTable2-3.

The4829AprovidesRS-422/RS-485differentialsignalpairsonaDE-9Sconnector.On-boardjumpersletuserconnecttheTXandRXsignalpairstogetherfor2-wirenetworks.TheRXpairincludesaterminationnetworkforbiasing2-wirenetworks.SignalpinoutsarelistedinTable2-4.

1.5.1 Modbus RTU Messages

MessagesconformtotheModbusRTUformatandincludethedevicead-dress,command,registernumber,dataandCRCformattedasbinarybytes.SupportedModbuscommandsare:01,02,03,04,05,06,07,08,and16forintegervaluesandcommands03and16forfloatingpoint32-bitvalues.

Integerrange 16bitsor0to65,536 Floatingpoint IEEE-754

1.5.2 Baud Rates:

Parserselectsclosestratetospecifiedratewhenanonstandardrateentered.Standardratesare:50,110,300,600,1200,2400,4800,7200,9600,14400,19200,28800,38400,57600,76800and115200baud. BaudRates: 4899A-Anyratefrom50to115,200baud. 4809A-Anyratefrom50to38,400baud. 4819A-Anyratefrom50to57,600baud. 4829A-Anyratefrom50to57,600baud.

Page 11: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

1-6

1

1.5.3 Data Character Formats:

Databits8databitspercharacter Parity none Type Asynchronouscharacter Stopbits1or2stopbitspercharacter

1.5.4 RS-232 Specifications

Single-endedRS-232Cdriversandreceiversthataredesignedtooperatewithupto50feetofcable.

Transmit +9Vdc=Logic"0"orOnLevels -9Vdc=Logic"1"orOff

Receive ±1.5Vdcminimum,±25VdcMaximum

Signals4899A AA,AB,BA,BB,CA,CB,CDandCF4809A

4819A AA,AB,BAandBB CCheldhigh,CAjumperedbacktoCB

1.5.5 RS-422/RS-485 Specifications

The4809A,4829Aand4899AhavedifferentialRS-485linedriversandreceivers thatprovideRS-422andRS-485compatiblesignals. Thelinedriversand receiversaredesigned tooperatewithup to1200metersoftwisted-paircable.Thetransmittercanbesetforcontinuousonfor4-wiresystemsoritcanbetristatedwhennottransmittingfor2-wiresystems.

Modes Transmitteronortristatedwhennottransmitting

Transmit +5Vdcdifferentialforbinary0orOnLevels -5Vdcdifferentialforbinary1orOff

Receive ±0.2Vdcminimum,±25Vdcmaximum,Levels differentialorsingle-endedinputwithotherinputline

biasedatmid-range.

Signals SD,RD,RS,CS,RRandTRsignalpairs

Page 12: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

1-7

1

1.6 PROGRAMMABLE FUNCTIONS

AllunitsuseIEEE488.2andSCPIcommandstochangetheirprogram-mablefunctionsandjumperstoselecttheserialsignals.Table1-1liststheprogrammablefunctionsandtheirfactorydefaultsettings.The4899Aand4809AarefactorysetforRS-232signals.The4829Aisfactorysetfor4-wireoperation.

TABLE 1-1 FACTORy CONFIGURATION

Command Functions Factory Setting

:ADDRess SetsGPIBbusaddress 4

:EXT EnablesExternalGPIBAddressSwitch OFF(4809Aonly)#

:BAUD Setstransmit/receivebaudrate 9600#

:PARity Setsparitytype NONE#

:CHECK Enablesparitychecking OFF#

:BITs Setsnumberofdatabitspercharacter 8#

:SBITs Setsnumberofstopbits/percharacter 1#

:RS485 Tristatetransmitterenabled OFF#

:FORMat Setstalkformatforresponsedata ASCii#

*ESE EnablesStandardEventStatusRegisterbits 0

*SRE EnablesStatusByteRegisterbits 0

Notes:#indicatesaparameterthatcanbeblockedbytheLOCKcommand

Page 13: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

1-8

1

1.7 INDICATORS

SixLEDsthatdisplaythefollowingconditions:

PWR - Indicatespoweron.RDY - Indicatesunithaspassedselftest.TALK - Indicatesunithasrecognizeditstalkaddress.LSTN - Indicatesunithasrecognizeditslistenaddress.SRQ - OnwhentheRQSbitisset.ERR - OnwhenESRbits2thru6areseton.

Whenthe4899Aisturnedon,itperformsaninternalselftestwhichtakesabout0.5seconds.OnlythePWRindicatorisonduringselftest.Attheendoftheselftestthe4899AdisplaysitscurrentGPIBaddressbyblinkingthefrontpanelLEDsforone-halfsecond.TheGPIBaddressisthesumofthebinarybitweights.TheLEDbitweightsare:

RDY TALK LSTN SRQ ERR 16 8 4 2 1

Anyerrorsfoundduringselftestareindicatedbyarepeatedblinkingoftheerrorcodepattern.Refertoparagraph5.4foradescriptionoftheselftesterrorsandtheirpossiblecauses.

Duringnormaloperation,theERRLEDindicatesthattherewasaproblemwiththeGPIBcommandorwiththeModbuscommunication.IftheERRLEDilluminatesatpowerturn-on,itindicatesthattheunithasnotbeencalibratedsincethememorywaslastinitialized.Refertoparagraph5.3.1fordirectionsoncalibratingtheunit.

Page 14: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

1-9

1

1.8 PHySICAL

1.8.1 4899A Minibox

Size 7.45"Lx5.57"Wx1.52"H (18.92cmLx14.15cmWx3.86cmH) (SeeFigure1-1)

Weight 3lbs(1.4kg)includingadapter

Temperature Operating -10°Cto+55°C Storage -40°Cto+70°C

Humidity 0-90%RHwithoutcondensation

Shock/VibrationNormalhandlingonly

Construction Allmetalcase

Power [email protected]

Connectors IEEE488Interface Amphenol57-20240withmetricstuds

SerialInterface CinchDB-25Sfemaleconnectorwithlockstuds

Page 15: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

1-10

1

Figure 1-1 4899A Outline Dimensions

18.9

2 cm

Side

Vie

w

14.1

5 cm

End

View

3.86

cm

.254

cm

0.95

cm

max

conn

ecto

r

Page 16: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

1-11

1

1.8.2 4809A Board Assembly

Size 5.50"Lx4.50"Wx0.5"H (139.7mmLx114.3mmWx12.7mmH) (SeeFigure1-2)

Weight 6oz.(0.17kg)

Temperature Operating-10°Cto+55°C Storage -40°Cto+70°C

Humidity 0-90%RHwithoutcondensation

Shock/VibrationNormalhandlingonly

Construction Flame-retardantprintedcircuitboard

Power 5±0.25Vdc@300MA(regulated) 5.5to12Vdc(unregulated)

Connectors GPIB-24-pin3M2524maleheader GPIB/AddressSw-26-pin3M2526maleheader

Serial-26-pin3M2526maleheaderandDB-25Pmale connector.

Page 17: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

1-12

1 GPIB

Serial I/O

4809A

5.500

4.500

0.200typ

8 plcs

0.150 dia hole0.300 clear pad

1

1

1

RDYLSTFULL

PWRTLKBSY

1

+ -

4819Aor

4829A

J1GPIBConnector

J2SerialConnector

J3DeviceSerial

Connector

StatusLEDs

4.50

4.00

0.190 dia mounting holes (4 plcs)0.300 dia mounting padsMounting Blocks (2 plcs)

0.20 typ.

0.20 typ.

0.50 typ.

Figure 1-3 4819A/4829A Outline Dimensions

Figure 1-2 4809A Outline Dimensions

Page 18: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

1-13

1

1.8.3 4819A and 4829A PHySICAL

Size 4.00"Lx4.50"Wx0.7"H (10.16cmLx11.43cmWx1.78cmH) (SeeFigure1-3)

Weight 8oz(0.22kg)

Temperature Operating -10°Cto+55°C Storage -20°Cto+70°C

Humidity 0-90%RHwithoutcondensation

Shock/Vibration Normalhandlingonly

Construction Flame-retardantprintedcircuitboard. Connectorshellsgroundedtochassissupports andmountingbrackets.

Power 5±0.25Vdc@300MA(regulated) 5.5to12Vdc(unregulated)

Connectors GPIB-24-pinIEEE-488connectorwithmetric studs

ExternalRS-232Interface-DE-9Smaleconnector withlockstuds InternalSerialInterface-DE-9Pfemaleconnector withlockstuds

Page 19: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

1-14

1

1.9 4899A CERTIFICATIONS OR APPROVALS

EMI/RFI Meetslimitsforpart15,ClassAofUSFCCDocket20780andcomplieswithEECStandardsEN55022and50082-1.CECertificateofCompliancereproducedinFigure1-4.

UL/CSA/VDE ACWalladapterhasapplicableUL/CSA/VDEandCEapprovals

Page 20: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

1-15

1

Figure 1-4 4899A Certificate of Conformance

Certificate of Conformity

ApplicationofCouncilDirectives.......................................89/336/EEC

Standard(s)towhichConformityisDeclared.....EN55022,EN50082-1

Manufacturer'sName ICS Electronics div Systems West, Inc.

Manufacturer'sAddress 473 Los Coches Street Milpitas, CA 95035 USAImporter'sName

Importer'sAddress

Typeofequipment GPIB to Serial Converter

ModelNo. 4899

SerialNo.Thru,Yearofmanufacturer

I, the undersigned, hereby declare that the equipment specified above con-forms to the above Directive(s) and Standard(s) by virtue of its similarity with the Model 4894.

Place SignatureDate (FullName)

Title

1999

Milpitas,CA, USA

Sept.14, 1999 Gerald K. Mercola

President

Page 21: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

1-16

1

1.10 ACCESSORIES

1.10.1 4899A Included Accessories

120117 4809A/4819A/4829A/4899AInstructionManualA/R ACWallAdapter,withapplicableplug123021 SupportCD-ROM

1.10.2 4809A/4819A/4829A Included Accessories

120117 4809A/4819A/4829A/4899AInstructionManual123021 SupportCD-ROM

1.10.3 Optional Accessories

120117 4809A/4819A/4829A/4899AInstructionManual

113640-L HorizontalGPIBConnector/AddressSwitchAssembly(Dashnumberiscablelengthfrom10to90CMlong.90CMstandard)

113642-L VerticalGPIBConnector/AddressSwitchAssembly(Dashnumberiscablelengthfrom10to90CMlong. 90CMstandard)

114439-L GPIBFlatRibbonExtensionCable for4809A. (Dashnumber iscable length from10 to90CM long. 90CMstandard)

114256-L SerialFlatRibbonExtensionCablefrom4809AtoDB-25Pmaleconnector.(Dashnumberiscablelengthfrom10to90CMlong.90CMstandard)

Page 22: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

2-1

2

2

Installation2.1 UNPACKING

Whenunpacking,checktheunit(s)forsignsofshippingdamage(damagedbox,scratches,dents,etc.)Iftheunitisdamagedorfailstomeetspecifica-tions,notifyICSElectronicsoryourlocalsalesrepresentativeimmediately.Also,callthecarrierimmediatelyandretaintheshippingcartonandpack-ingmaterialforthecarrier'sinspection.ICSwillmakearrangementsfortheunittoberepairedorreplacedwithoutwaitingfortheclaimagainstthecarriertobesettled.

2.2 SHIPMENT VERIFICATION

Takeamomenttoverifytheshipment.Eachshipmentincludes:

(1) Model4809A,4819A,4829Aor4899AGPIB<->Modbus Interface(1) ACPowerAdapter(Model4899Aonly)(1) 4809A/4819A/4829A/4899AInstructionManual(1) SupportCD-ROM

Boardonlyordersdonot includemanualsorconfigurationdisksunlessorderedseparately.

TakeamomenttocheckICS'swebsiteathttp://www.icselect.comforanymanualerrataorthelatestconfigurationprograms.

Page 23: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

2-2

2

2.3 INSTALLATION GUIDES

2.3.1 4899A Installation Guide

Thefollowingstepsshouldbeusedasaguidetosettingupandusingyour4899A.

1. Ifthe4899AistobeusedwithRS-422orRS-485signals,changethejumpersettingsasdirectedinSection2.11.

2. SeeSection2.10toselectand/ordesigntheserialcable. CAUTION-Check'standard'serialcablewiringcarefullyasmay

standardcablesmaynotmakeproperconnectionstotheModbusRTUController.

3. Iftheunitistogointoarackmountingkit,disconnectallcablesfromtheunit.FollowtheinstructionsinSection2.12toinstalltheunititintherackmountingkit.

4. ConnecttheACadaptertothe4899AandtotheACpower.Turn

theunitonandverifythatitpassesitsselftestandthatitindicatesthecorrectGPIBaddress.Usethe*IDN?querytoverifyGPIBcommunication.

5. ReviewthefactorysettingsinTable1-1todetermineifyourunitneedstobereconfigured.Ifthe4899Aneedstobereconfigured,followtheinstructionsinSections2.4-2.8tochangeitsconfigura-tion.Savethenewsettings.

6. UseaGPIBkeyboardorsimilarinteractiveGPIBcontrolprogram

toquerytheinternalmodbusdevice'smodelnumberorsomeotherknown value following the examples in section 3.8. A typicalmessagewouldbe'R?0,1'toqueryitsmodelnumber.Readtheresponsetoconfirmthatitistheexpectedresponse.TryoutotherModbuscommandsthatapplytotheModbusdevice.

Page 24: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

2-3

2

2.3.2 4809A Installation Guide

Thefollowingstepsshouldbeusedasaguidetothe4809Ainstallation.

1. Ifthe4809AistobeusedwithRS-422orRS-485signals,changethejumpersettingsasdirectedinSection2.11.

2. ReviewSections2.8and2.10toselectand/ordesigntheGPIBandserialinterfacecables.

3. Selectaconvenientlocationtomountthe4809A.Donotmountitdirectlyoveraheatproducingsurface.Providea0.1inch(2.5mm)clearanceunderneaththe4809Aoruseaninsulatorifthe4809Aisbeingmountedonametalsurface.UsethedimensionsinFigure1-3toestablishthemountingholelocations.

4. Use a twisted pair of #24wires to connect the 4809A's powerterminalstothehost'spowersupply.Connectthe4809Adirectlytothepowersupplytoavoidnoiseproblems.SetjumperW1toREGforunregulated5.5-12voltpower,toP1forregulated5voltpower.

5. PlugintheGPIBandserialcablesandconnecttheunittotheGPIBcontroller.TurntheunitonandverifythatitpassesitsselftestandindicatesthecorrectGPIBaddress.Usethe*IDN?querytoverifyGPIBcommunication.

6. ReviewthefactorysettingsinTable1-1todetermineifyourunitneedstobereconfigured.Ifthe4809Aneedstobereconfigured,followtheinstructionsinSections2.4-2.8tochangeitsconfigura-tion.Savethenewsettings.

7. UseaGPIBkeyboardorsimilarinteractiveGPIBcontrolprogramtoquerytheinternalmodbusdevice'smodelnumberorsomeotherknown value following the examples in section 3.8. A typicalmessagewouldbe'R?0,1'toqueryitsmodelnumber.Readtheresponsetoconfirmthatitistheexpectedresponse.TryoutotherModbuscommandsthatapplytotheModbusdevice.

Page 25: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

2-4

2

2.3.3 4819A/4829A Installation Guide

The following steps should be used as a guide to the 4819Aor 4829Ainstallation.

1. ReviewSection2.10 to select and/ordesign the serial interfacecables.

2. Selectaspotontherearpaneltomounttheboard.The4819A/4829Amountsperpendiculartotherearpanelandisheldinplacewithmountingblocks.UsethecutoutsandmountingdimensionsshowninFigure2-1fortheconnectorcutouts.Cutout'A'isfortheIEEE-488/GPIBconnector.Cutout'B'isfortheDE-9serialconnector.Donotmounttheboarddirectlyoveraheatemittingsurface.Pro-videa0.1inch(2.5mm)clearanceunderneaththeboardoruseaninsulatoriftheboardisbeingmountedonametalsurface.

A B

Notes: 1. Grayed lines are PC board and mounting blocks2. Mounting holes are 0.150 dia thru3. Cutout A is 1.575 in x 0.625 in with 0.150 dia holes4. Cutout B is 0.875 in x 0.450 in 'D' shell with 10 slope to bottom and with 0.125 dia holes

0.2470.3200.218

0

00.

200

0.67

9

2.52

1

2.95

0

3.93

4

4.30

04.

500

1.60

0

3.44

2

Downloadamountingtemplatefromhttp://www.icselect.com/pdfs/4819Alayout.pdf.

Figure 2-1 4819A and 4829A Rear Panel Cutouts

3. TominimizeEMI/RFIandtomaximizeelectricalimmunity,usethemountingblockstofastentheboardtotherearpanelofthehostchassis.Theconnectorshellsshouldfitagainsttherearpanel.UsetherecommendedcutoutsinFigure2-1tooverlaptheconnectors.Deburrthepanelaftermachiningandremoveanyinsulatingfinishthatwouldpreventtheboardfrommakinggoodchassisconnec-tions.

4. Useatwistedpairof#24wirestoconnectexternalDCpowertothescrewterminalsatP1.Connecttheboarddirectlytothepower

Page 26: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

2-5

2

supplytoavoidnoiseproblems.SetjumperW2toREGforun-regulated5.5-12voltpower,toP1forregulated5voltpower.

5. PlugthecablefromtheinternalmodbusdeviceintoJ3andconnecttheboardtoaGPIBcontroller. TurntheunitonandverifythatitpassesitsselftestandblinksitscorrectGPIBaddress.Usethe*IDN?querytoverifyGPIBcommunicationwiththeboard.

6. ReviewthefactorysettingsinTable1-1todetermineifyourunitneedstobereconfiguredbeforeitcansenddatatotheserialdevice.If theboardneeds tobe reconfigured, follow the instructions inSections2.4-2.8tochangeitssettings.Savethenewvalues.

7. UseaGPIBkeyboardorsimilarinteractiveGPIBcontrolprogram

toquerytheinternalmodbusdevice'smodelnumberorsomeotherknown value following the examples in section 3.8. A typicalmessagewouldbe'R?0,1'toqueryitsmodelnumber.Readtheresponsetoconfirmthatitistheexpectedresponse.TryoutotherModbuscommandsthatapplytotheModbusdevice.

Page 27: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

2-6

2

2.4 CONFIGURATION DIRECTIONS

Whenshipped,the4809A,4819A,4829Aor4899AaresettothefactoryconfigurationlistedinTable1-1.TheconfigurableparametersarestoredinFlash(EEPROMmemoryonolderboards)andcanbequeriedandchangedbytheuser.

Configuringa4899Aisathreestepprocess.Firstdesignthelinkbetweentheunitandtheserialdevice.Thiswillprovideyouwiththeserialconfigurationvalues.Secondly,reviewtheSCPIcommandsandprogrammingguideinSection3toselecttheconfigurationsettings.Thenfollowtheinstructionsin2.6or2.7toconfiguretheunit.

IfyouareusingaPCasabuscontroller,theeasiestwaytoconfiguretheunitistouseICS’sMiniboxconfigurationprogram,niconf_w.exe,whichguidestheuserthroughamenu-drivenconfigurationprocedure.niconf_w.exe runs withanyICS,NationalInstruments,MCCorotherGPIBControllercardthathasaGPIB-32.DLLandusestheNIcommandset.FollowtheinstructionsinSection2.6whenusingtheniconf_w.execonfigurationprogram.

Becausetheseunitshaveonlyafewconfigurableparameters,theycanbeeasilyconfiguredbyenteringtheSCPIcommandsdirectlyintoaninterac-tivecommandlineutilitysuppliedbyyourGPIBControllerCardmanufac-turer.YoucanalsouseICS’sGPIBkybdprogramwithanyAdlink,ICS,Keithley,MCCorNationalInstrumentGPIBControllercard.FollowtheinstructionsinSection2.7whenusingoneoftheseinteractivecommandlineprograms.

Page 28: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

2-7

2

2.5 THE SUPPORT CD-ROM

TheSupportCD-ROMcontainsConfigurationPrograms,UtilityPrograms,andExampleProgramsforICS’sinterfaceproductsplusbackupManualsApplicationNotesandreferencematerials.

WhenyouloadtheCDintotheCD-ROMdrive,itshouldautomaticallyrunanddisplaytheSupportCDSelectionWindow.ClickConfigureGPIBInterfacestoruntheniconf_w.exeprogramorInstallKeyboardUtilitiestoinstalltheGPIBkybdprogram.Youcanalwaysdownloadniconf_w.exe fromtheSupportCDandsaveitonyourharddriveandlaterrunitdirectlyfromourharddrive.

CAUTIONDonotclickonInstall488.2V3Driverasthatmaydamageyour

existingGPIBDriverInstallation.

UsetheBrowseCDorViewReadmeFiletoexaminetheCDcontents.

Page 29: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

2-8

2

2.6 RUNNING ICS'S CONFIGURATION PROGRAM

Theconfigurationprogramsupportsthestandardconfigurableitems.Spe-cialsettingssuchastheuser'sIDNmessagewillhavetobeenteredwithalivekeyboardprogram(suchasICS'sGPIBkybdprogram)oraspartoftheuser'sprogram(Seesection3.8.6).

1. Connectthe4899AtotheGPIBcontrollercardinthePCortoaUSB-GPIBControllerasshowninFigure2-2(a).ConnectaDCpowersupplytotheunit.

GPIB Bus Cable

AC Adapter

4899A

PC with GPIB Controller Card

(a) 4899A Configuration Setup

Connectthe4809A,4819Aor4829AtotheGPIBcontrollercardinthePCortoaUSB-GPIBControllerasshowninFigure2-2(b).ConnectaDCpowersupplytothepowerterminalstrip.SetjumperW2totheP1position.Setthepowersupplyto5±0.2Vdc.

GPIB Bus Cable

4819A

DC Power SupplyPC with GPIB Controller Card

(b) 4809A , 4819A or 4829A Configuration Setup

Figure 2-2 Configuration Setups

2. Applypowertotheunit.After0.5seconds,theunitshouldblinkitsGPIBbusaddressontheLEDs.TheselftestendswiththePWRandRDYLEDsbothonandtheotherLEDsoff.

Page 30: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

2-9

2

3. Runtheconfigurationprogram.Thismaybedonebydoubleclick-ingontheprogramnameorbytypingtheprogram'snameattheDOSpromptorintheWindowsRuncommandbox.

> c:\new_directory\MCONFIG <return>

4. ProductSelection

Theprogramwilldisplayalistofmodelnumbers.Enterorselectthenumberthatcorrespondstothemodelthatyouareconfiguringandpressreturn

4899A <return> 'selects Model 4899A

Theprogrammayaskthatyouturntheunitoffandbackon.PresstheContinuekeywhentheunithasfinisheditsselftest.

5. GPIBAddress

Theprogrambranchestotheselectedproductmenuandasksfortheunit'scurrentGPIBaddress.Enteraoneortwodigitvalue;i.e.,4,04,10andclicktheSETbutton.Thefactorydefaultset-tingis4.Ifyoudonotknowtheunit'sGPIBaddress,turntheunitoffandbackon.TheunitwillblinkitsGPIBaddressonthefrontpanelLEDsatpowerturn-on.AddthebitweightstogettheGPIBaddress.

RDY TALKLSTN SRQ ERR 16 8 4 2 1

6. ConfigurationChoices

Theconfigurationprogramstepsthrougheachparameteranddis-playsthecurrentsettingandconfigurationchoices.Theusershouldrefer to thecommanddefinitions inTable3-3 tounderstandthecommandchoicesandtheiraffectontheunit’soperation.SettingchangesaremadebyenteringavalueintheboxabovetheEnter/Acceptbuttonandthenclickingthebutton.Theprogramwillmakethechangeanddisplaythenewsetting.SettingsareacceptedbyclickingtheEnter/Acceptbuttonwhichadvancesyoutothenextparameteranddoesnotchangethecurrentsetting.

Page 31: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

2-10

2

Figure 2-3 Configuration Program shown prior to saving

the new settings

7. SavingtheNewSettings

Afterthelastparameterhasbeenaccepted,theprogramwillgiveyouseveralconfigurationchoices.

TheprogrammaygiveyoutheopportunitytosettheSREandESEenablebitregistersandtosavethevaluessotheunitcangenerateaSRQatpowerturn-on.EnterytosetPSC0;NtosetPSC1orclicktheappropriateboxes.

Theprogrammayaskifyouwanttolocktheparameterssothattheycannotbechangedbytheenduser.Theconfigurationprogramautomaticallyunlockstheparameterswheneveritisrun.Entery tolock;Ntocontinueorclicktheappropriatebox.

Theprogramwillaskifyouwanttosavethecurrentconfiguration.Enterytosave;Ntocontinueorclicktheappropriatebox

8. Configuringotherunits

Theprogramwillaskifyouwanttoconfigureanotherunit.Enterytoconfigureanotherunit;Ntoexit.

Page 32: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

2-11

2

2.7 CONFIGURING WITH AN INTERACTIVE PROGRAM

2.7.1 General Configuration Instructions

The4899AcanbeeasilyconfiguredfromanyGPIBbuscontrollerwithaninteractiveprogramsuchasICS'sGPIBkybdprogrambyusingthefol-lowingprocedure.

1. Connect the unit to the GPIB controller as shown in Figure 2-2.RuntheprogramandifrequireduseanAbort,RENoratake

controltypecommandtohavethebuscontrollerassertREN.Thenturntheuniton.

2. Determinetheunit’sGPIBaddress:

a) Fornewunitsusethefactorysettingof04.

b) Forotherunits,turntheunitoffandbackon.Attheendofitsselftest,theunitblinksitsGPIBaddressontheLEDs.

RDY TALK LSTN SRQ ERR 16 8 4 2 1

Figure 2-4 GPIBkybd Program with 4829A's IDN response

Page 33: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

2-12

2

3. Verifycommunicationtotheunitbysendingitthe*IDN?queryandreadingbacktheunit’sIDNmessage.GPIBkybduserscanusethepulldownarrowontherightsideoftheDeviceCommandwindowandselect*IDN?.

4. UsetheSCPICommandtreeinTable3-2toputtogethertheSCPIcommandfortheparameteryouwanttochange.(Seeparagraph3.6ifyouneedhelpusingSCPIcommands.)Enterthecommandsintoyourinteractiveprogram(GPIBkybdDeviceCommandWindow)andpress“Send”.Ifyouarequeryingavaluepressthe“Query”iftheprogramhasthatchoice.Ifnot,youwillhavetomanually“Read”theresponse.ICS’sGPIBkybdprogramhasanautoqueryfunctionsoitwillautomaticallyreadbackaresponseifyoujustpress“Send”.Thefollowingexampleshowshowtochangeandquerythebaudrate.

SYST:COMM:SER:BAUD 19200 ‘sets the baud rateSYST:COMM:SER:BAUD? ‘queries the baud rate ‘should reply 19200

5. Usecautionwhenchangingtheunit’sGPIBaddress.Thechangetakesplaceimmediatelywhenthecommandisexecuted.Providea0.1seconddelaybeforequeryingthenewaddresssetting.

i.e., tochangetheGPIBaddressto20

SYST:COMM:GPIB:ADDR 20 ‘ send address 20 ‘Wait 0.1 seconds

Changethedevice’sGPIBaddressintheinteractiveprogramtothenewaddress,inthiscase20.Querythedevicetobesuretheaddresschanged.

SYST:COMM:GPIB:ADDR? ‘should read back 20

6. Use the*SAV 0 command(That isasteriskSAVspace0) tosavethenewaddressvaluesintheunit’snonvolatilememory.The*SAV 0commandstoresthecurrentI/Oconfigurationsettingsasthepower-onvalues.

*SAV 0

Page 34: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

2-13

2

2.8 GPIB CONNECTIONS

2.8.1 4819A, 4829A and 4899A GPIB Connections

The4819A,4829Aand4899Ahavestandard24-pinIEEE-488connectorwithmetriclockstuds.TheirIEEE-488connectormateswithallstan-dardIEEE488/GPIBbuscables.Signal-pinassignmentsforthestandardIEEE-488connectorareshowninFigureA-2intheAppendix.2.9

2.8.2 4809A GPIB Connections

The4809Ahastwomaleflat-ribbonmaleconnectorsthatcanbeusedtoconnectthe4809AtotheGPIBbus.ConnectorJ1isa24-pinconnectorthatisdesignedforpin-to-pinconnectiontotheGPIB.ConnectorJ2isa26-pinconnectorthatcontainstheaddressswitchinputsignalsandtheGPIBbussignals.The4809AonlyrequiresthatoneoftheconnectorsbeusedtoconnectittotheGPIBbus.Theunusedconnectorshouldbeleftopen.

2.8.2.1 GPIB Connector J1

TheGPIBSignal-pinassignmentsforJ1areidenticaltoastandardIEEE-488connectorasshowninFigureA-2intheAppendix.TheJ1connectorlayoutisshowninFigure2-5.UseaflatribboncablelikeICS’s114439-Lcablewitha24-pinplugononeendandaGPIBconnectorontheotherendtoconnectJ1totheGPIBbus.CutanopeningfortheGPIBconnectorontherearpanel(SeecutoutAandholesCinFigure2-1).MounttheGPIBconnectorontherearpanelofthechassiswiththemetriclockstuds.Fab-ricateaflatribboncableasshowninFigure2-6orpurchaseitfromICSElectronicsasP/N114439-LwhereListhecablelengthincm.

Figure 2-5

4809A J1 GPIBConnector-Pin

Layout

242322212019181716151413

121110987654321

PCBoardEdge

J2 J1

Page 35: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

2-14

2

AMP 554349-1

Metric Lockstuds

3M 3626

Figure 2-6 114439 Flat Ribbon Cable Assembly

2.8.1.2 GPIB/Address Switch Connector J2

ConnectorJ2isa26-pinconnectorthatcontainstheGPIBexternaladdressswitchsignalsaswellastheGPIBbussignals.J2isusedwhenyouwanttouseanexternalGPIBaddressswitchwiththe4809A.TheJ2connectorlayoutisshowninFigure2-8andthesignal-pinassignmentsarelistedinTable2-1.Theexternaladdressswitchinputsarelowtruesignalswithpullupresistorsonthe4809A.Atpowerturn-on,the4809Areadsthefiveaddresslines(ADSW1-ADSW5)iftheexternaladdressswitchisenabled.

ConnectorJ2mateswithICS’sGPIBConnector/AddressSwitchAssem-blies.TheseassembliesaresmallbusinesscardsizeassembliesthatmountaGPIBconnectoranda8-bitrockerswitchtotherearpanelofachassis.Theyhavea26conductor,flatribboncablethatplugsintoJ2onthe4809A.Theassembliesareavailableintwolayoutstyles.RefertoAppendixA3fordimensions,installationinstructionsandsilkscreen.SwitchlayoutandrockerfunctionsareshowninFigure2.7.Notethatrockers7and8arenotusedbythe4809A.

Switchsettoaddress4 On is up

Figure 2-7 Address Switch Rocker Assignments

1 2 3 4 5 6 7 8

ON

1 8 4 2 1 0 - -6

Page 36: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

2-15

2

TABLE 2-1 4809A GPIB/Address Connector Signals (J2)

Signal Pin Wire Bit Number Color Weights

GROUND 1 BRN1 ADSW5 2 RED1 16(MSB) TSW 3 ORG1 notused LSW 4 YEL1 notused ADSW4 5 GRN1 8 SISW 6 BLU1 notused ADSW1 7 VIO1 1(LSB) ADSW3 8 GRY1 4 ADSW2 9 WHT1 2 NRFD 10 BLK1 GPIBSignals REN 11 BRN2 DAV 12 RED2 IFC 13 ORG2 NDAC 14 YEL2 EOI 15 GRN2 ATN 16 BLU2 SRQ 17 VIO2 DIO1 18 GRY2 DIO2 19 WHT2 DIO3 20 BLK2 DIO4 21 BRN3 DIO5 22 RED3 DIO6 23 ORG3 DIO7 24 YEL3 DIO8 25 GRN3 GROUND 26 BLU3 GPIBSignals

Figure 2-8 4809A GPIB J2Connector Pin Layouts

13579

1113151719212325

2468

101214161820222426

PCBoardEdge

Page 37: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

2-16

2

SERIAL INTERFACE CONNECTIONS

2.9.1 4809A Serial Connections

The4809A’sserialportisaDTE(DataTerminalEquipment)interfaceona26-pinmaleribbonconnector(J3)andaDB-25Pconnector(J4). The26-pinmaleribbonconnectorisforcompatibilitywiththeearlier4809’s.TheDB-25PconnectorallowsstandardDB-25Sconnectorstobeusedwiththe4809A.RS-232andRS-422(RS-485)signalselectionismadebysettingjumpersonthe4809A.Refertosection2.13forjumpersettinginstructions.Table2-2showsthe4809A’ssignal-pinassignmentsandsignaldirections.Figure2-9showsthepinlayoutforconnectorJ3.

2.9.1.1 4809A LED Outputs

The4809A’sTALKandLSTNLEDdriveroutputsareprovidedonpins17and21onconnectorJ3andJ4todriveremoteLEDs.Eachsignalislowtrueandcansink3mA.Usearesistorinserieswith5VdctolimitthecurrenttoLED.ConnecttheLEDcathodestothedriversignals.Therecommendedresistorvalueis1500ohmsfor5Vdc.Connectthe5voltreturnlinetopin7.

2.9.2 4819A Serial Connections

The4819Ahastworight-angle9-pinconnectorsforitsRS-232interfaces.Connector J2 is theexternal serial connector thatprotrudes through therearpanel.ConnectorJ3istheinternalserialconnectorforconnectingthe4819Atotheserialdevice.SignalpinassignmentsforbothconnectorsareshowninTable2-3.

2.9.2.1 4819A Rear Panel Connector J2

RearpanelconnectorJ2isaDE-9PconnectorwithDTEtypesignalas-signmentssimilartothesignalsinaPCCOMport.SignalTxDonpin2istheoutputsignalandRxDonpin3istheinputsignal.RTSandDTRarepulledhightothe‘ON’state.DTRisinternallyjumperedtoCTS.

Page 38: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

2-17

2

RS-232

AABABBCACB

ABCF

CD

Pin

1234567891011121314151617181920212223242526

TABLE 2-2 4809A/4899A Serial Connector Signal-Pin Assignments

DirectionIn Out

→←→←

←→

←→

→→→

Signal

ChassisSendData(A)ReceiveData(A)Request-to-Send(A)Clear-to-Send(A)DataSetReadyGroundSignalDetected(A)

SignalDetected(B)

Clear-to-send(B)SendData(B)

ReceiveData(B)4809ATalkLEDDvr-

Request-to-send(B)DataTerminalRdy(A)4809AListenLEDDvr-

DataTerminalRdy(B)

RS-422RS-485

—SD(A)RD(A)RS(A)CS(A)

RR(A)

RR(B)

CS(B)SD(B)

RD(B)

RS(B)TR(A)

TR(B)

Note:Pin26isonlyavailableonthe4809A

Figure 2-9 4809A J3 Serial Connector Pin Layout

123456789

10111213

14151617181920212223242526

PCBoardEdge

J3

Page 39: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

2-18

2

TABLE 2-3 4819A SIGNAL ASSIGNMENTS

Rear Panel Connector J2 Internal Connector J3

Pin # Signals Signal Signals Pin # DE-9P Direction DE-9S

1 DCD +V DCD 1 2 TxD ← TxD* 2 3 RxD → RxD* 3 4 DTR+V DTR 4 5 GND − GND 5 6 DSR DSR 6 7 RTS+V RTS 7 8 CTS CTS 8 9 nc − nc 9 Notes: 1.+Vis+9Vdcthrougha3.3kohmresistor. 2.*Standardsetting.TxDandRxDcanbeswitchedbysettingjumper W4totheDTEposition.

2.9.2.2 4819A Internal Connector J3

InternalconnectorJ3isaDE-9SconnectorwithDCEtypesignalassign-ments.SignalRxDonpin3istheoutputtotheinternalserialdevice.SignalTxDonpin2isdrivenbytheinternalserialdevice.TheRxDandTxDpinscanbeexchangedbyrotatingjumpersW490degrees.DCDandDSRarepulleduptoan‘ON’stateandRTSisjumperedbacktoCTS. 2.9.3 4829A Serial Connections

The4829Ahastworight-angle9-pinconnectorsforitsserialinterfaces.ConnectorJ2istheexternalRS-232serialconnectorthatprotrudesthroughtherearpanel.ConnectorJ3istheinternalRS-485serialconnectorforconnectingthe4829Atotheserialdevice.SignalpinassignmentsforbothconnectorsareshowninTable2-4.

2.9.3.1 4829A Rear Panel Connector J2

RearpanelconnectorJ2isaDE-9PconnectorwithDTEtypesignalas-signmentssimilartothesignalsinaPCCOMport.SignalTxDonpin2istheoutputsignalandRxDonpin3istheinputsignal.RTSandDTRarepulledhightothe‘ON’state.DTRisinternallyjumperedtoCTS.

Page 40: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

2-19

2

TABLE 2-4 4829A SIGNAL ASSIGNMENTS

Rear Panel Connector J2 Internal Connector J3

Pin # Signals Signal Signals Pin # DE-9P Direction DE-9S

1 DCD RD(B) 1 2 TxD ← RD(A) 2 3 RxD → SD(A) 3 4 DTR+V SD(B) 4 5 GND − GND 5 6 DSR nc 6 7 RTS+V nc 7 8 CTS nc 8 9 nc − nc 9

Notes: 1.+Vis+9Vdcthrougha3.3kohmresistor. 2.*Standardsetting.TxDandRxDcanbeswitchedbysetting jumperW4totheDTEposition.

2.9.3.2 4829A Internal Connector J3

InternalconnectorJ3isaDE-9SconnectorwithSDandRDdifferentialsignalpairs.TheSDandRDsignalpairsareafour-wire,full-duplexinterface.TheSDandRDsignalpairscanbejumperedtogetheronthe4829Aboardforhalf-duplexoperationbyinstallingjumpersW4andW5.

2.9.4 4899A Serial Connections

The4899A’sserialportisaDTE(DataTerminalEquipment)interfaceonaDB-25Sfemaleconnector.TheconnectorhasbothRS-232andRS-422/RS-485signalsinaccordancewithEIA-STD-RS-530.RS-232andRS-422(RS-485)signalselection ismadebysetting jumpers inside the4899A.Refertosection2.10forjumpersettinginstructions.Table2-2showsthe4899A’ssignal-pinassignmentsandsignaldirections.

Page 41: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

2-20

2

2.10 Modbus Device Connections

2.10.1 RS-232 Connections to a Modbus Device

TheminimumRS-232connectionusesjustthreelinestoconnecttheunittoaModbusslavedevice.Thelinesaretransmitdata(TxD),receivedata(RxD),andGround.Thefollowingexamplesshowhowthe4899A,4809Aand4819Aarewired to some typicalRS-232TemperatureControllers.Refer toTable 5-2 for troubleshootingModbusDevice communicationproblems.

Figure2-10showsthe4899Aor4809ARS-232connectiontoaWatlowF4TemperatureController.Bothinterfacestransmitonpin2andreceiveonpin3.

1234567..

25

4899Aor

4809A

WATLOW F4

4899A/4809ATXDRXD

1..

1213141516

Figure 2-10 4899A/4809A RS-232 Connections to a Watlow F4

Figure2-11showsthe4819A'sRS-232connectiontoaWatlowF4Tem-peratureController.The4819A'stransmitsignalisonpin3anditsreceiveinputsignalisonpin2withtheDCE/DTEjumpersW4setintheDCEposition.SwitchjumperW4totheDTEdirectiontoswapthesignalpinassignments.

1235:9

4819A

4819ARXDTXD

1..

1213141516

GPIB

Serial

76

WATLOW F4

Figure 2-11 4819A RS-232 Connections to a Watlow F4

Page 42: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

2-21

2

Figure2-12showsthe4819A'sRS-232connectiontoaWatlowseries96TemperatureController.

1235:9

4819A 57WATLOW 96

4819ARXDTXD 19

2120

GPIB

Serial

Figure 2-12 4819A RS-232 Connections to a Watlow 96

2.10.2 RS-485 Connections to a Modbus Device

The4809A,4829Aand4899A'sserialinterfaceprovidesatransmit(SD)andareceive(RD)pairofRS-422/RS-485signals.BecausemostRS-485Modbusnetworksaretwowire,half-duplexnetworks,theSDandRDsig-nalpairshavetobejumperedtogetherinthecableconnector.The4809A,4829Aand4899AhavetobeconfiguredforRS-485operationwhenusedonatwowireRS-485network.UsetheSYST:COMM:SER:RS485ONcommandtoconfiguretheunits.TheONsettingcausestheunittotristateitsserialtransmitterwhennottransmittingwhichfree'sthenetworksotheModbuscanrespondtothemessage.

TwowireRS-485networksalsoneedterminationnetworkstobiasthelinesinthe'mark'statewhenneitherunitistransmitting.Theterminationnetworksaremadeupofapullup,apulldownandaloadresistor.Theterminationnetworkspreventeachreceiverfrominputtingnoisewhennothingisbeingtransmitted.Useoneterminationnetworkforshortcablesof200feetorless.Forlongercables,useaterminationnetworkateachendofthecable.Setthebiasvoltagestoapproximately2Vdcand2.5Vdc.Useresistorswithanapproximatevalueof500ohms/volt.

Figure2-13showsamethodofmakingtheRS-485connectiontoa4899Aor4809A.Figure2-13usesthe4899A/4809A'sinternalpullupresistoravail-ableatpin20topulluptheSD(B)andRD(B)lines.A1kohmresistorfromSD(A)andRD(A)togroundisthepulldownresistor.The220ohmloadresistorcompletesthecircuit.The4829AcontainsaninternalterminationnetworkontheRDsignalpairanddoesnotneedexternalresistors.

Page 43: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

2-22

2

4899A or 4809A

DB-25P20

2

14

3

16

7

3 KVcc

220

1K

SD(A)

SD(B)

RD(A)

RD(B)

Tx/Rx-

Tx/Rx+

Figure 2-13 4899A/4809A Pullup/Pulldown Resistor Connections

Figure2-14showsanexampleofasingle4899Aor4809AdrivingtwoModbusdevicesoveraRS-485network.InFigure2-12,theterminationnetworkuses5VdcandgroundprovidedbytheWatlowF4TemperatureControllers.

1214316.7..

25

4899Aor

4809A

WATLOW F41.

111213141516

WATLOW F4

T+/R+T-/R-

1K

1K

120

1.

111213141516

Figure 2-14 RS-485 Network connections to Watlow F4 Controllers

Figure2-15showsanexampleofasingle4899Aor4809AdrivingaWatlowEZZoneControllerwithasimplepoint-to-pointRS-485network. TheEZZonecontrollerdoesnothaveeasyterminalstoattachaterminationnetworksothenetworkconnectionsshowninFigure11arereusedhere.

Page 44: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

2-23

2

The4899A/4809A'sinternalpullupresistoratpin20isusedtopulluptheSD(B)andRD(B)linesandapplyapositivesignaltotheTx/Rx-line.A1kohmresistorfromSD(A)andRD(A)togroundisthepulldownresistorfortheTx/Rx+line.The220ohmloadresistorcompletesthecircuit.

9899CCCACBB5D6D5

EZ

8AC Power

4899A/4809ADB-25P

1

2

3

14

20

220

1K

RD(A)

SD(B)

SD(A)Tx/Rx-

Tx/Rx+

78F

96

7

+5 V3K

16RD(B)

Figure 2-15 RS-485 Network connections to a Watlow EZ Zone Controller

Figure16showsan4829AdrivingasingleWatlowEZZoneControllerwith itRS-485output. The4829Ahasan internal terminationnetworkwitha220ohmloadresistorsoitdoesnotneedexternalresistors.IftheinternalW4andW5jumppersareinstalled(thegraylinksinFigure2-16),thennoexternaljumpersarerequiredandtheEXZZoneControlercanbeconnectedtoeither(A)-(B)signalpair.

9899CCCACBB5D6D5

EZ

8

AC Power

4829ADE-9S

1

2

3

4

5

SD(A)

SD(B)

RD(A)

RD(B)

Vcc

1K Tx/Rx-

Tx/Rx+

1K

GPIB

RS-232

78F

96

Figure 2-16 4829A connection to an EZ Zone Controller

Page 45: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

2-24

2

2.11 JUMPER SETTINGS

2.11.1 4809A Jumper Settings

The4809AhasfivejumpersasshowninFigure2-17.Table2-5liststhejumper functions and their factory settings. ForRS-232 serial signals,leavethejumpersinthe‘232’position.ForRS-422orRS-485signals,setjumpersW4,andW5tothe‘422’position.

TABLE 2-5 4809A JUMPER SETTINGS

Jumper Function Factory Setting

W1 Selectsinputpower REG P1fordirectregulated5Vdcpower REGforunregulatedDCpower

W2 SetforEPROMsize.Notuserchangeable. 512

W3 WriteEnable.Installedenablessavingsetupparameters Installed inEEPROM.Removetoblockwritestoconfiguration tables

W4 RS-232/RS-422signalselectionJumpers 232*W5 232forRS-232signals 232* 422forRS-422signals

Notes:*SetRS485to1forhalf-duplexoperationorto0forfull-duplexoperation.

GPIB

Serial I/O

1

1

1

RDYLSTFULL/

PWRTLK

BSY/

1 + -

J3

J4J1

J2

P1 R

EG

W1

422

232

422

232

W5

W4

W2256 512

W3

ERRSRQ

Figure 2-17 4809A W4 and W5 Jumpers set to RS-422 Position

Page 46: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

2-25

2

2.11.2 4819A Jumper Settings

The4819AhasfivejumpersasshowninFigure2-18.Table2-6liststhe4819Ajumperfunctionsandtheirfactorysettings.

TABLE 2-6 4819A JUMPER SETTINGS

Jumper Functions Factory Setting

W1 WriteEnable-Mustbeinplacetowritetoortosave Installed

datainthe4819A’sflashmemory.

W2 PowerSelection-Selectsinputpower.P1positionselects REG theterminalblockfora5Vdcregulatedpowersource. REGselectstheregulatoroutputfor5.5to15Vdcpower.

W3 Default-Installandpowercycletheunittoresettheunitto Omitted itsfactorydefaultsettings.Leaveoutfornormaloperation. W4 TxD/RxDSignalSwappingJumperPair-W4canbeused DCE toswaptheTxD/RxDpinsonconnectorJ3.Factorysetting istheDCEpositionwiththepinoutslistedinTable2-2.

W5 JumpersGPIBlogicgroundtochassisground. Omitted

J1GPIB

J3Internal

Serial I/O

4819A

PWR

TALK

SRQ

RDYLSTNERR

W2

P1R

EG

W1

J2Rear PanelSerial I/O

W3

+P1-

DTE

DC

E W4

W5Chassis

Figure 2-18 4819A Jumper Locations

Page 47: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

2-26

2

2.11.3 4829A Jumper Settings

The4829AhassevenjumpersasshowninFigure2-19.Table2-7liststhe4829Ajumperfunctionsandtheirfactorysettings.

TABLE 2-7 4829A JUMPER SETTINGS

Jumper Functions Factory Setting

W1 WriteEnable-Mustbeinplacetowritetoortosave Installed

datainthe4819A’sflashmemory.

W2 PowerSelection-Selectsinputpower.P1positionselects REG theterminalblockfora5Vdcregulatedpowersource. REGselectstheregulatoroutputfor5.5to15Vdcpower.

W3 Default-Installandpowercycletheunittoresettheunitto Omitted itsfactorydefaultsettings.Leaveoutfornormaloperation. W4 ConnectsSDpairtoRDsignalpair.Installforhalf-duplex Open*W5 operation,omitforfull-duplexoperation. W6 EnablesRDtransceiver100%oftime(Full-duplex)oronly Full* whentransmitting(Half-duplexoperation) W7 JumpersGPIBlogicgroundtochassisground. Omitted

Notes:*SettheRS485settingtomatchyourjumpersetting.

J1GPIB

J3Internal

Serial I/O

4829A

PWR

TALK

SRQ

RDY

LSTN

ERR

P1REG

W2

W1

W3

+P1-

Default

W4

W7

W5

J2Rear PanelSerial I/O

W6Chassis Gnd

Full Half

Figure 2-19 4829A Jumper Locations

Page 48: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

2-27

2

2.11.4 4899A Jumper Settings

The4899AhasinternaljumpersforselectingRS-232andRS-422/RS-485signals.Figure2-19onthenextpageshowsthejumperlocationsonthe4899A’sPCboard.Table2-8liststhejumperfunctions.

Thejumpersareaccessedbyremovingthetwoscrewsontherearpanelandslidingtheunitoutfromtherearofitscase. JumpersW4,W5andW6selectthetypeofsignalsforthe4899A’sserialinterface.ForRS-232serialsignals,leavethejumpersinthe‘232’positionasshowninFigure2-15.ForRS-422orRS-485signals,setjumpersW4,W5andW6tothe‘422’position.Donotchangetheotherjumperpositions.

Carefullyslidetheunitbackintoitscase,fittingthePCboardintothetracksoneachsideofthecase.BesuretheswitchandLEDsarecorrectlyalignedbeforepushingtheswitchthroughthefrontpanel.

Replacethetworearpanelscrews.

TABLE 2-8 4899A JUMPER SETTINGS

Jumper Function Factory Setting

W1 Selectsinterruptsource CT/CV CT/CVfor4899Aand4895,PRLfor4892

W2 SetforEPROMsize.Notuserchangeable 512

W3 WriteEnable.Installedenablessavingsetupparameters Installed inEEPROM.Removetoblockwritestoconfiguration tables

W4 RS-232/RS-422signalselectionJumpers 232*W5 232forRS-232signals 232*W6 422forRS-422signals 232*

W7 LEDsignaljumpers CVW8 CV/PRLfor4899A,CTfor4895 CV

W9 DefaultJumper.Restoresfactorydefaultsettingswhen Open installed.SameactionastheCAL:DEFAULTcommand. Notes:*SetRS485to1forhalf-duplexoperationorto0forfull-duplexoperation.

Page 49: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

2-28

2

UP

W8

W3

WR

ENA

W9

W6

Serial GPIB

SW

Y1U14

W1

422

232

CT/

CV

CT

CV

W7

W5 W4

422

232

422

232

CT

CV

PRL

DEFAULT

Figure 2-20 4899A Jumper Locations

Page 50: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

2-29

2

2.12 4899A RACK MOUNTING INSTRUCTIONS

TheModel4899Aisheldinitsrackmountingkitwithawinged-'U'shapedbracket.Performthefollowingstepstoinstalla4899Ainarackmount-ingkit:

1. Holdthe4899Aata30degreenosedownangleandplacethefrontbezelthroughtherackmountkitfromtherearofthekit.Pushitforwardthroughtheopeninguntiltherubberfeetlineupwiththeholesintherackmountingkit.Pushtheunitdownuntilitrestsflatonthekitandthefeetareinthefourholes.

2. Repeatstep1forasecondunitiftwounitsarebeingheldinonerackmountingkit.

3. Alinetheunit(s)sothebezelsareparallelwiththefrontoftherackmountkitandprotrudeequallythroughthefrontpaneloftherackmountingkit.

4. Setthebracketsoitstwoholeslineupwiththeholesintherackmountingkitextrusion.Usethesupplied4-40screwstoholdthebrackettotheextrusion.Donotovertighten.

5. Usethesupplied10-32screwstobolttherackmountingkitintotherack.

Page 51: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

2-30

2

Thispageleftintentionallyblank

Page 52: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

3-1

3

3

Operation3.1 INTRODUCTION

Thissectiondescribeshowthe4809A,4819A,4829Aand4899AinterfacesoperateandhowtheycontrolModbusRTUcontrollersfromtheGPIBbus.ThissectionalsodescribestheSCPIcommandsusedtoconfigureandcontroltheunits.WhereverthetextreferstotheModel4899A,itappliesequallytotheModels4809A,4819A,and4829Aunlessotherwisenoted. 3.2 OPERATION

3.2.1 Basic Operation

The4899AisaGPIB-to-SerialInterfacewithspecialfirmwarethatconvertsGPIBcommandsintoModbusRTUpacketstocommunicatewithModusdevices.The4899Arespondstothreetypesofcommands:1. IEEE-488.2CommonCommands inTable 3-2. These include the

*IDN?and*ESR?queriesandthe*SAV0savecommand.2. SCPICommandsinTable3-3areforsettinginternalvaluessuchas

theGPIBaddress,serialparameterslikebaudrateandconfiguringtheStatusReportingStructure.

3. ModbusCommands inTable3-5 for communicatingwithModbusdevice(s),settingthe4899A'sserialtimeoutandreadingtheModbusErrorRegister.

Anycommandsthatendina‘?’areaqueryandthe4899Arespondsbyout-puttingtheresponseontheGPIBbusthenexttimeitisaddressedasatalker.Any4899Aparametersettingswillbelostwhentheunitispowercycledunlessthe4899A'sconfigurationissavedwiththe*SAV0command.

Page 53: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

3-2

3

CommunicationwiththeModbusdeviceisserialandrequiresthattheusersetthe4899AandtheModbusdevicetothesameserialsettings.EachModbusdevicehasitsownaddresssothatitcanrespondtoserialpacketssenttoitsaddress.The Modbus device address is different and independent from the 4899A's GPIB bus address setting. AlthoughthetypicalTemperatureChamberhasonlyoneModbusController,the4899AcandrivemultipleModbusdeviceswhenusingaRS-485network.The'C'commandisusedtosettheModbusdeviceaddressinthe4899A.The4899ArememberstheModbusdeviceaddressuntilchangedbyasubsequent'C'commandorthe4899Aispoweredofforreset.

Modbusdevicesareregisterbaseddevicesandtheyarecontrolledbywritingvaluestoregistersthatcontroldifferentfunctionsi.e.temperaturesetpoint,alarmsettingsetc.DataistakenfromModbusdevicesbyreadingregistersassociatedwiththoseparametersi.e.temperature,humidity,etc.ICShascreatedasetofsimpleModbuscommandsforreading,writingandcom-municatingwithModbusdevices.WhentheseModbuscommandsaresenttothe4899AovertheGPIBbus,the4899AcommunicateswiththeselectedModbusdevice.ModbuscommandsshouldnotbemixedorconcatenatedwithIEEE-488.2orSCPIcommands.

If the 4899A'smessage packet is successfully received by theModbusdevice, theModbus device will generate a response packet that eitherconfirmsreceiptofthemessageorthatcontainstherequesteddata.The4899Areceivestheresponsepacketandvalidatesthepacket.Iftheresponsepacketisavalidresponsetoareadcommand,thereturneddataisheldintheGPIBtransmitbufferandwillbeoutputontheGPIBbusthenexttimethe4899Aisaddressedtotalk.Ifthemessageisanacknowledgmentmes-sage,thereisnofurtheraction.

The4899AexpectstoreceivearesponsefromtheModbusdevicewithinapresettimeperiodoritdeclaresatimeouterror.Thetimeoutperiodisprogrammableandisfactorysetto100milliseconds.Itisbettertosetthetimeoutperiodtoalargerthanneededvaluetoavoidunnecessarytimeouterrors.

Ifthemessagewasnotavalidmessage,orwasanexceptionmessage,orwasmissing,thenthe4899Asetstheappropriatebit(s)intheQuestionableConditionRegisterandputsadecimalvalueintheModbusErrorregister.Bothregistersarepartofthe4899A’sStatusReportingStructure.Ifthe

Page 54: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

3-3

3

appropriateregisterenablebitsaresettrue,thenthe4899AwillgenerateaServiceRequestbyassertingtheSRQline.TheSRQlinestaysasserteduntilthe4899AisserialpolledoruntilthebitsthatcausedtheSRQarereset.

3.2.2 4809A Differences

The4809Aisa4.5by5.5inchboardthatmountsinsideachassisortem-peraturechamber.Itisfunctionallyidenticaltothe4899AandhasbothRS-232andRS-422/RS-485serialinterfaces. The4809A'sbaudrateislimitedto38,400baud.

3.2.3 4819A Differences

The4819AmountsontherearpanelandhasbothaGPIBandanexternalserialconnectorwhichextendstheModbusserialpathtotherearpanelofthehostchassis.TheusercancontrolanRS-232Modbusdevicefromtheserialconnectororfromthe4819A’sGPIBinterface.However,bothinterfacescannotbeusedatthesametime.OncetheGPIBinterfaceisactivated,theserialinterfacecannotbeusedtocontroltheModbusdeviceuntilthe4819Ahasbeenpoweredoffandbackon.

3.2.4 4829A Differences

Likethe4819A,the4829AmountsontherearpanelofthehostchassisandhasbothaGPIBandanexternalRS-232serialconnectorwhichextendstheModbusserialpathtotherearpanelofthehostchassis.TheusercancontrolonetoseveralRS-485Modbusdevice(s)fromtheserialconnec-tororfromthe4829A’sGPIBinterface.However,bothinterfacescannotbeusedatthesametime.OncetheGPIBinterfaceisactivated,theserialinterfacecannotbeusedtocontroltheModbusdeviceuntiltheGPIBcon-nectionisremoved.

3.3 ADDRESSING THE UNITS

Page 55: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

3-4

3

3.3.1 Internal GPIB Address

The4809A,4819Aand4899AcanbesettoanyunusedGPIBprimaryad-dressbetween0and30.TheBusControllerwillusetheprimaryaddresstoaddresstheunitasatalkerorasalistener.Busaddressesof0and21arenotrecommendastheseaddressesarecustomarilyusedbyBusControllersastheirownaddress.

TheinternalGPIBaddresscanbesetorqueriedwiththeSCPISYST:COMM:GPIB:ADDRcommand.Thechangetakesaffectwhenthecommandisexecutedsoanysubsequentcommandswillneedtoaddresstheunitatitsnewaddress.UsetheIEEE-488.2commoncommand*SAV0tosavethenewaddressvalueintheunit’snonvolatilememory.RefertoSections2.6and2.7foraddresssettinginstructions.

3.3.2 4809A Address External Address Switch

The4809A’sGPIBaddresscanalsobesetbyconnectingthe4809Atoanexternaladdressswitch.ConnectorJ2containstheexternaladdressswitchinputlinesinadditiontotheGPIBbussignals.J2matestoICS’sGPIBConnector/AddressSwitchAssemblies.Theseassembliesaresmallbusi-nesscardsizeassembliesthatmakeiteasytomountaGPIBconnectorandanaddressswitchontherearpanelofthehostchassis.

The4809A’sexternaladdressswitchisenabledwiththeSCPISYST:COMM:GPIB:ADDR:EXTONcommand. Whenenabled, the4809Areads theexternaladdressswitchatpowerturn-on.Iftheaddressswitchischanged,theunitmustbepoweredoffandbackonbeforeitwillrespondtothenewaddress.Whentheexternaladdressswitchisenabled,theinternaladdressvalueisignored.

3.4 488.2 STATUS REPORTING STRUCTURE

Page 56: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

3-5

3

The4899AincludestheexpandedIEEE-488.2statusreportingstructureshowninFigure3-1.TheexpandedstatusreportingstructureconformstotheSCPI1994.0SpecificationandbuildsontheIEEE488.2StandardstatusstructurewiththeadditionoftheQuestionable,OperationandModbusErrorregisters.TheEventandStatusregistersarecontrolledandqueriedwiththeIEEE-488.2commoncommands.TheStatusByteRegistermayalsobereadbyserialpollingthe4899A.TheaddedQuestionableandOperationregistersarecontrolledandqueriedwithSCPIcommands.TheModbusErrorregisterisreadandclearedwiththeModbusE?command.

AsshowninFigure3-1,IEEE488.2SRQgenerationisamultilevelfunctionandisdeterminedbytheoccurrenceofaneventthathasitscorrespondingenablebitsetto‘1’.TheregisteroutputsaresummarizedintheStatusByteRegisterwhichgeneratestheServiceRequestandpullstheSRQlinelow.SRQsareusedtosignalthebuscontrollerthataneventhasoccurredand/orthatthe4899Aneedsservice.TherearefourmajorsourcesofSRQs,eachofwhichissummarizedinabitintheStatusByteRegister.ThreeofthesourcesareeventregisterswiththeirownenablingbitsandthefourthistheOutputQueue.TheEventregistersandtheOutputQueueareclearedwhenreadorbythe*CLScommand.

3.4.1 Event Registers

Aneventregister captures 0 to 1 transitionsinitsassociatedconditionregisterorinthestandardeventregister.AneventbitbecomesTRUE(1)whentheassociatedconditionbitmakeslogical0to1transition.Onceaneventbitissetit is helduntiltheeventregisterisreadorclearedwiththe*CLScommand.

Eacheventregistercontainseightorsixteenbits.Whentheregisterisread,itsresponseisadecimalnumberthatisthesumofthebinarybitweightsofthebitsthatarelogical1s.

e.g.,23decimal=00010111or0000000000010111binary

Eacheventregisterbithasacorrespondingenablebit.TheenablingbitsareANDedwiththestateoftheeventbitstocreatethesummaryconditionin theStatusByteRegister. UnwantedconditionscanbeblockedfromgeneratingSRQsbysettingtheircorrespondingenablingbittoa‘0’.The

Page 57: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

3-6

3

��������������������

��������

�������� ����

�����������������������������������������

������

���

�����

��������������������

��������������

����� ��­������

� ��

��

��

������������������������������

���������������������

������������������������

��

��

��

�������������������������

���

����

��������������������������������������������������

���������������������

���

�������������������������

����������������������������

��

� ��

��

�����������������������������

�������������������

�����������������������������������

���������������������

���

�������������

�����������������������������

����������������������������� ���������������������������������� ��������

��� ���

�������������������

��

��

��

������� �������������������������������������������������������������������������

������������������������

������

������

�������

���

�������

��

�����

���

������

Flas

h D

ata

Cor

rupt

ed

���������

������

����

��������������������������������������������������

��������������������������������������������������

��������������������������������������������������

��

����

�����������

��������������������

�����

����

�������

����

��������

����

��������

����

��������

�����������������������������������

�����������������������������������

�����������������������������������

��

Figure 3-1 48x9A Status Reporting Structure

Note1-ModbusRegistercodesarelistedinTable3-5onpage3-22

Page 58: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

3-7

3

enablingbitsaresetbywritingthevalueequaltothesumofallofthedesiredlogic1bitstotheenablingregister.ThevalueisnormallydecimalbutcanbeexpressedinHEX,OCTALorBINARYbyprefixingthenumberwitha#H,#Oor#B.

3.4.2 Event Status Register

TheEventStatusRegisterreportseventsthatarecommontoall488.2devices.Thisincludeseventssuchasselftesterrors,commanderrors,executionerrors,poweronandoperationcomplete.ESRbits2through6lighttheERRLEDwhenon.ThePower-oneventoccursatpowerturn-onandcanbeusedtosignalapoweroff-onoccurrence.Inthe4899A,theModbusErrorRegisterissummarizedintotheEventStatusRegisterasBit6.The488.2OperationCompleteeventhasnomeaningforeitherunit.

TABLE 3-1 ESR BIT DEFINITIONS

Bit Bit Event Description Weight

7 128 PON ThePower-oneventoccursatpowerturn-onandcanbeusedtosignalapoweroff-onoccurrence.

6 64 Modbus ModbusErrordetected.ReadingtheModbusErrrorRegister Error clearsthisbit.SeetheE?queryinTable3-5.5 32 Cmd CommandError4. 16 Exc ExecutionErrorincludesEDRnotsetandmissinglisten handshake.3 8 Flash Flashdatacorrupted.2 4 Query Queryerror,datanotreadorreadattemptwithnodata.1 2 notused0 1 OPC OperationCompletehasnomeaninginthe48x9As.

TheEventStatusRegisterisreadwiththe*ESR?query.Usethe*ESE commandstosettheEventStatusEnableRegisterasshowninthefollow-ingexample:

*ESE 60 ‘enables ESR error bits 2 through 5 *ESE 124 ‘enables ESR error bits 2 through 6*ESE? ‘queries the enabling register setting

3.4.3 Modbus Error Register

Page 59: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

3-8

3

TheModbusErrorRegisterreportsadecimalvalueofthelasterrordetectedwiththeModbusmessagetransmissionorreportedbackfromtheModbusslavedevice.ThisregisterisclearedwhenreadbytheModbusE?command.The*CLSand*RSTcommandshavenoaffectonthisregister.RefertoTable3-5fortheModbusErrorRegistervalues.ThefollowingcommandswillgenerateaServiceRequestwhenaModbuserroroccurs:

*ESE 64 ‘enables ESR bits 6 *SRE 32 ‘enables StatusByte bit 5

*ESR? ‘reads ESR Register bitsE? ‘reads Modbus Error Register

3.4.4 Questionable Registers and Digital Inputs

TheQuestionableRegistersletstheuserreadbitsthatreportCRCerrors,Exceptionmessagetypesoratimeout(noresponsemessagereceived).BitalignmentsareshowninFigure3-1.TheQuestionableTransitionRegisterfilterstheinputsandpassesonlytheenabledstatechangestotheQuestion-ableEventRegister.TheQuestionableEventRegisterbitsbecomestrue(1)whenthepositivetransitionbitisenabledandtheassociatedconditionregisterbitmakesa0to1transition.Whenbothtransitionsareselectedforthesamebit,thecorrespondingQuestionableEventRegisterbitsetswheneverthedigitalinputchangesstate.TheQuestionableEventRegisterisclearedwhenitisread.

TheQuestionableRegistersarequeriedwith theSCPISTATUSbranchcommands.

The4899AcanbesettomonitorthebitsintheQuestionableRegisterandgenerateaSRQwhentheychangestate.ThefollowingexamplesetstheQuestionableEventregistertomonitortheCRCandTimeoutbitsbycap-turingapositivetransitiononbits12and13.Thedecimalvalueforbit12is4096andthedecimalvalueforbit13is8192.

STAT:QUES:PTR 12298 ‘enables bits 12 and 13 to set on a positive transition

Becausesumminglargedecimalvaluesisconfusing,itisbettertouseHEXvaluesthatareeasiertowrite.i.e.

STAT:QUES:PTR #h3000 ‘same as 12298 decimal

Page 60: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

3-9

3

TheQuestionableEnableRegisterenablessetEventbitstobeincludedinthesummaryoutputtotheStatusByteRegister.Thefollowingexampleenablesbits12and13:

STAT:QUES:ENAB #h3000 ‘enables Event bits 12 and 13

NotethattheQuestionableEventRegisterhastobeclearedafteranSRQisgeneratedeitherbyreadingtheregisterorwiththe*CLScommand.Iftheregisterisnotcleared,theeventbitswillremainsetandtheywillnotgenerateanotherSRQwhentheinputagaingoestrue.

STAT:QUES:COND? ‘reads the questionable inputs

3.4.5 Operation Registers

The488.2OperationRegistersletstheuserreaddevicespecificstatuscondi-tionsanddetectanychangesinthedevice’sstatus.TheOperationRegistersaresimilartotheQuestionableRegistersdescribedinparagraph3.4.3.Inthe4899A,theOperationConditionRegisterreportstheWTG(WaitingforTrigger)statusandtheLocalLockoutandRemoteGPIBinterfacestates.TheWTGbitistruewhenthe4899Ahasbeenarmedandiswaitingforatrigger.ThefollowingcommandsdemonstratesomepossibilitiesoftheOperationRegisters:

STAT:OPER:PTR 32 ‘enables bit 5 to set on a positive transition of WTGSTAT:OPER:ENAB 32 ‘enables Event bit 5 STAT:OPER:COND? ‘quires the Operation Condition Register

3.4.6 Output Queue

TheOutputQueueisusedbythe4899AtosendIEEE488.2messagesbacktothebuscontroller.Thesemessagesareresponsesto488.2andSCPIqueriessenttotheunitbythebuscontroller.TheOutputQueuereportsa‘1’inbit4oftheStatusByteRegisterwhenitcontainsamessage(s)tobereadbythebuscontroller.ReadingthecontentsoftheOutputQueueclearsitssummarybit.TheOutputQueueisreadbyaddressingthe4899AtotalkatitsGPIBaddress.IftheOutputQueueisnotreadbeforesendinganotherquery,itscontentswillbelostandanerrorreported.

3.4.7 Status Byte Register

Page 61: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

3-10

3

The4899Ageneratesaservicerequest(SRQ)wheneveranyoftheenabledbitsintheStatusByteRegisterbecometrueandthe4899Aisnotaddressedasatalker.TheStatusByteRegistermaybereadbyaSerialPollorwiththe*STB?query.ASerialPollresetstheRQSbit;the*STB?querydoesnot change the bit. TheStatusByteRegister is enabled by setting thecorrespondingbitsintheServiceRequestEnableRegisterwiththe*SRE command.e.g.

*SRE 160 ‘Sets the SRE Register to 1010 0000 which enables just the Event Status and Questionable summary bits to generate SRQs.

3.4.8 Saving the Enable and Transition Register Values

TheEnableandTransitionRegistervaluescanonlybesavedandrecalledatpowerturn-onbydisablingthePSCflag.The *SAV command does not save the Enable and Transition register values.Usethe*PSC0com-mandtodisablethePSCflagandsavethecurrentEnableandTransitionregistervalues.ThefollowingexamplesavesthecurrentsettingswhichenablesbitsintheOperationandEventStatusRegisterstogenerateaSRQatpowerturn-on.e.g.

STAT:OPER:ENAB 1 ‘enables bit 1STAT:OPER:NTR 1 ‘enables negative transition*ESE 192;*SRE 32;*PSC 0 ‘saves ESE and SRE bits as power on settings.

Notethattheenableandtransitioncommandsmustbeonthesamelineorsetpriortothe*PSC0commandtobesaved.Alater*PSC1commandsetsthePSCflagwhichwillcausetheregisterstobeclearedatthenextpowerturn-on.TheEnableandTransitionRegistervaluescanbesetorchangesatanytimebyprogramcommands.

3.4.9 488.2 Differences from 488.1 Devices

TheIEEE488.1DeviceClearcommanddoes notresettheunit’sinput-outputsettingsaswouldbeexpectedofa488.1device.Toresettheunit’sinput-outputsettings,usethe*RST(Reset)or*RCL0command.

3.5 488.2 CONFORMANCE INFORMATION

Page 62: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

3-11

3

TheIEEE488.2StandardmandatedalistofcommoncommandsthatarecommontoallIEEE488.2compatibledevices.The4899A,4819Aandthe4809ArespondtoallofthemandatedcommoncommandsandtosomeoptionalcommandsdefinedinIEEE-488.2.Table3-2liststheIEEE-488.2commandsthatapplytothisunit,anddescribestheaffecttheyhaveonthe4809A,4819Aorthe4899Aanditsstatusreportingstructure.

3.6 SCPI CONFORMANCE INFORMATION

TABLE 3-2 IEEE-488.2 COMMON COMMANDS

COMMAND NAME DESCRIPTION

Clears all event registers summarizedinthestatusbyte,exceptfor"MessageAvailable," which is cleared only if*CLS is thefirstmessage in thecom-mandline.

Sets"EventStatusEnableRegister"to<value>.<value>isanintegerbetween0and255,whosebinaryequivalentcor-respondstothestate(1or0)ofbitsintheregister.If<value>isnotbetween0and255,anExecutionErrorisgenerated.

EXAMPLE: decimal 16 converts tobinary00010000whichsetsbit4 toalogical1.

4899Areturnsthe<value>ofthe"EventStatusEnableRegister"setbythe*ESEcommand.<value>isanintegerwhosebinaryequivalentcorrespondstothestate(1or0)ofbitsintheregister.

4899A returns the <value> of the"EventStatusRegister"andthenclearsit.<value> isan integerwhosebinaryequivalentcorrespondstothestate(1or0)ofbitsintheregister.

ClearStatus

EventStatusEnable

EventStatusEnableQuery

EventStatusRegisterQuery

* CLS

*ESE <value>

*ESE?

*ESR?

Page 63: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

3-12

3

TABLE 3-2 IEEE-488.2 COMMON COMMANDS (CONTINUED)

COMMAND NAME DESCRIPTION

*IDN?

*OPC

*OPC?

*PSC<value>

*PSC?

*RCL <value>

IdentificationQuery

OperationCompleteCommand

OperationCompleteQuery

Power-OnStatusClear

Power-OnStatusClearQuery

Recall

4899Areturnsitsidentificationcodeasfourfieldsseparatedbycommas.Thesefieldsare:manufacturer,model,six-digitserialnumberandhardware-firmwarever-sionanddatee.g.ICS Electronics, 4899A, S/N 603001, Rev. 00.00, 06.03.02. TheIEEE-488.2 specification states that theword'model'maynotappearintheIDNmessage.

Causesthe4899AtogeneratetheoperationcompletemessageintheStandardEventStatusRegisterwhenallpendingselected4899Aoperationshavebeenfinished.

Places an ASCII character 1 into the4899A's Output Queue when all pend-ingselected4899Aoperationshavebeenfinished.

Controlstheautomaticpower-onclearingoftheSREandESEregisters.*PSC0al-lowsdevicestorestorethesavedSREandESEvaluesandtoassertSRQuponpowerturn-on.*PSC1enablesthepower-onclearanddisallowsaSRQatpowerturn-on.ThePSCcommandssavesthe488.2SREandESEregistersandtheSCPItransitionandenableregistervalues. QuerysthePSCflagvalue.Areturnedvalueof0indicatestheregisterswillretaintheirsavedvalues,areturnedvalueof1indicatestheregisterswillbecleared.

Restoresthestateof4899Afromacopystored in itsFlash by*SAVcommand.*RCL 0 recalls saved configuration,updates output levels and re-initializestheUART.Allowthe4899A100msandthe2303150mstocompletethe*RCLcommand.

Page 64: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

3-13

3

TABLE 3-2 IEEE-488.2 COMMON COMMANDS (CONT'D)

COMMAND NAME DESCRIPTION

Reset

Save

ServiceRequestEnable

ServiceRequestEnableQuery

ReadStatusByte

DeviceTrigger

Self-TestQuery

Wait-to-continue

4899Arestoresitspower-upstateexceptthatthestateofIEEE-488interfaceisunchanged,including:instrumentaddress,StatusByteand ESR Register. Disables the triggerfunctionandpulsestheResetoutputsignal.Allowthe4899A100msandthe2303150mstocompletethe*RSTcommand.

Savesthe4899A'scurrentconfigurationintheFlash.*SAV0savesthecurrentsettingasthenewpoweronsetting.<value>=0

Setsthe"ServiceRequestEnableRegister"to<value>.ThevalueofbitsixisignoredbecauseitisnotusedbytheServiceRequestEnableRegister.<value>isanintegerbe-tween0and255,whosebinaryequivalentcorrespondstothestate(1or0)ofbitsintheregister.If<value>isnotbetween0and255,anExecutionErrorisgenerated.

4899Areturnsthe<value>ofthe"ServiceRequestEnableRegister"(withbitsixsettozero).<value>isanintegerwhosebinaryequivalentcorrespondstothestate(1or0)ofbitsintheregister.

4899A returns the<value>of the "StatusByte"withbitsixasthe"MasterSummary"bit. <value> is an integer whose binaryequivalentcorrespondstothestate(1or0)ofbitsintheregister.

PulsestheTriggerOutputline.

Queriestheresultsofthelastselftest. Azeroresponseindicatesnofailures.OtherresponsesarenotreturnedastheunitwillberunninginablinkLEDloopandwillbeunabletorespondtothequery.

Prevents the 4899A from executing anyfurthercommandsorqueriesuntiltheNo-Operation-PendingflagisTRUE.

*RST

*SAV <value>

*SRE <value>

*SRE?

*STB?

*TRG

*TST?

*WAI

Page 65: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

3-14

3

The4899AacceptsSCPIcommandsandcommandextensionstoconfigureitsGPIB/Serialinterfaces,tosetthedataformatsandtotransferdata.TheSCPIcommandsconformtoSCPIStandard1994.0andprovideanindustrystandard,self-documentingformofcodethatmakesiteasyfortheprogram-mertomaintaintheapplicationprogram.

Table3-3showsthe4899A’sSCPIcommandtree.ThecommandtreeusesportionsoftheSCPISYSTEM,STATUS,FORMAT,INITIATE,ABORTandCALIBRATEsubsystems.The4899Aand4809AfollowSCPI’shier-archal‘treelike’structurewhichstartswitharootkeywordandbranchesouttothefinalactionkeyword.Eachcommandcanbeusedasaqueryexceptwherenoted. TheSCPIcommandsarenot case sensitive. Theportionofthecommandshownincapitalsdenotestheabbreviatedformofthekeyword.Eithertheabbreviatedorwholekeywordmaybeusedwhenenteringacompletecommand.Bracketedkeywordsareoptionalandmaybeomitted.Theremustbeaspacebetweenthecommandandtheparameterorchannellist.

STATus:QUEStionable? is the same as STAT:QUES:EVEN? or also asstat:ques?

Table3-4liststheSCPIkeywordsanddescribestheirfunctionsindetail.Keywordsotherthanthoselistedinthetableorlockedkeywordswillhavenoeffectonthe4899A’soperationandacommanderrorwillbereported.RefertoAppendixA-1foradditionalinformationaboutSCPIcommands.

Note:ASCPIcommandthatendswithaquestionmark‘?’isaquery.Allqueriesshouldbefollowedbyreadingtheirresponsetoavoiddataloss.

3.8 PROGRAMMING GUIDELINES

Page 66: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

3-15

3

TABLE 3-3 SCPI COMMAND TREE

Keyword Parameter Form Notes & Short Form Commands

SYSTem System Address :COMMunicate :GPIB :ADDRess 0 - 30 [4] :EXTernal 0|1 or OFF|ON [0] 4809A only :SERial :BAUD <numeric value> [9600] :PARity EVEN | ODD | [NONE] :BITS 7 | [8] :SBITs [1] | 2 :UPdate no value-command only :RS485 0|1 or OFF|ON [0] :ERRor? (0, “No error”) :VERSion? (1994.0)

STATus :OPERation Status Inputs, WTG [:EVENt]? bit 0,1 and 5 active (0) :CONDition? bit 0,1 and 5 active (0) :ENABle bit 0,1 and 5 active (0) :ENABLE? :PTRansition 0-#h7FFF [All 1s] :PTRansition? :NTRansition 0-#h7FFF [0] :NTRansition? :QUEStionable Modbus Error Bits [:EVENt]? bits 0-2, 12, 13 active (0) :CONDition? bits 0-2, 12, 13 active (0) :ENABle bits 0-2, 12, 13 active (0) :ENABLE? : PTRansition 0-#h7FFF [All 1s] :PTRansition? :NTRansition 0-#h7FFF [0] :NTRansition? :PRESet

Page 67: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

3-16

3

FORMat Format Strings [:DATA] :TALK ASCii | HEXL [ASCII] FT

CALibrate Calibrate :IDN string :DATe mm/dd/yy :DEFault :LOCK 1(On)| 0(Off) [0]

Notes:1. Parameterenclosedby[]-denotesfactorydefault2. Parameterenclosedby()-denotespowerondefault3. SCPInameendswith?-denotesqueryonly4. UnlessotherwisenotedSCPIcommandisalsoaquery5. Keywordenclosedby[]-denotesoptionaluse6. Onlyaconfigurationcommandthathasoneofitsparametersenclosedby[]can

changeitsparametersettingandhavethissettingstoredinthe4809A’sE2ROM(withthe*SAVcommand).

7. TheformatforaSCPIlistis(@1,2,n)or(@1:n).Theremustbeaspacebetweenthe@andthefirstnumberandparenthesisarerequired.Alistofnumbersisseparatedbycommasorusesacolontodenotearangeofnumbers.

8. NumericentriesconformtoIEEE-488.2section7.7.2.4fordecimalnumericparam-eters.

9. ASCIIformatteddataisaseriesofdecimalvalues(0-255)foreachbyteseparatedbycommas.e.g.64,132,8

10. TheCAL:DATecommandsstorestheCAL:IDNandCAL:DATeparametersinthe4809A’sE2ROM.

11. TheCAL:DEFaultcommandresetstheE2ROMmemorytoitfactorysettings.Cau-tion-Allusersettingswillbeoverriddenbythiscommand.

12. Mostparameterscanbeoutputinvariousnumericformats(radix).Theparameterswithdecimal0-255valuerangesmayalsobeoutputasHEXusing#h00-#hFForBinaryusing#b00000000-#b11111111.Conversely,theparametersshownwithHEX(#h)valuescanalsobeoutputinDecimal.

TABLE 3-3 SCPI COMMAND TREE CONT'D

Keyword Parameter Form Notes & Short Form Commands

Page 68: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

3-17

3

TABLE 3-4 SCPI COMMANDS AND QUERIES

Keyword Default Description Value

SySTem - StartsSystemcommandbranch.

:COMMunicate - Identifiescommunicationsubsystemcommands

:GPIB - ControlsGPIB(IEEE488)portsettings

ADDRess(1) 04 SetsGPIBprimaryaddress.Values=0to30forSinglemode,0-29forDualmodeand1to30forSecondaryaddressing.Provide 70 ms delay after an address change before next command Note-TheGPIBad-dressandtheserialaddressarethesameparameter.Changingeitherone,changesbothsettings.

:ADDRess? Returns0-30for4809A’sprimaryaddress. :EXTernal OFF Onenablesthe4809A’sexternaladdressswitchinputsto

beusedtoinputaswitchsettingfortheGPIBaddress.OffusesthevaluesavedinE2ROMmemory.Doesnotapplytothe4899A.Values=0|1orOFF|ON.

:SERial ControlsSerialInterfacesettings

:BAUD 9600 Setsserialbaudrate.Valluesforthe4809Aare300to38400baud.Valuesforthe4899Aand4819Aare300to115200baud.

:PARity NONE Setsserialparity.Values=EVEN,ODDorNONE.

:BITS 8 Setsnumberofdatabitspercharacter.Values=7|8.

:SBITs 1 Setsminimumnumberofstopbitsbetweencharacters.Value=1|2.

:UPDATe - SetsUARTwithnew serial values. Usermust re-program theserialcontroller’sCOMportafter thiscommand.

RS485 OFF Tristates 4899A and 4809A transmitter when nottransmittingfortwowirenetworks.ValuesareONandOFF.

Page 69: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

3-18

3

:ERRor? 0,“No Requestsnextentryin4809A’serror/event error” queue.Errormessagesare: 0,“noerror” -100,“Commanderror” -200,“Executionerror” -400,“Queryerror”

:VERSion? 1994.0 Returnsthe<value>oftheapplicableSCPIversionnumber.

STATus - StartsStatusReportingStructure

:OPERational - IdentifiesOperationalregisters.

:QUEStionable - IdentifiesQuestionableregisters.

[:EVENt?] Returnscontentsoftheeventregister associatedwiththecommand.

:CONDition? Returnscontentsoftheconditionregister associatedwiththecommand.

:ENABle 0 Setstheenablemaskwhichallowsthetrueconditionsintheassociatedeventregistertobereportedinthesummarybit.

:PTRansition #h7FFF Setspositivetransitionenableregister.Value=0to#h7FFFindecimalorHEX.

:NTRansition 0 Sets thenegativeTransitionregister. Values=0to#h7FFFindecimalorHEX.

:PREset Sets the selected Enable Register, PTR and NTRregisterstotheirdefaultvalues(0,#h7FFFand0re-spectively)sothe4809Adetectsapositivechanges

FORMat Startsstringformatbranch.

:DATA Optionaldigitaldataidentifier

TABLE 3-4 SCPI COMMANDS AND QUERIESCONTINUED

Keyword Default Description Value

Page 70: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

3-19

3

:TALK ASCii Setstalkstringanddataqueryresponseformat.ASCIIexpressesawordsinputbitpatternasadecimalvalueequaltothebinarysumofthedata.Multiplewordsareseparatedbycommas.HEXLconvertseachfourbitnibbleintotheASCIIcharacters0-9andA-F.Alltalkstringsendwithalinefeed.ValuesareASCii|HEXL|.

i.e. ASCiiexample=128,5,255 HEXLexample=8000,05FF

INITiate StartsTriggerbranch

[:IMMediate] Enablesasingletriggeroperation

:CONTinuous OFF Enables ongoing external triggers. Values = 0|1 orOFF|ON.

ABORt Disablestriggerfunction

CALibrate Startscalibratebranch

:IDN<string> SetsuserIDNmessage.Stringisupto72charactersandconsistsoffourfields(manufacturer,modelcode,serial number and firmware revision) separated bycommas.e.g.ICS Electronics, 4809A, S/N 708001, Rev 00.14, Ver 07.08.28.

:DATe<date> Saves IDNmessage anddate. The saveoperationlightsalltheLEDs.Dateisinmm/dd/yyyyformat.A*CLSwillcleartheERRLEDafteraCAL:DATEcommand.

:DATe? Queriesthecalibrationdate.Theresponseis00/00/0000forfactorydefaultsettings.

DEFault SetsE2ROMmemorytofactorysettings.

:LOCK 0 DisablesconfigurationcommandswhenOn.Values=0|1orOFF|ON.Table1-1liststhelockedparam-eters.

TABLE 3-4 SCPI COMMANDS AND QUERIESCONTINUED

Keyword Default Description Value

Page 71: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

3-20

3

3.7 MODBUS COMMANDS

ThefollowingcommandsareusedtoControlModbusslavedevices.TheseModbusCommandsshouldnotbemixedorconcatenatedwithIEEE-488.2orSCPIcommands.Commandsmarkedwithanasteriskarenewinthe48x9Aseriesinterfacesandarenotavailableintheolder48x9interfaces.

TABLE 3-5 MODBUS COMMANDS

Syntax Meaning

Caddr ModbusAddressCommand.SetsModbusslavedeviceaddressforsubsequentcommands.Valueforaddris1to255.Defaultsettingis1.

RC[?]reg,ncoil* ReadCoilStatusCommand(code0x01). Readsthestatusofcoilsinaremotedevice.Userspecifiesstart-ingcoiladdressinregisterregandnumberofcoilstobereadncoil.The[?]isanoptionalsymbolforsmartprograms.(4)Valuesforregare0to65535.Valuesforncoilare1to2000.Responsesarereturnedasapackedbinaryvaluewith1-bitpercoil,8coilsperbyte.1=ON.

RI[?]reg,ninp* ReadDiscreteInputsCommand(code0x02).Readsdiscrete inputs. User specifies starting address inregisterregandnumberofinputstobereadninp.The[?]isanoptionalsymbolforsmartprograms.(4)Valuesforregare0to65535.Valuesforninpare1to2000.Responsesarereturnedasapackedbinaryvaluewith8inputsperbyte.1=ON.

R[?]reg,num ReadRegisterCommand(code0x03).ReadsoneormultipleModbusdeviceregisters.Userspecifiesstart-ingregisterregandnumberofregisterstobereadnum.The [?] is anoptional symbol for smartprograms.(4) Valuesforregare0to65535.Valuesfornumare1to64.Responsesarereturnedassigned16-bitdecimalorHEXvalues,+32767to-32767,separatedbycommas.Output format selected with the Format command. i.e.

R?0,1readsWatlowModelNumber.Responseis5270forWatlowModelF4

R?0,3readsthreesuccessiveregisters. Responseis5270,0,123fortheWatlowF4Controller.

Page 72: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

3-21

3

RR[?]reg,num* ReadInputRegisterCommand(code0x04).ReadsoneormultipleModbusdevice registers. User specifiesstartingregisterregandnumberofregisterstobereadnum.The[?]isanoptionalsymbolforsmartprograms.(4) Valuesforregare0to65535.Valuesfornumare1to64.Responsesarereturnedassigned16-bitdecimalorHEXvalues,+32767to-32767,separatedbycommas.OutputformatselectedwiththeFormatcommand.SeetheR?queryabove.

RE[?]* ReadExceptionStatusQuery(code0x07).Readseightexceptionstatusoutputsfromaremotedevice.The[?]isanoptionalsymbolforsmartprograms.(4)Responsesare returnedasapackedbinaryvaluewith theeightstatusbitsinonebyte.

RF?reg Read Floating Point Value Command (code 0x03). ReadstwosequentialregistersasanIEEE-75432-bitfloatingpointvalueinlowbytetohighbyteorder.Thespecifiedregister,reg,containsthelowertwobytesandthenexthigherregistercontainstheuppertwobytes.

WCreg,b* WriteCoilCommand*(code0x05).WritesaON/OFFvalue,btoasingleModbusdeviceregister,reg.Valuesforregare0to65535.Valuesforbare0/OFFor1/ON/255.Anexampleis:WC1000,ON

Wreg,w WriteRegisterCommand(code0x06).Writesa16-bitvalue,wtoasingleModbusdeviceregister,reg.Valuesfor regare0 to65535. Values forw are+32767 to-32767.Anexampleis:

W100,55writesthedecimal55toregister100.

WBreg,num,w(0),.w(n) WriteBlockCommand(code0x10).Writesmultiple16-bitwords,w(i)tomultipleregistersor32-bitvaluestotwoadjacentregisters.Startingregister,reg.Valuesforregare0 to65535. Number,numspecifieshowmanywordsaretobewritten.Valuesfornumare1to64.Valuesforware+32767to-32767.w(i)valuesareseparatedbycommas.

TABLE 3-5 MODBUS COMMANDS CONT'D

Syntax Meaning

Page 73: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

3-22

3

TABLE 3-5 MODBUS COMMANDS CONT'D

Syntax Meaning

WFreg,num WriteFloatingPointValueCommand(0x16).WritesanIEEE754singleprecision32-bitvaluetotworegistersinlowwordtohighwordorder.regspecifiesthelowword.reg+1isthehighword. numisdeterminedbytheparameterbeingcontrolledandcanrangefrom2127 to2-127

L[?]w LoopbackCommand(code0x08).Writesa16-bitword,w,outtoaModbusdeviceandreturnsasingleresponsewordtotheGPIBbus.Thequestionmarkisoptionalforsmartprograms.(4)Valueforwis0to65535.

D time TimeoutCommand. Sets timeout value ofModbusresponsemessageinmilliseconds.Timeoutisthetotaltimeforthemessagetobereceivedbythe48x9A.Valuefortimeis1to65,535milliseconds.Thedefaultvalueis100.

D? Queriesthecurrenttimeoutsetting.

E? ReadErrorCommand.ReadsandclearstheModbusErrorRegisterandbit6intheEventStatusRegister.Returnsaerrorcodewhosevalueis0to255.Currenterrorvaluesare:

0 Noerrorspresent 1 ExceptionCode1 2 ExceptionCode2 3 ExceptionCode3 100 CRCError 101 TimeoutErrorindicatesnocharacters receivedintheresponsemessage. 2nn Partialorcorruptedmessagereceived.

wherennisthenumberofreceivedbytes.

Notes:1. Allvaluesareindecimal.ToenterHEXvalues,thevaluemustbeprecededwith

a#h.i.e.100decimal=#h64.Integerrangeis0to65535.2. ResponseparameterformatsetbySCPIFORMatcommand.DefaultisASCii3. DonotcombinetheModbuscommandsinTable3-5withIEEE-488.2 commandsorSCPIcommandstoavoidqueryerrorsorotherwiseconfusingthe

GPIB<->ModbusInterfaces.4. The[?]isanoptionalsymbolforsmartprogramslikeICS’sGPIBKybdprogram.

Theseprogramscanrecognizethecommandasaqueryandautomaticallyreadtheresponse.

Page 74: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

3-23

3

Thefollowingsectionprovidesinformationonhowtoprogramthe4809A,4819Aand4899AtosetitsconfigurationandhowtosendcommandstotheModbusslavedevice.NewusersshouldtrythesesimpleexampleswithalivekeyboardprogramlikeICS’sGPIBkybdprogramtobecomefamiliarwithcontrollingtheGPIB<->ModbusInterfaceandModbusdevice(s)fromtheGPIBbus.Althoughthecommentsrefertoa4899A,theyapplytoallunitsunlessotherwisenoted.

TheVisualBasicTempCltrexampleprogramontheSupportCD-ROMcanbeusedasanexamplewhenwritingTemperatureControlprograms.

Modbus commands should not be mixed on the same command line with IEEE-488.2 and SCPI commands to prevent query errors and confusing the GPIB-to-Modbus Interface.

3.8.1 General Configuration Guidelines

Newunitsarefactorysetsothattheyarereadytobeusedwhenreceived.Table1-1liststheFactoryConfiguration.Tochangetheconfiguration,theusershouldfollowthesequenceoutlinedbelow:

Send IFC ‘gets control, asserts REN

Send SCPI command ‘change a settingSend SCPI query 'verify new setting Send *ESR? ‘query the Event Status Register to be sure that there were no errors or visually check the ERR LED.

Repeatthechangeandverifystepsforeachparameteryouarechanging.Whendonesavethenewvalues.

Send “*SAV 0” ‘save the new configuration

The*SAV0commandwill cause the4899A toblinkallbutoneof itsLEDs.PaycloseattentiontotheERRLEDwhensendingcommands.Ifitcomeson,theunit’sparserdetectedaproblemwiththecommandandDIDNOTexecuteit.

3.8.2 Setting the Modbus Device Address

Page 75: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

3-24

3

Set theModbus device address in the 4899Awith the 'C' command sothatitmatchestheaddresssetinthedesiredModbusdevice.The4899ArememberstheModbusaddressuntilitischanged.Itisonlynecessarytosendthe4899Athe'C'commandatthestartoftheprogram.Ifthe4899AisbeingusedwithonlyoneModbusdevice, theaddresscanbesetandsavedaspartofthe4899A’spoweronconfiguration.The4899AandmostModbusdevicesdefaulttoaModbusaddressof1.

C n ‘sets device address to value n*SAV 0 ‘optional save new default address

3.8.3 Querying a Modbus Device

Thesecondstepistosendaquerytothe4899AandreadbacktheresponsefromtheModbusdevice.ThefollowingcommandssetModbusdevice#1andreadone16-bitvaluefromregister0.WithWatlowproducts,register0istheWatlowModelnumberregister.The‘?’isoptionalandisincludedsoprogramslikeICS’sGPIBKeyboardcontrolprogramscanautomaticallyreadbackanddisplaytheresponsefromaquery.i.e.

C 1 ‘optional-sets Modbus Address to 1R? 0,1 ‘reads Watlow model number ‘Watlow F4 response is 5270

Amorerealisticcommandmightbetoreadameasuredvalue.RegisternumbersandfunctionsvarywithdifferentModbusdevicessoconsultyourModbusdevicemanualforitsregisternumbersandfunctions.WithWatlowF4seriesControllers,register100isthemeasuredtemperaturevalue.

R? 100,1 'reads temperature from a Watlow F4

Formultipledevices,thedeviceaddressandreadcommandcanbeconcat-enatedononelinebyseparatingthemwithsemicolons.i.e.

C 1; R? 100,1 ‘concatenated command example writes 'Modbus address and queries register 100

3.8.4 Writing to the Modbus Device

Page 76: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

3-25

3

Thenatureof the commanddependsupon the specificModbusdevice.Simplewritesto16-bitModbusregistersarehandledwiththeWcommand.Inthefollowingexample,avalueof50iswrittentoregister300.i.e.

W 300, 50 ‘sets F4 temperature setpoint

C 7; W 300, 50 ‘concatenated command

Writes to sequentialModbus registers are possible with theWB com-mand.

3.8.5 32-Bit Variables

MostModbusdeviceshave16-bitwideregistersforsettingaparameterandforreadingbackdata.Thepriorcommandexamplesshowedhowtoreadandwriteto16-bitregisters.Watlow'snewTemperatureControllersliketheSeriesSDandSeriesPDhave32-bitregisterswhichareaccessedastwo16-bitregisters.Thevalueisassumedtohavethreedecimalplaces.

3.8.6 32-Bit Write

Towriteasetpointof1250degrees(whichisreally1250.000)toRegis-ters27and28,multiplythesetpointvalue(SP)by1000toget1,250,000.Add65536tonegativenumbers.Thisproducesthesetpoint(SP)wewanttosend.Todeterminethemostsignificantword(MSW)forRegister27,dividetheSPby2^16or65536.Todeterminetheleastsignificantword(LSW)forRegister28,subtractfromtheSPtheresultofmultiplyingtheMSWby2^16or65536.i.e.

SP = 1250 * 1000 = 1250000MSW = 1250000 / 65536 = 19LSW = 1250000 - (19 * 65536) = 4816

The4899AcanwriteeachregisterseparatelywithstandardwritecommandsorbothregisterscanbewrittentogetherwiththeWriteBlockcommand.Examplesare:

W 27,19 'writes to register 27W 28,4816 'writes to register 28 orWB 27,2,19,4816 'writes to registers 27 and 28

3.8.7 32-Bit Read

Page 77: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

3-26

3

Toreada32-bitvalue, twosuccessive16-bit registersare readand theuser'sprogramthenputsthevaluestogethertoformthe32-bitresult.AnexampleisreadingaprocessvariablefromRegisters20(MSW)and21(LSW).The4899Acanbeusedtoreadeachregisterindividuallyortoreadtwosuccessiveregisters.Thecommandsare:

R? 20,1 'reads register 20R? 21,1 'reads register 21 orR? 20,2 'reads register 20 and 21

Bothsequencesreturn twonumbers to theuser. TheMSWis returnedfromRegister20,theLSWfromRegister21.MultiplytheMSWby2^16or65536andaddittotheLSW.Dividetheresultby1000toscaleittothreedecimalplaces.

Reading = ((MSW * 65536) + LSW)/1000

3.8.8 Floating Point Variables

SomenewModbusdeviceslikeWatlow'sEZPMseriescontrollersusetwoconsecutiveregistertocontrolavalueortoreadbackaprocessvari-able.ThetworegistersholdanIEEE-75432-bitfloatingpointword.Theregistersarereadandwrittentointhelowword-upperwordorder.

3.8.9 Floating Point Write

TheWFcommandwritesthenumvalueinfloatingpointformattotwoconsecutiveregistersstartingwiththelowwordregister.

WF 2160, 75 'writes to registers 2160 and 2161

3.8.10 Floating Point Read

TheRF?queryreadsa32-bitfloatingpointvaluefromtwosequentialreg-isterinlowword-upperwordorder.TheRF?doesnotrequirethenumberofregistertoreadsinceitisfixedattworegisters.

RF? 360 'reads registers 360 and 361

3.8.11 Setting Modbus Device Timeouts

Page 78: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

3-27

3

Thetimethatthe4899AwaitstoreceivearesponsefromtheModbusdeviceisprogrammablebytheDcommand.Thisisaninternal4899AtimeoutandnotthesameastheGPIBbustimeout.Ifthe4899Adoesnotreceivearesponsewithinthetimeoutperiod,itassumesthattheModbusdeviceisnotrespondingandsetsthetimeouterror.Timeouterrorscanbedeter-minedbyreadingthe4899A'sModbusErrorRegisterwiththeE?query.Iftheerrorcodeis101(Modbustimeout)thenthetimeoutperiodshouldbelengthened.Thecommandtochangethetimeoutperiodis:

D 300 ‘sets timeout period to 300 ms

Thedefaulttimeperiodof100millisecondshasprovedtobesatisfactoryforsomeWatlowcontrollersbutshouldbeverifiedcarefullyforyourspe-cificModbusdevice.Somedevicesfailtorespondwithinthedefaulttimeperiodbecausetheyperformperiodiccalibrations.Therecommendationisthatyourprogramshouldhaveabuilt-inrecoveryroutinetohandletheoccasionaltimeouterror.

3.8.12 Locking Setup Parameters

Allofthe4899A’sconfigurationparameterscanbelockedtopreventac-cidentalchangebytheenduser.Theselockableparametersarenotedbya#symbolinTables1-1.Lockedparameterscannotbequeriedorchangedwhilelocked.Anycommandthataddressesalockedparameterisnotex-ecuted,theCommandErrorbitintheEventStatusRegisterisassertedandtheERRLEDislit.Thelockfunctionissavedbythe*SAV0command.

Anexampleis:

CAL:LOCK ON ‘blocks unauthorized changes*SAV 0 ‘saves lock condition

CAL:LOCK OFF ‘unlocks setup parameters

Whilelockisenabled,theend-usercanchangeandsaveanynon-lockedparameter.

3.8.13 Generating SRQs from Modbus Errors

Page 79: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

3-28

3

Figure3-1showstheStatusReportingStructure.AllModbusErrorcodesareplacedintheModbusErrorRegisteratthetopofthefigure.IftheproperEventStatusandStatusByteregisterbitsareenabled,anyModbusErrorcodewillgenerateaSRQ.Thecommandstoenablethebitsare:

*ESE 64 ‘enables ESR bit 6*SRE 32 ‘enables Status Byte bit 5

SomeModbusErrorssetspecificbitsintheQuestionableEventRegister.TogenerateaSRQfromaspecificevent,itsbitmustbeenabled.Thefol-lowingcommandsenableSRQsforTimeoutsandCRCerrorsonly:

STAT:QUES:PTR #h3000 ‘enables positive going bits 12 and 13 to set bits in the Questionable Event RegisterSTAT:QUES:ENAB #h3000 ‘enables Event bits 12 and 13*SRE 8 ‘enables Status Byte bit 3

Inbothcases,theuserneedstoresettheeventcauseandcleartheSRQsoanothererrorwillcauseanotherSRQ.Incaseone,thisisdonebyreadingtheModbusErrorRegisterwiththeE?query.Incasetwo,theQuestionableEventRegistermustbereadtocleartheseteventbits.

3.8.14 Personalizing the Unit’s IDN Message

TheIDNmessageischangedwiththeCALIBRATEsubsystemcommands.ChangetheIDNmessagewhenyouwanttopersonalizetheunit,toiden-tifytheoverallassemblyasbeingfromyourcompanyortorecordproducthistoryorrevisiondates.TheIDNmessageisalockableparameterandiflocked,needstobeunlockedbeforebeingchanged.TheformatfortheIEEE488.2IDNmessageisfourfields(company,model#,serialnumberandrevision)separatedbycommasandamaximumof72characterslong.Theword“model”maynotbeusedinanIEEE-488.2IDNmessage.AnexampleIDNmessagechangesequenceis:

CAL:LOCK OFF ‘unlocks all parameters CAL:IDN Acme Test Co, 101, s/n 007, Rev 1 07/08/30 'enter a new IDN message*SAV 0 ‘saves lock status

Page 80: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

3-29

3

CAL:LOCK ON ‘relocks all parameters *SAV 0 ‘saves lock status

3.8.15 Saving the Configuration

The*SAV0commandsavesthecurrentconfigurationinnonvolatileMemory.ThisincludesallconfigurationsettingsandthecurrentI/Osettings.ThesavedconfigurationisrecalledandtheI/Osettingsrestoredtotheirsavedstateatpowerturn-onorbythe*RCL0command.WARNING - Because the Nonvolatile Memory has a finite number of write cycles, the *SAV command should not be used inside a program loop. Besureallsettingsarecorrectbeforesaving.

*SAV 0 ‘saves current values and configuration

*RCL 0 ‘recalls the saved configuration

3.9 OEM DOCUMENTATION GUIDELINES

Page 81: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

3-30

3

OEMusersofthe4809A,4819A,4829Aand4899Ashouldprovidetheenduserwiththenecessaryinstructionstooperatethecompletesystem.Inmostcasesthisincludesdirectionsfor:

1. Settingtheproduct’sGPIBAddressorserialaddress.2. How to use theModbus commands to control the host device.

(Includessendingoutputsandreadinginputsifapplicable).TheOEMneedstodefinethecommandsintermsofwhattheydotothehostunitandhowtheendusershouldusethem.

3. Usingthe488.2StatusReportingStructure.TheOEMneedstodefinewhatthedigitalinputsmeaniftheyarepartofthesystem,howtoenableSRQsandhowtoreadtheregisters.

TheSCPIStandardrequiresthattheSCPIcommandtreeandSCPIcon-formanceinformationbepassedontotheenduser.Thisonlymeanstheactiveorapplicablecommands.Lockedcommandsbecomeinvisibletotheenduserandshouldbeomittedfromtheenduser’sSCPIcommandtreeandlist.

OEMusersareherebygivenpermissiontocopyanyportionofthismanualforthepurposeofdocumentingsystemsorproductsthatincorporateICS’sModel4809A,4819Aor4899A.ReproductionofthismanualforotherpurposeswithouttheexpressedwrittenconsentofICSElectronicsisfor-bidden.

Page 82: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

4-1

4

4

Theory of Operation4.1 INTRODUCTION

Thissectiondescribesthetheoryofoperationofthe4809A,4819A,4829Aand4899AGPIB<->ModbusControllers.Themodelsaresimilarandhaveasimilarblockdiagram.WhereverthetextreferstotheModel4899A,itappliesequallytotheothermodelsunlessotherwisenoted.

TheModel4819Aand4829Ahavesomeadditionalfeaturesandiscoveredseparately.

4.2 4899A AND 4809A BLOCK DIAGRAM DESCRIPTION

Ablockdiagramofthe4899AisshowninFigure4-1.The4899Aisami-croprocessorbaseddevicethattransparentlypassesdatabetweentheGPIB(IEEE488)busandaModbusslavedeviceoveraseriallink.The4899Aismadeupofsevenmajorelements,mostofwhichareinterconnectedtothemicroprocessorbyacommondata,addressandcontrolsignalbus.The4809A'sblockdiagramissimilartothe4899A.

IncomingGPIBbusdataandcommandsarereceivedbytheGPIBcontrollerchip.EachreceivedcharacterinterruptsthemicroprocessortoplacethecharactersintheGPIBreceiveddatabuffer.Whenacompletemessagehasbeenreceived,theparserchecksthemessageforavalidcommandandthenactsuponit.Invalidmessagescauseabittobesetintheunit'sEventStatusRegisterandturnontheERRLED.

IfthemessageisaModbuscommandthenitisconvertedintoaseriesofbinarycharacterstomakeuptheModbusRTUmessagepacket.TheModbus

Page 83: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

4-2

4Figure 4-1 4899A Block Diagram

messagepacketincludestheslavedeviceaddress,thecommandnumber,theregistersanddata(ifany)thatisbeingsenttotheregisters.Acheck-sumisaddedtomakeupthecompleteModbusRTUpacket.TheModbuspacketisthenplacedintheserialtransmitbuffer.Fromtheserialtransmitbuffer,thedatacharactersaresequentiallyplacedinthemicroprocessor'sUARTwheretheyareserialized,passedthroughtheselectedserialdriverandoutputtedattheserialinterface.

SCPIcommandsand IEEE-488.2commandsareparsedandused to setcontrolparameters,performanoperationorqueryaparameter.ResponsesareplacedintheGPIBbuffersotheycanbereturnedtothehostcontrollerwhentheunitisnextaddressedtotalk.

IncomingserialdatafromtheModbusslavedeviceisreceived,convertedintoTTLlevelsandappliedtotheUART'sinput.Eachreceivedcharacteristemporarilystoredintheserialreceiveddatabuffer.Thecharactersinthe

GPIBCTLR

RAM

Microprocessor

AddressDCDR

µP BUS

+5

FLASH

Interfaceto

internalSerialDevice

PowerSupply

5-12 VDCInput +5V

Latch

GPIB

+5

Diagnostic LEDs

ExternalSerial

I/O

Page 84: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

4-3

4

receivedmessagearecountedandverifiedagainsttheexpectedresponsecharactercount.Themessageisthenchecksumed.Ifthereceivedmessageisavalidresponse,anydataisconvertedintothecorrectformatandplacedintheGPIBbufferwherecanbetransferredoutontotheGPIBbuswhentheunitisnextaddresstotalk.MessagesthatcontainerrorsorExceptionmessagescausethe4899AtosetbitsintheQuestionableRegisterandtoplaceanerrorvalueintheModbusErrorRegister.The4899AcontainsamultilevelStatusByteRegisterandEventRegisterstructureenablesthe4899AtogenerateaServiceRequestandinterrupttheGPIBbuscontrollerwhenerrorsaredetected.

FlashMemorycontainsallofthe4899A'sprograminstructions,commandtables,andpowerturn-on/selftestroutines.Atpowerturn-on,the4899Aperformsaselftestoneachfunctionalblocktodeterminewhetherthereisagrosssystemfailure.Anyselftesterrorisdisplayedasapatternofblink-ingLEDsonthefrontpanel.Theerrorpatternisrepeateduntiltheunitisturnedoff.Justaftercompletingtheselftestroutine,the4899AdisplaysitscurrentGPIBaddresssettingonthefrontpanelLEDs.Bitweightsarereadfromrighttoleftwiththeleastsignificantbitonthefarright.TheRDYLEDcomesontoindicateasuccessfulcompletionoftheselftestroutine.

The4899A'sand4809A'sconfigurationsettings,serialnumberandotherparametersthataresubjecttochangearesavedinanonvolatileFlashsec-tor.Atpowerontime,themicroprocessorcopiesthesavedconfigurationtoRAMwhereitisusedtooperatetheunit.Anychangesmadetotheset-tingsduringruntimearenotstoredintheFlashsectoruntiltheusersendsthe4899Athe*SAV0 command.

Inthe4899A,theRAMisa8bitwidememorythatisprimarilyusedfordatastorage,operatingvariablesandconfigurationsettings.The4899Adata buffers aremechanized as straight buffers because of theModbuscommand-responseprotocol.Thebuffersareseveraltimeslargerthananyanticipatedmessagesonodatalosseveroccurs.GPIBbusdataisneverlostsincethe4899AsimplyinhibitsfurtherBushandshakesuntilthereisroomintheGPIBbufferformoredata.

The4899A'spowersupplyisaswitchingregulatorthatconvertsaunregu-lated9to32voltDCinputto+5Vdctorunthe4899A'sinternallogicchips.ADC-DCconverterintheRS-232transmitterICmakes±9VdctooperatetheRS-232drivers.

Page 85: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

4-4

4

The4809Ahasanon-cardregulatorthatconvertsunregulated+5.5to+12voltDCpowerto+5Vdctorunthe4809A'scircuits. Ajumperonthe4809Abypassestheregulatorsothatthe4809Acanberunfromregulated5voltDCpower.

4.3 4819A BLOCK DIAGRAM DESCRIPTION

Ablockdiagramofthe4819AisshowninFigure4-2. The4819Aisamicroprocessorbaseddevice that transparentlypassesdatabetween theGPIB(IEEE488)busandaModbusslavedeviceoveraseriallink.The4819AalsohasaserialI/OconnectorforcommunicatingdirectlywiththeModbusslavedevice.The4819Aismadeupofsevenmajorelements,mostofwhichareinterconnectedtothemicroprocessorbyacommondata,addressandcontrolsignalbus.

IncomingGPIBbusdataandcommandsarereceivedbytheGPIBcontrollerchip.EachreceivedcharacterinterruptsthemicroprocessortoplacethecharactersintheGPIBreceiveddatabuffer.Whenacompletemessagehasbeenreceived,theparserchecksthemessagetoseeifitisanIEEE-488.2CommonCommandor if it isaSCPIcommand. SCPIcommandsandIEEE-488.2commandsareparsedandusedtosetthe4819A'sconfigura-tion,performanoperationorqueryaparameter.ResponsesareplacedintheGPIBbuffersotheycanbereturnedtothehostcontrollerwhentheunitisnextaddressedtotalk.

IfthemessageisaModbuscommandthenitisconvertedintoaModbuspacketandoutputted through theserialORgate to theModbusdevice.IncomingserialdatafromtheModbusslavedeviceisconvertedintoTTLlevelsandappliedtotheinputofthe4819A'sUART.Receivedpacketsarecheckedasdescribedforthe4899A.Ifthereceivedmessageisavalidresponse,theresponsedataisconvertedintothecorrectformatandplacedintheGPIBbufferwherecanbeoutputontotheGPIBbuswhentheunitisnextaddresstotalk.MessagesthatcontainerrorsorExceptionmessagescausethe4899AtosetbitsintheQuestionableRegisterandtoplaceanerrorvalueintheModbusErrorRegister.

The4819AalsoprovidesaserialpathfromrearpanelserialconnectortotheModbusdevice. Externalserialdata isORedwith theserialoutputoftheGPIBlogictomaketheserialoutputtotheModbusdevice.SerialresponsesfromtheModbusdeviceareroutedtoboththerearpanelserial

Page 86: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

4-5

4connectorandtotheGPIBlogic.BecauseofthesimpleORgatepath,onlyoneinterfacecanbeusedtocontroltheModbusdeviceatatime.

TheFlashmemorycontainsallofthe4819A'sprograminstructions,com-mandtables,andpowerturn-on/selftestroutines.Atpowerturn-on,the4819Aperformsaselftestoneachfunctionalblocktodeterminewhetherthereisagrosssystemfailure.AnyselftesterrorisdisplayedasapatternofblinkingLEDsonthefrontpanel.Theerrorpatternisrepeateduntiltheunitisturnedoff.Justaftercompletingtheselftestroutine,the4819AdisplaysitscurrentGPIBaddresssettingonitsLEDs.TheRDYLEDcomesontoindicateasuccessfulcompletionoftheselftestroutine.

TheFlashalsocontainsallof the4819A's configuration settings, serialnumberandotherparametersthataresubjecttochange.Atpowerontime,themicroprocessorcopiestheconfigurationfromFlashmemorytoRAMwhereitisusedtooperatetheunit.Anychangesmadetothesettingsdur-ingruntimearenotstoredintheFlashmemoryuntilsavedwiththe*SAV0 command.

Figure 4-2 4819A Block Diagram

Page 87: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

4-6

4

Inthe4819A,theRAMisa8bitwidememorythatisprimarilyusedfordatastorage,operatingvariablesandconfigurationsettings.The4819Adatabuffersareseveraltimeslargerthananyanticipatedmessagesonodatalosseveroccurs.GPIBbusdataisneverlostsincethe4819AsimplyinhibitsfurtherBushandshakesuntilthereisroomintheGPIBbufferformoredata.

The4819Ahasanon-cardregulatorthatconvertsunregulated+5.5to+12voltDCpowerto+5Vdctorunthe4819A'scircuits. Ajumperonthe4819Abypassestheregulatorsothatthe4819Acanberunfromregulated5voltDCpower.ADC-DCconverterintheRS-232transmitterICmakesthe±9VdcnecessarytopowertheRS-232drivers.

GPIBCTLR

RAM

Microprocessor

AddressDCDR

µP BUS

+5

FLASH

Interfaceto

internalSerialDevice

PowerSupply

5-15 VDCInput +5V

Latch

GPIB

+5

Diagnostic LEDs

ExternalSerial

I/O

Figure 4-3 4829A Block Diagram

4.4 4829A BLOCK DIAGRAM DESCRIPTION

Ablockdiagramofthe4829Aissimilartothe4819AblockdiagramshowninFigure4-2.MajordifferenceisthatsignalsfromtheExternal(RS-232)

Page 88: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

4-7

4

SerialInterfaceisroutedintothemicroprocessor.Theincomingserialmes-sageisbufferedandthenretransmittedtotheinternalserialdevice.TheserialsignalstotheinternaldevicearedifferentialRS-485signals.Internaljumpersconnectthetransmitandreceivesignalstogetherfortwo-wire,halfduplexoperation.

Page 89: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

4-8

4Thispageintentionallyleftblank

Page 90: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

5-1

5

5

Troubleshooting and Repair5.1 INTRODUCTION

Thissectiondescribesthemaintenance,troubleshootingandrepairproce-duresfortheModel4809A,4819Aand4899AGPIB<->ModbusInter-faces.Allcommentsanderrorsapplyequallytoallunitsunlessotherwisestated.

5.2 MAINTENANCE

The4809A,4819A,4829Aand4899Adonotrequireperiodiccalibrationandhavenointernaladjustments.However,iftheinterfacesareusedinanapplicationwheretheIEEE488buscablesarefrequentlychangedoriftheinputsignalsappearerratic,theGPIBconnectormayrequireclean-ingtoremovewaxanddirtbuildup.Newbusandother'blueribbon'typeconnectorsareshippedwithabrighteneronthem.(Thebrightenerisathinwaxlikefilm)Dependinguponcableusage,enoughofthebrightenermaybuildupontheGPIBconnectortocauseintermittentoperation.

Thebrightenerisanorganiccompoundandmaybecleanedoffbywashingtheconnectorwithamilddetergentsolutionfollowedbyanalcoholwash.

Page 91: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

5-2

5

5.3 TROUBLESHOOTING

Troubleshootingisbrokendownintoselftesterrorsandoperatingerrorsthatarecausedduringusage.

5.3.1 Self Test Errors

The4809A,4819Aand4899AindicateselftesterrorsbyblinkingoneormoreofitsLEDsata2cpsrate.Verifytheerrorbyturningtheunitofffor10seconds,disconnecttheunitfromanyotherequipmentandthenturnthepowerbackon.Iftheerrorpersistsitisatrueselftesterror.TheselftesterrorcodesandtheirmostlikelyproblemsarelistedinTable5-1.

5.3.2 Operating Failures

UsethefaultisolationinformationinTable5-2tonarrowtheoperationalproblemdowntoaspecificarea.Themajorityofinstallationfaultscanbefixedbyfollowingthetableandmakingthenecessarycorrectionstothe installationwiringor theprogram. Failures after theunit hasbeenrunningawhilecanbeisolatedbyfirstsubstitutingaknowngoodunitoroutput/inputchannel.

WARNING

If the fault isolation procedure requires internal measurements, always remove power when dis-assembling or assembling the unit. Use extreme caution during troubleshooting, adjustments, or repair to prevent shorting components and causing further damage to the unit.

Page 92: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

5-3

5

TABLE 5-1 SELF TEST ERROR CODES

Blinking LED Error Possible Fault

All

RDY

TALK

LSTN

FlashVariableSector

FlashVariableSector

FlashProgramMemory

RAM

FlashVariableMemorycorruptedandunitresetvariablememorytofactorysettingsatpowerturn-on.PowerunitoffandbackontocleartheblinkingLEDs.

SeeTable5-2 if theERRLEDcomesonwhenpowerisreapplied.

LooseFlashinsocket.Checkpartforbentpinsandpressintosocket.U14in4899A,U7in4809AorU2in4819A.

DefectiveFlash thatcannotbewritten to. Replacepart.

DefectivedecoderGAL.Testand/orreplaceGAL.U3in4899A,U16in4809AorU5in4819A.

Flashlooseinitssocketorhasabentpin.CheckFlashchipforabentpinthenpressteFlashchipintoitssocket.U14in4899A,U7in4809AorU2in4819A.

FlashMemorydroppedabit.ReplacethedefectiveFlashwithaknowngoodFlash. DefectivedecoderGAL.Testand/orreplaceGAL.U3in4899A,U16in4809AorU5in4819A.

DefectiveRAM.ReplaceRAMwithnewIC.U18or22in4899A,U8in4809AorU3in4819A.

DefectivedecoderGAL.Testand/orreplaceGAL.U3in4899A,U16in4809AorU5in4819A.

Page 93: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

5-4

5

SRQ

ERR

SRQ+ERR ERR+LSTN

ERR+LSTN+TALK

Solid LED

PWR(Afterblinkingaddress)

RDYoff(Afterselftest)

GPIB

AddressSetting

GPIB

CPUtype

CPUtype

Error

Programhung

DCDlow

Defective GPIB controller chip. ReplaceGPIBController,U6in4899A,U3in4809AorU8in4819A.

Addressvalueshouldbebetween0and30.Checkandorcorrectaddresssetting. WrongfirmwareorGPIBchipforhardwareconfiguration.CheckhardwareconfigurationandchangefirmwareorreplaceGPIBControl-lerchipwithNI7210.U8in4819A

WrongCPUtype.ShouldbeZilogZ8S18020VSC (SL19A19A EnhancedVer-sion) WrongCPUtype.ShouldbeZilogZ8S18020VSC

Possible Fault

OpenGPIBchipselectionlineorgroundedinter-ruptintoZ180.

DCDinputshouldbehigh.Checkcablewiringandslavedeviceishandshakingsignalsusedincable.

TABLE 5-1 SELF TEST ERROR CODES CONTINUED

Blinking LED Error Possible Fault

Page 94: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

5-5

5

TABLE 5-2 TROUBLESHOOTING GUIDE

PossibleSymptom Fault Action or Check

Unitwillnotturnon Powercordnot PushpowercordintoDC pluggedin receptacle PoweratACoutlet Checkoutletandpower adapter

Highoutputlines Disconnectoutputsignalsand shortedtoground reapplypowertotesttheunit. Ifitpowerson,removethe shortorputresistorsinthe offendingcircuitpath. Unitshowsablinking Selftestfault CheckSelfTesterrorsinLEDatpowerturnon Table5-1

ERRLEDonat Flashdatalost Use*CLStocleartheLED.powerturn-on UseCAL:DATEcommandto enternewdatesoERRLED willnotcomeonatnext power-ontime.

Recallthefactorydefaults withtheCAL:DEFAULT command.Use*SAV0to savethefactoryconfigura tion.

Reloadyourconfigurationand usethe*SAV0command tosaveyournew configuration.

Unitfailstorespond Nodelayafteran Providea70msminimumorrespondswrong theaddresschange delayafterchangingtheafteranaddresschange GPIBaddress.

Page 95: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

5-6

5

TABLE 5-2 TROUBLESHOOTING GUIDECONTINUED

PossibleSymptom Fault Action or Check

Noresponsefrom WrongGPIBaddress Turnunitoffandbackon.GPIBcommands WatchLEDstocheckaddress setting. ERRLEDcomeson Badcommand Checkcommandsyntax. QuerytheESRregisterto determinethecauseofthe error.

ModbusError IfESRbit6ison,querythe ModbusErrorRegisterwith theE?command. Nocommunication Wiringerror CheckRS-232orRS-485withModbusdevice cablewiringagainstfigures inSection2.ModbusTXD signalmustgoto48x9A receiveinput.Usean RS-232TrackerorDVMto findModbusTXDsignal. TXDwillbe-6to-12Vdc.

Parametersetting Check4899ASerialsettings mismatch vsthesettingsontheModbus device.UsetheSCPIcom- mandsinTable3-2toquery orchangethe4899Asettings.

Settheserialparameters tomatch.Savenew4899A settingswiththe*SAV0 command.Powercyclethe 4899Aorusethe SYST:COMM:SER:UP commandtoactivatethenew settings.

Page 96: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

5-7

5

WrongModbus Querythe4899A'sModbus addressoraddress deviceaddressandcompareit changed. againstModbusdevicesetting. SetModbusdeviceaddress withtheCncommand.

Messagenotbeing WatchAccessLEDon receivedbythe Modbusdevicetoverify Modbusdevice. serialmessagereceivedby Modbusdevice. Commandsyntax Modbusdevicemanualfor applicablecommands, registersandvalues.

CheckModbusErrorregister forModbusproblems Faultyormissing Modbustimeout CheckModbusErrorRegisterModbusresponses setting withtheE?queryforatime outerror(Error101)

UseDcommandtolengthen timeoutto300or500msec. Savesettingwiththe*SAV0 command.

Nocommunicationon RS-485notenabled 4899A/4809ARS-485notRS-485link. enabled.

Checksettingwiththe SYST:COMM:SER:RS485? query.

BadRS-485data Notermination Missingpulluporpulldown onRS-485link. resistors.AddresistorstoRS- 485network.

TABLE 5-2 TROUBLESHOOTING GUIDECONTINUED

PossibleSymptom Fault Action or Check

Page 97: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

5-8

5

5.4 FACTORy DEFAULT RECOVERy

Iftheboardsconfigurationgetsintoanunknownsetting,itcanberestoredtothefactorydefaultconfigurationwithoneofthefollowingprocedures.UsetheCAL:DEFAULTcommandtoreinitializethesettings.Ifthatdoesnotwork,usethehardwaredefaultjumper.

1. Powertheboardoff.

2. Locatethedefaultjumperandplaceashortingjumperonit.SeeSection2.11forjumperlocations.

3. Powertheboardon.After5secondstheLEDsshouldblinkasthevariablesarereset.WaituntiltheLEDsstabilizeandtheboardhasfinisheditssaveprocedure(takesapproximately10seconds).

4. Removetheshortingjumperandoperatetheunitnormally.

Page 98: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

5-9

5

5.5 REPAIR

Repairofthe4809A,4819A,4829Aand4899Aisdonebyreturningtheunittothefactoryortoyourlocaldistributor.Unitsinwarrantyshouldalways bereturnedtothefactoryorelserepairedonlyafterreceivingpermissiontodosofromanICScustomerservicerepresentative.

Whenreturningaunit,aboardassembly,orotherproductstoICSforrepair,itisnecessarytogothroughthefollowingsteps:

1. ContacttheICScustomerservicedepartmentandaskforareturnmaterialauthorization(RMA)number.AnICSapplicationengineerwillwanttodiscusstheproblematthistimetoverifythattheunitneedstobereturned,ortoassistincorrectingtheproblem.Wehavediscoveredthatone-thirdofthedifficultiescustomerscallaboutcanberesolvedoverthephoneasopposedtoreturningaunitforrepair.

2. Writeadescriptionoftheproblemandattachittothematerialbe-ingreturned.Describetheinstallation,systemfailuresymptoms,andhowitwasbeingused.Iftheitembeingreturnedisaboardassembly,describehowyouisolatedthefaulttoit.Includeyournameandphonenumbersowecancallyouifwehaveanyques-tions.Remember,weneedtolocatetheprobleminordertofixit.

3. Packtheitemwiththefaultdescriptioninaboxlargeenoughtoaccommodateaminimumoftwoinchesofpackingmaterialonallfoursides,thetop,andthebottomofthebox.Securelysealthebox.

4. Mark the shipping label to the attention ofRMA#. TheRMAnumberisveryimportantsinceitisourwayofidentifyingyourunitinordertoreturnittoyou.

5. ShiptheboxtoICSfreightprepaid.ICSdoesnotpayfreighttoreturntheunittoICS,butwillprepaythefreighttoreturnthere-paireditemtoyou.

Page 99: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

5-10

5

Thispageleftintentionallyblank

Page 100: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

A-1

A

Appendix Page

A1 IEEE488BusDescription A-2A1.1 IEEE488.1Bus A-2A1.2 IEEE488.2Standard A-9A1.3 SCPICommands A-12

A2 SerialDataCommunicationsBackground A-15A2.1 IntroductiontoSerialCommunication A-15A2.2 RS-232Standard A-18A2.3 RS-422andRS-485Standards A-20A2.4 RS-530Pinouts A-21A2.5 SerialInterfaceProblems A-21

A3 GPIBConnector/SwitchBoardAssemblies A-22A3.1 BoardDescriptions A-22A3.2 DimensionsandInstallation A-22

Appendix

Page 101: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

A-2

A

A1 IEEE 488 BUS DESCRIPTION (IEEE 488.1, IEEE 488.2, SCPI)

TheIEEEStd488Busisaconvenientmeansofconnectinginstrumentsandcomputerstogethertoformatestsystemortotransferdatabetweentwocomputers.TheIEEEStd488.1coverstheelectricalandmechanicalbusspecificationsandthestatediagramsforeachbusfunction.TheIEEEStd488.2expandedontheoriginalspecificationandestablisheddatafor-mats,commoncommandsforeach488.2deviceandcontrollerprotocols.TheSCPIstandarddevelopedatreelikeseriesofstandardcommandsforprogrammableinstrumentssothatsimilarinstrumentsbydifferentmanu-facturerscanbecontrolledbythesameprogram.

The488-PC2cardprovidesanIEEE488InterfaceforanyIBMPCcomputerorcompatibleISAbusclone.Whenusedasabuscontroller,the488-PC2drivers,driverlibrariesandwindowsDDLmakethe488-PC2operateasa488.2compatiblecontroller.ThecontrollerprotocolsarebuiltintothePC2drivers.AllIEEE488.2commoncommands,queriesandSCPIcom-mandsareplacedintheoutputcommandstringbytheuserandarenotpartofthePC2driversoftware.

A1.1 IEEE 488.1 Bus

TheIEEEStd488Bus,orGPIBasitiscommonlyreferredto,providesameansoftransferringdataandcommandsbetweendevices.ThephysicalportionofthebusisgovernedbyIEEE-Std488.1-1978.Theinterfacefunctionsforeachdevicearecontainedwithinthatdeviceitself,soonlypassivecablingisneededtointerconnectthedevices.Thecablesconnectallinstruments,controllersandothercomponentsofthesysteminparalleltothesignallineasshowninFigureA-1.Eightofthelines(DIO1-DIO8)arereservedforthetransferofdataandothermessagesinabyte-serial,bit-parallelmanner.Dataandmessagetransferisasynchronous,coordinatedbythethreehandshakelines(DAV,NRFD,NDAC).TheotherfivelinescontrolBusactivity.

Twotypesofmessagesaretransferredoverthebus: Interfacemessages-forbusmanagement

Device-dependentmessages-fordevicecontrolanddata transfer

Page 102: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

A-3

A

Figure A-1 IEEE 488 Bus

Devicesconnectedtothebusmayactastalkers,listeners,controllers,orcombinationsofthethreefunctions,dependingupontheirinternalcapability.Thesystemcontrollerisacontrollerthatbecomesactiveatpowerturn-on.ItistheBusmanagerandtheinitialcontroller-in-charge.

A controllercan send interface messages to manage the other devices, address devices to talk or listen and command specific actions within devices.

A talkersends device dependent messages, i.e., data, status.

A listeneraccepts interface messages, bus commands and device-de-pendent messages, i.e., setup commands, data.

Bussystemscanbeassimpleastwodevices;oneatalkeralwayssendingdatatoaseconddevicewhichlistenstothedata.Largersystemscanhaveoneormorecontrollersandmanydevices(theIEEE488driverspecificationslimitthetotalnumberofunitsononebussystemto15).Onlyonecontrollercanbethecontroller-in-chargeatanygiventime.Controloriginateswiththesystemcontrollerandispassedbacktoothercontroller(s)asrequired.Controlcanbepassesbacktothesystemcontrollerortoanothercontrollerafterthecompletionofthetask.Thesystemcontrollerhasthecapabilityoftakingcontrolbackatanytimeandresettingalladdresseddevicestotheirunaddressedstate.

Eachbusdeviceisidentifiedbyafive-bitbinaryaddress. Thereare31possibleprimaryaddresses0through30.Address31isreservedasthe'untalk'or 'unlisten' command. Somedevices contain sub-functions,or

DEVICE B Able to Talk

and to Listen

e.g. DVM

DEVICE CAble to Listen

e.g. Signal generator

IFCATNSRQRENEOI

DAVNRFDNDAC

DIO1-8

DEVICE A Able to Talk,Listen and Control e.g. Computer

Bus ControlLines

Byte TransferControl Lines

Data Bus(8 Lines)

Page 103: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

A-4

A

thedevicesthemselvesmaybeaddressedbyasecondaryfive-bitbinaryaddressimmediatelyfollowingtheprimaryaddress,i.e.1703.Thissec-ondaryaddresscapabilityexpandsthebusaddressrangeto961addresses.Mostbusaddressesaresetatthetimethesystemisconfiguredbyrockerswitcheswhicharetypicallylocatedoneachdevices'rearpanel.DevicesthatareSCPI1991compatible,canhavetheirbusaddresssetbyaGPIBSYSTEMconfigurationcommand.

Information is transmittedon thedata linesunder sequential control ofthethreehandshakelines.Nostepinthesequencecanbeinitiateduntilthepreviousstepiscompleted.Informationtransferproceedsasfastasthedevicesrespond(upto1Mbs),butnofasterthanthatallowedbytheslowestaddresseddevice.Thispermitsseveraldevicestoreceivethesamemessagebyteatthesametime.Althoughseveraldevicescanbeaddressedtolistensimultaneously,onlyonedeviceatatimecanbeaddressesasatalker.Whenatalkaddressisputonthedatalines,allothertalkersarenormallyunaddressed.

ATN(attention)isoneofthefivecontrollinesandissettruebythecontrol-ler-in-chargewhileitissendinginterfacemessagesordeviceaddresses.ThemessagesaretransmittedonthesevenleastsignificantdatalinesandarelistedintheMSGcolumnsinTableA-1.Whenadeviceisaddressedasa talker, it isallowedtosenddevice-dependentmessages(e.g.,data)whenthecontroller-in-chargesetstheATNlinefalse.ThedatamessagesaretypicallyaseriesofASCIIcharactersendinginaCR,LF,orCRLFsequence.Thedatamessagesoftenconsistofeight-bitbinarycharactersandendonapredeterminedcountorwhenthetalkerassertstheEOIlinesimultaneouslywiththelastdatabyte.Thecontroller-in-chargemustbeprogrammed to correctly respond to each device'smessage terminationsequencetoavoidhanging-upthesystemorleavingcharactersthatwillbeoutputwhenthedeviceisaddressedasatalkeragain.

IFC(interfaceclear)issentbythesystemcontrollerandplacestheinterfacesysteminaknownquiescentstatewithalldevicesunaddressed.

REN (remote enable) is sent by the systemcontroller and is usedwithotherinterfacemessagesordeviceaddressestoselecteitherlocalorremotecontrolofeachdevice.

SRQ(servicerequest)issentbyanydeviceonthebusthatwantsservice,suchascounterthathasjustcompletedatime-intervalmeasurement.

Page 104: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

A-5

A

EOI(endoridentify)isusedbyadevicetoindicatetheendofamultiple-bytetransfersequence.Whenacontroller-in-chargesetsboththeATNandEOIlinestrue,eachdeviceconfiguredtorespondtoaparallelpollindicatesitscurrentstatusontheDIOlineassignedtoit.

BusCommandsare transmittedwhenATNisasserted. ThecommandsarelistedinthemessagecolumnsinTable1(onthelefthandpage)whichshowstherelationshipbetweenthecommandsandASCIIdatacharacters.ASCIIdatacharactershavethesamecodevaluesasbuscommandsbutaretransmittedwithATNoff.Thefollowingchartliststhestandardcommandandaddressmnemonics.

AddressCommands MLA Mylistenaddress(controllertoself) MTA Mytalkaddress(controllertoself) LAD Devicelistenaddress TAD Devicetalkaddress SAD Secondary Device address (device optional ad-

dress) UNL Unlisten UNT Listen

UniversalCommands(toalldevices) LLO LocalLockout DCL DeviceClear PPU ParallelPollUnconfigure SPE SerialPollEnable SPD SerialPollDisable AddressedCommands(toaddressedlistenersonly) SDC SelectedDeviceClear GTL GotoLocal GET DeviceTrigger PPC ParallelPollConfigure TCT TakeControl

Devicesonthebusarenormallyinterconnectedbycableswithdualmale/fe-maleconnectorsateachendtoalloweasycablestacking.The24conductorcablepinoutsareshowninFigureA-2.Signallevelsare0and3.3Vdcwith0beingthelogictruelevel.CableconnectorsaremodifiedAmphenol24pinBlueribbonstyleconnectors(57-30240)withmetricjackscrews

Page 105: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

A-6

A

ASC

IIN

UL

SOH

STX

ETX

EOT

ENQ

ACK

BEL

BS HT LF VT FF CR

SO SI

0 1 2 3 4 5 6 7 8 9 A B C D E F

ASC

II --

IEEE

488

BU

S M

ESSA

GES

(CO

MM

AN

DS

AN

D A

DD

RES

S) H

EX C

OD

ES

Not

es:

1. D

evic

e Ad

dres

s m

essa

ges

show

n in

dec

imal

2. M

essa

ge c

odes

are

:

3. A

TN o

ff, B

us d

ata

is A

SCII;

ATN

on,

Bus

dat

a is

an

IEEE

MSG

.

DC

L --

Dev

ices

Cle

arG

ET --

Dev

ice

Trig

ger

GTL

-- G

o to

Loc

al

LLO

-- L

ocal

Loc

kout

PPC

-- P

aral

lel P

oll C

onfig

ure

PPU

-- P

aral

lel P

oll U

ncon

figur

e

SDC

-- S

elec

ted

Dev

ice

Cle

arSP

D --

Ser

ial P

oll D

isab

leSP

E --

Seria

l Pol

l Ena

ble

ADD

RES

SED

CO

MM

AND

GR

OU

P

UN

IVER

SAL

CO

MM

AND

GR

OU

P

LIST

EN A

DD

RES

S G

RO

UP

TALK

AD

DR

ESS

GR

OU

PSE

CO

ND

ARY

CO

MM

AND

GR

OU

P

PRIM

ARY

CO

MM

AND

GR

OU

P (P

CG

)

LSDM

SDM

SG GTL

SDC

PPC

GET

TCT

ASC

IID

LED

C1

DC

2D

C3

DC

4N

AKSY

NET

BC

AN EM SUB

ESC

FS GS

RS

US

MSG LLO

DC

LPP

U

SPE

SPD

ASC

IISP ! " # $ % & ' ( ) * + , - . /

MSG

100 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15

ASC

II0 1 2 3 4 5 6 7 8 9 : ; < = > ?

MSG

116 17 18 19 20 21 22 23 24 25 26 27 28 29 30 UN

L

ASC

II@ A B C D E F G H I J K L M N O

ASC

IIP Q R S T U V W X Y Z [ \ ] ^

MSG

100 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15

MSG

116 17 18 19 20 21 22 23 24 25 26 27 28 29 30 UN

T

ASC

II` a b c d e f g h i j k l m n o

MSG

ASC

IIp q r s t u v w x y z ( | ) ~ DEL

MSG

01

23

45

67

_

MEANING DEFINED BY PCG CODE

MEANING DEFINED BY PCG CODE

TABLE A-1 IEEE 488 COMMAND AND ADDRESS MESSAGES

Page 106: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

A-7

A

Figure A-2 GPIB Signal-Pin Assignments

123456789

101112

131415161718192021222324

DIO5DIO6DIO7DIO8RENGND (TW PAIR W/DAV)GND (TW PAIR W/NRFD)GND (TW PAIR W/NDAC)GND (TW PAIR W/FC)GND (TW PAIR W SRQ)GND (TW PAIR W/ATN)SIGNAL GROUND

DIO1DIO2DIO3DIO4

EOIDAV

NRFDNDAC

IFCSRQATN

SHIELD

Page 107: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

A-8

A

Figure A-3 488.2 Required Status Reporting Capabilities

Pow

er O

nU

ser R

eque

st

Com

man

d Er

ror

Exec

utio

n Er

ror

Dev

ice

Dep

ende

nt E

rror

Que

ry E

rror

Req

uest

Con

trol

Ope

ratio

n C

ompl

ete

StandardEvent Status

Register*ESR?

7 6 5 4 3 2 1 0

7 6 5 4 3 2 1 0

Logi

cal O

R

&&

&&

&&

&& Standard

Event StatusEnable

Register*ESE <NRf>

*ESE?

QueueNot-Empty

7 5 4 3 2 1 0

Logi

cal O

R

&&

&&

&&

&

7 6 3 2 1 0RQS

MSSESB MAV

{

{ServiceRequest

Generation

Output Queue

Status Byte Registerread by Serial Poll

read by *STB?

Service RequestEnable Register

*SRE <NRf>*SRE?

Page 108: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

A-9

A

A1.2 IEEE 488.2 STANDARD

A1.2.1 IEEE 488.2 Message Formats

TheIEEE488.2Standardwasestablishedin1987tostandardizemessageprotocols,statusreportinganddefineasetofcommoncommandsforuseontheIEEE488bus.IEEE488.2devicesaresupposedtoreceivemes-sagesinamoreflexiblemannerthantheysend.AmessagesentfromGPIBcontrollertoGPIBdeviceiscalled:PROGRAMMESSAGE.Amessagesentfromdevicetocontrolleriscalled:RESPONSEMESSAGE.Aspartoftheprotocolstandardizationthefollowingrulesweregenerated:

(;) Semicolonsareusedtoseparatemessages.(:) Colonsareusedtoseparatecommandwords.(,) Commasareusedtoseparatedatafields.<nl> Linefeedand/orEOIonlastcharacterterminatesa

'programmessage'.Linefeed(ASCII10)andEOI terminatesaRESPONSEMESSAGE.(*) Asteriskdefinesa488.2commoncommand.(?) Endsaquerywhereareplyisexpected.

A1.2.2 IEEE 488.2 Reporting Structure

With IEEE488.2, status reportingwasenhanced from thesimpleserialpollresponsebyteinIEEE488.1tothemultipleregisterconceptshowninFigureA-3.TheIEEE488.2StandardstandardizedthebitassignmentsintheStatusByteRegister,addedeightmorebitsofinformationintheEventStatusRegisterandintroducedtheconceptofsummarybitsreportingtotheStatusByteRegister. TheStatusandEvent registershaveenablingregistersthatcancontrolthegenerationoftheirsummaryreportingbitsandultimatelySRQgeneration.Each488.2devicemustimplementaStatusByteRegister,aStandardEventStatusRegisterandanOutputMessageQueue as aminimumstatus reporting structure. Adevicemay includeanynumberofadditionalconditionregisters,eventregistersandenablingregistersprovidingtheyfollowthemodelshowninFigureA-3.

A1.2.3 IEEE 488.2 Common Commands

TheIEEE488.2StandardalsomandatedalistofrequiredandoptionalCom-monCommandsthatall488.2devicescouldsupport.AlloftheCommon

Page 109: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

A-10

A

TABLE A-2 IEEE 488.2 COMMON COMMANDS

Requiredcommoncommandsare:

*CLS ClearStatusCommand *ESE StandardEventStatusEnableCommand *ESE? StandardEventStatusEnableQuery *ESR? StandardEventStatusRegisterQuery *IDN? IdentificationQuery *OPC OperationCompleteCommand *OPC? OperationCompleteQuery *RST ResetCommand *SRE ServiceRequestEnableCommand *SRE? ServiceRequestEnableQuery *STB? StatusByteQuery *TST? Self-TestQuery *WAI Wait-to-ContinueCommand

Devices that support parallel polls must support the following three com-mands:

*IST? IndividualStatusQuery? *PRE ParallelPollRegisterEnableCommand *PRE? ParallelPollRegisterEnableQuery

DevicesthatsupportDeviceTriggermustsupportthefollowingcommands:

*TRG TriggerCommand

Controllersmustsupportthefollowingcommand: *PCB PassControlBackCommand

Devicesthatsaveandrestoresettingssupportthefollowingcommands:

*RCL Recallconfiguration *SAV Saveconfiguration

Devices that save and restore enable register settings support the followingcommands:

*PSC Savesenableregistervaluesandenables/disablesrecall *PSC? PSCvaluequery

Page 110: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

A-11

A

Commandsstartwithanasterisk.Commandsthatendwithaquestionmarkarequeries.QueryresponsescanbeanASCIInumberoranASCIIstring.OthernumericalformatsarelegalaslongasthedevicesupportstherequiredASCIIformat.TableA-2liststheIEEE488.2CommonCommands.

A1.2.4 IEEE 488.2 Differences From IEEE 488.1

Theuserwhoisfamiliarwiththeolder488.1devicesshouldtakethefol-lowingdifferencesintoaccountwhenprogramminga488.2device.

A488.2deviceoutputstheStatusByteRegistercontentsplustheRQSbitinresponsetoaserialpoll.TheRQSbitisresetbytheserialpoll.Thesame488.2deviceoutputstheStatusByteRegistercontentsplustheMSSbitinresponsetoa*STB?query.TheMSSbitisclearedwhenthecondi-tioniscleared.

488.2restrictstheDeviceCleartoonlyclearingthedevice'sbuffersandpendingoperations.ItdoesnotcleartheStatusReportingStructureortheoutputlines.Use*CLStocleartheStatusStructureand*RSTor*RCLtoresettheoutputs.

488.2commandsarereallyspecialdatamessagesandareexecutedbythedevice'sparser.Alwaysallowsufficienttimefortheparsertoexecutethecommandsbeforesendingthedevicea488.1command.i.e.aDeviceClearsenttoosoonwilleraseanypendingcommandsandresettheparser.

EnableRegistervaluesareonlysavedandrestoredifthe*PSCcommandis0.A*PSCcommandof1causeszerostobeloadedintotheenableregisterswhentheunitisnextresetorpoweredon.

Page 111: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

A-12

A

A1.3 SCPI COMMANDS

A1.3.1 Introduction

SCPI(StandardCommandsforProgrammableInstruments)buildsontheprogrammingsyntaxof488.2togivetheprogrammerthecapabilityhandlingawidevarietyofinstrumentfunctionsinacommonmanner.Thisgivesallinstrumentsacommon"lookandfeel".

SCPIcommandsusecommoncommandwordsdefinedintheSCPIspecifi-cation.ControlofanyinstrumentcapabilitythatisdescribedinSCPIshallbeimplementedexactlyasspecified.Guidelinesareincludedforaddingnewdefinedcommands in thefutureasnewinstrumentsare introducedwithoutcausingprogrammingproblems.

SCPIisdesignedtobelaidontopofthehardware-independentportionoftheIEEE488.2andoperateswithanylanguageorgraphicinstrumentprogramgenerators.TheobviousbenefitsofSCPIfortheATEprogrammerisinreducingthelearningtimeonhowtoprogrammultipleSCPIinstru-mentssincetheyalluseacommoncommandlanguageandsyntax.

AsecondbenefitofSCPIisthatitsEnglishlikestructureandwordsareselfdocumenting,eliminatingtheneedsforcommentsexplainingcrypticinstru-mentcommands.Athirdbenefitisthereductioninprogrammingefforttoreplaceonemanufacturer'sinstrumentwithonefromanothermanufacturer,wherebothinstrumentshavethesamecapabilities.

Thisconsistentprogrammingenvironmentisachievedbytheuseofdefinedprogrammessages, instrument responses and data formats for all SCPIdevices,regardlessofthemanufacturer.

A1.3.2 Command Structure and Examples

SCPIcommandsarebasedonahierarchicalstructurethateliminatestheneedformostmulti-wordmnemonics. Eachkeywordinthecommandstepsthedeviceparseroutalongthedecisionbranch-similartoasquirrelhoppingfromthetreetrunkoutonthebranchestotheleaves.Subsequentkeywordsareconsideredtobeatthesamebranchleveluntilanewcom-pletecommandissenttothedevice.SCPIcommandsmaybeabbreviatedasshownbythecapitallettersinFigureA-4orthewholekeywordmaybeusedwhenenteringacommand.FigureA-4showssomesingleSCPI

Page 112: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

A-13

A

commandsforsettingupandqueryingaserialinterface.

SYSTem:COMMunicate:SERial:BAUD 9600 <nl> 'Sets the baud rate to 9600 baud

SYST:COMM:SER:BAUD? <nl> 'Queries the current baud set-ting

SYST:COMM:SER:BITS 8 <nl> 'Sets character format to 8 data bits

Figure A-4 SCPI Command Examples

MultipleSCPIcommandsmaybeconcatenatedtogetherasacompoundcommandusingsemicolonsascommandseparators.Thefirstcommandisalwaysreferencedtotherootnode.Subsequentcommandsarereferencedtothesametreelevelasthepreviouscommand.Startingthesubsequentcommandwithacolonputsitbackattherootnode.IEEE488.2commoncommandsandqueriescanbefreelymixedwithSCPImessagesinthesameprogrammessagewithoutaffectingtheaboverules.FigureA-5showssomecompoundcommandexamples.

SYST:COMM:SER:BAUD 9600; BAUD? <nl>

SYST:COMM:SER:BAUD 9600; :SYST:COMM:SER:BITS 8 <nl>

SYST:COMM:SER:BAUD 9600; BAUD?; *ESR?; BIT 6; BIT?; PACE XON; PACE?; *ESR? <nl>

Figure A-5 Compound Command Examples

Atypicalresponsewouldbe:9600; 0; 8; XON; 32 <nl>

Theresponseincludesfiveitemsbecausethecommandcontains5queries.Thefirstitemis9600whichisthebaudrate,theseconditemisESR=0 whichmeansnoerrors(sofar). Thethirditemis8(bit/word)whichisthecurrentsetting.TheBIT6commandwasnotacceptedbecauseonly7or8arevalidforthiscommand.ThefourthitemXONmeansthatXON

Page 113: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

A-14

A

isactive.Thelastitemis 32(ESRregisterbit5)whichmeansexecutionerror-causedbytheBIT6command.

A1.3.3 Variables and Channel Lists

SCPIvariablesareseparatedbyaspacefromthelastkeywordintheSCPIcommand.Thevariablescanbenumericvalues,booleanvaluesorASCIIstrings.Numericvaluesaretypicallydecimalnumbersunlessotherwisestated.Whensettingorqueryingregistervalues,thedecimalvariablerep-resentsthesumofthebinarybitweightsforthebitswithalogic'1'value.e.g.adecimalvalueof23represents16+4+2+1or00010111inbinary.Booleanvaluescanbeeither0or1orelseOFForON.ASCIIstringscanbeany legalASCIIcharacterbetween0and255decimalexcept for10whichistheLinefeedcharacter.

Channellistsareusedasawayoflistingmultiplevalues.ChannellistsareenclosedinparenthesisandstartwiththeASCII'@'character.Thevaluesareseparatedwithcommas.Thelengthofthechannellistisdeterminedbytheunit.Arangeofvaluescanbeindicatedbythetwoendvaluesseparatedbyacolon.e.g.

(@1,2,3,4) 'lists sequential values(@ 1:4) 'shows a range of sequential values(@ 1,5,7,34) 'lists random values

Figure A-6 Channel List Examples

A1.3.4 Error Reporting

SCPIprovidesameansofreportingerrorsbyresponsestothe SYST:ERR? query. If theSCPIerrorqueueisempty, theunit respondswith0,"Noerror"message.Theerrorqueueisclearedatpowerturn-on,bya*CLS commandorbyreadingallcurrenterrormessages.TheerrormessagesandnumbersaredefinedbytheSCPIspecificationandarethesameforallSCPIdevices.

A1.3.5 Additional Information

FormoreinformationaboutSCPIrefertotheSCPIStandardortotheSCPIsectioninanySCPIcompatibleinstrumentmanual.

Page 114: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

A-15

A2

A2 SERIAL DATA COMMUNICATION BACKGROUND

A2.1 Introduction to Serial Communication

Serialdatacommunicationisthemostcommonmeansoftransmittingdatafromonepointtoanother.Inserialcommunicationsystems,thedatawordorcharacterissentbitbybitoversomekindoftransmissionpath.Thereceivingdevicerecognizeseachbitastheyarereceivedandreassemblesthembackintotheoriginaldataword.Serialdatacommunicationsystemsarecharacterizedbyfourprimaryfactors:

1. Dataspeedorbaudrate 2. Dataformat 3. Transmissionmedium 4. Clockingmethod

SerialdataspeedisreferredtoasBaudRate.Abaudisdefinedasasig-nalingbit,whichincludesdatabitsaswellasstart/stopframing,parityoranyotherbitsthatmakeupthedataformat.Typicalcomputerbaudratesandtheirusesare:

110-foroldmechanicalteletypes 300,1200-forlowspeeddevicesanoldermodems 9600 to 38400 baud for high speed devices and newer

modems

Dataformatreferstothemethodorpatternthetransmitterusestosendthedatawordorcharacterasaseriesofbitssothatthereceiverwillknowhowtorecognizethepatternandreassemblethebitsbackintotheoriginaldataword.Themostcommonmethodandtheoneusedinthe2303,iscalledasynchronoustransmissionbecauseeachcharacterissentoneatatimewithanundeterminedamountoftimebetweencharacters.Eachasynchronouscharacterhasalowgoingstartbit,anumberofdatabits,anoptionalparitybitand1or2highstopbits.Thetransmitterautomaticallyextendsthestopbitwhenithasnomorecharacterstotransmit.ThereceiverusesthestartbittoresynchronizeitsclockwiththedataatthestartofeachcharacterasshowninFigureA-7.

Page 115: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

A-16

A2

Start Bit

Parity Bit

Stop BitData Bits

Start 1 0 0 0 1 1 0 EvenParity (Stop)

ASYNCHRONOUSDATA CHARACTER

DATA BIT VALUES

WAVEFORM FORAN ASCII "1"

RECEIVING CLOCK

Figure A-7 Asynchronous Data Character Waveforms

Synchronous character do not have start/stop bits and are sentwithoutspacesbetweencharacters. Voidsbetweendatacharactersarefilledbypredeterminedsynccharacterswhicharediscardedbythereceiver.

Thedataportionoftheserialcharacterusuallycontains5to8bitsandistransmitted least significantbitfirst. Todaymostof thecomputers andterminalsusethe7bitASCIIcodetorepresentnumbersandcharacters.FigureA-7showshowtheASCII"1"istransmitted.ComparethebinarycodeinFigureA-7againstthehexcodeforanASCII '1'(HEX31)andtheywillbethesame.Binarydataisusuallysentinbinaryformassingle8bitcharactersorinhexformasapairoftheASCIIcharacters,0through9andAthroughF.EachHexcharacterrepresents4binarybitssotwoHexcharactersareneededforeach8bitbinarybyte.

Paritybitsareaddedafterthedatafieldiftheuserwantstodetecttransmis-sionerrors.Whenparitybitsareused,thetransmittercountsthenumberofhighbitsinthedatafieldandmakestheparitybita1or0sothefinalcountwillbeeitherevenorodd.Thereceiverthenvalidatesthereceivedcharactersbycounting1'sinthedataandparitybitfields.The2303detectsparityerrorsalongwithdataoverrunandframingerrors,generatesaBusSRQmessageforeachdataerrorandindicatestheerrorbysettingthebit3intheStandardEventStatusRegister.

Althoughserialdatacanbetransmittedoveranymedium,mostoftoday'scomputersystemsusemetalliccable.Toensurecompatibility,themanu-facturers have adopted interface standards so that they are electricallycompatible.Themorepopularstandardsare:

Page 116: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

A-17

A2

RS-232 Mostpopularstandardforofficemachines andcomputersystems.

RS-422and NewhighspeedstandardwithnoiseRS-485 improvementsoverRS-232forlonger

distances.

Devices employing the same interface standard can usually be connected together but the user must verify each devices signal requirements before plugging them together.

Whendatamustbetransmittedoverlongdistances,itistypicallysentoverthephonecompany'sdirectdialnetwork(DDN)asshowninFigureA-8.Modemsareusedtoconverttheserialdatabitsintotonesthatwillpassthroughthetelephonesystem's300to3000Hzvoiceband.Forlowbaudrates,upto1200Hz,themodemsconvertthebitsintotwotones(frequencyswitchedkeying)thatthereceivingmodemrecognizesandconvertsbacktodatabits. These lowspeedmodemsarereferred toby the telephonecompany'sdesignations,i.e.: Type103(300baud)andType212(1200baud).HigherdataratesrequiremorecomplexmodulationtechniquesandthemodemsarereferredtobytheirCCITTspecificationi.e.,V22

.

PC orComputer

Modem Modem

DDN or Leased Line

2303Interface

DigitalDevice

DigitalSignals

RS-232

RS-232

Chassis

Figure A-8 Long Distance Communication using Modems

Page 117: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

A-18

A2

Withasynchronouscharacters,thereceivernormallyusesthestartbittosynchronizeitsinternalclock.However,somedevices,suchasthehigherspeedmodems,requirethedatabitstobesynchronizedwiththeirclock.Theseunitsarereferredtoassynchronousmodems(notthesameassyn-chronousdatacharacters)andtheywillsupplytheclocksignalstoboththetransmittingandreceivingdevice.

Anotheraspectoftimingisthecontrolofdatatransmissiontoavoiddataoverrun.ThetwomethodsusedarecontrolsignalsandX-on/X-offchar-acters.

For thecontrolsignalmethod,extrawiresareprovided in thecableforhandshake signals that enable or inhibit dataflow. Themore commoncontrolsignalpairsare:

Request-to-send/Clear-to-send Data-terminal-ready/Data-set-ready

Allsignalsmustbehightoenabledatatransmission.Droppinganylinenormallymeansthereceivingdevice'sbufferisfulloritisbusywiththelastmessage.

AnothermethodofcontrollingthedataflowistoimbedX-on/X-offchar-acters in thedatamessage. At turnon,bothdevicesare initially in theX-onstate. Whenonedevicebecomesfull, it sends theotheranX-offcharactertoinhibitfuturedatatransmission.X-onisthensenttorestartthedatatransmissionwhenthereisroominthereceivingdevice'sbufferforadditionaldata.

The2303'sSerialInterfacenormallyusesasynchronous8bitdatacharacterswithnoparityandsinglestartandstopbits.The2303willalsoworkwith7bitdatacharacters.Theunuseddatabitsareoutputtedonthe488Busasfixedzeros.Theusercanalsoaddaparitybitandthesecondstopbitifrequiredforhissystem.

A2.2 RS-232 Standard

In1963,theElectronicIndustryAssociation(EIA)establishedastandardtogoverntheinterfacebetweendataterminalequipmentanddatacommuni-cationequipmentemployingserialbinaryinterchange.Thelatestrevision

Page 118: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

A-19

A2

ofthisstandard(RS-232)hasbeenineffectsince1969andisknownasRS-232C.Itspecifies:

- Mechanicalcharacteristicsoftheinterface

- Electricalcharacteristicsoftheinterface

- Anumberofinterchangecircuitswithdescriptionsof theirfunctions

- Therelationshipofinterchangecircuitstostandardinter- facetypes

ThespecificationdoesnotmeanthattwodevicesthatareRS-232compatiblecanbeconnectedtogetherwithastandardcableandbeexpectedtowork.

Mechanically,RS-232interfacesusea25pinmaleconnector(DS-25P)withthedataterminalsanda25pinfemaleconnector(DS-25S)withthedatacommunicationsunits(modems).

Electrically,RS-232signalsarebipolarandarereferencedtoacommonground(AB)onpin7.Transmittedsignalsmustbebetween+5and+15Vor-5and-15Vinto3000to7000ohmloads.Maximumopencircuittransmit-teroutputsis±25V.Logiclevelsare:

+5to+15V -5to-15V

Data 0 1

Control 1(On) 0(Off)

Functionally,thespecificationestablishedtwotypesofdevices,DCEandDTE,thatwouldmatetogetherbyapin-to-pincable.TheDataCommu-nicationEquipment(DCE)wasdesignatedas thedevice thatconnectedtothecommunicationline.AnexampleofaDCEisamodem.TheDataTerminalEquipment(DTE)wasdesignatedasthedevicethatconnectedtotheDCE.ExamplesofaDTEareaPCcomputeroraterminal.DTEdevicescanbematedtoDTEdevicesbyaspecial'null-modem'cablethatcrossesthetransmitsignalsofonedevicewiththereceivesignalsontheotherdevice.

Page 119: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

A-20

A2

InEurope,theComiteConstultatifInternationalTelephoniqueitTelegraphiqe(CCITT)hasestablishedstandardsthatcorrespondtoRS-232C.Whilethesestandards,CCITTV.24andCCITTV.28,areverysimilartoRS-232C,theyarenotidentical.TheModel4984conformstobothRS-232andCCITTV.24standards,butdoesnotcontainoruseallofthecircuitsallowedforinbothstandards.

A2.3 RS-422 and RS-485 Standards

In1978,theEIAadoptedtheRS-422standardtoovercomethenoiseanddistanceproblemsassociatedwiththesingle-endedRS-232signals.TheRS-422standardspecifiedadifferentialsignalthatusedtwolinespersignal.

TheRS-422differentialsignalshavetheadvantageofhigherspeed(upto2Mbs)andlongerdistancecapability(upto1200M)overthesingle-endedRS-232signals.TheRS-422differentialsignalsrequireadifferentialreceiverandarenotreferencedtoSignalGround.Differentialtransmittedsignalsappliedtotheinterconnectingcableare+2to+6Vor-2to-6V.Receiversarespecifiedtohavea±0.2Vsensitivity,4Kohmminimuminputimpedanceandbecapableofwithstandingamaximuminputof+10V.Cabletermina-torsandtransmitterwaveshapingmayberequiredtominimizecrosstalk.Logiclevelsare:

+2to+6V -2to-6V

DataA/B 0 1

ControlA/B 1(On) 0(Off)

ThedifferentialtransmitteroutputterminalthatispositivewithrespecttotheotherterminalfortheControlOnSignalisdesignatedtheAterminal.ThenegativeterminalisdesignatedtheBterminal.AllvoltagemeasurementsaremadebyconnectingavoltmeterbetweentheAandBterminals.

RS-485signalsaresimilartoRS-422signalsexcepttheirtransmittersarecapableofdrivingupto32receiversandtheirprotocoladdressesindividualdevices.

Page 120: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

A-21

A2

A2.4 RS-530 Pinouts

In1987,theEIAreleasedanewstandard,EIA-530,forhighspeedsignalson a 25 pin connector. This new standard combined the olderRS-232single-endedsignalsandthenewerRS-422/RS-485differentialsignalsononeconnector.TheadvantageoftheRS-530specificationisthatitestab-lishedapinoutstandardforRS-422/RS-485signalsona25pinconnectorandatthesametimeprovidedforthepresenceofbothsignalsonthesameconnector.

The2303serialinterfaceconformstotheEIA-530Standardandusesinternaljumperstoselecttheactivesignallevelsonitsserialinterface.The2303isdesignedsothatitmayreceiveeithersingleendedRS-232ordifferentialRS-422/RS-485signals.

A2.5 Serial Interface Problems

Most of the problems that arisewhen connecting serial devices can beavoided if theuserwill compare the signalsonbothdevices' interfacesbeforepluggingthemtogether.Theobviousthingstolookforare:

1. Verifytransmitandreceivedatadirectionandpinnumbers.DTEdevicesmatedirectlywithDCEdeviceswhileDTEandDTEconnectionsneedtobecrossed.

2. Checkneededcontrollines.Somedevicesneedsignalin-puts,otherscanfunctionwithopeninputs.Allinputsneedavalidsignallevel.Ifindoubtaddjumperstoaknown'on'signalsuchasthedevices'sDTRorDSRoutputsignal.

3. Samebaudrates. Differentbaud rates result ingarbleddata.

i.e., *!1-

4. Samecharacterformats.Itmaybeobviousbutoftenthecharacterformatsandparitysettingsareincorrect.Atypicalparitysettingsymptomishalfgood-halfbadcharacters.

i.e., '1', '2', '4' 3 and 5 missing '3','5' 1, 2 and 4 missing

Page 121: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

A-22

A3

A3 GPIB CONNECTOR/SWITCH BOARD ASSEMBLIES

A3.1 Board Descriptions

TheGPIBConnector/SwitchBoardAssembliesaresmallprintedcircuitboardsthatprovideaconvenientwaytomountanIEEE-488ConnectorandanAddressSwitchontherearofthehostunit.Theyconnecttothe4803withaflatribboncablethatplugsintotheGPIB/Addressheader(J2).

TheGPIBConnector/SwitchBoardAssembliesareavailableintwolayoutstyles.TheHorizontalConnector/SwitchBoardAssemblyhastheAddressSwitchinlinewiththeIEEE-488connectorasshowninFigureA-9(a).TheVerticalConnector/SwitchBoardAssemblyhastheAddressSwitchlocatedontopoftheIEEE488connectorasshowninFigureA-9(b).

TheAddressSwitch is an eightposition rocker switch. For ICSboardproducts,thefiveleftmostswitchessettheGPIBaddress.ThebitweightsareshowninFigureA-10.Upisalogical1,downisalogical0.Rocker6setsaddress0.Rockers7and8arenormallynotused.

Theassembliesmaybeorderedwithanylengthflatribboncable,from10to90cmlong.Thedashnumberspecifiesthecablelength.Orderas:

Type Part Number

HorizontalConn./SwAssy 113640-90 with90cmlongcable

VerticalConn./SwAssy 113642-90 with90cmlongcable

A3.2 Board Installation

BoththeHorizontalandtheVerticalConnector/SwitchBoardAssembliesaredesignedtobemountedtotherearpanelofthehostequipment'srearpanelbytheincludedmetricstuds.Thefollowingarethesuggestedinstal-lationsteps:

1.SelecttheappropriatecutoutfromFigureA-12

Page 122: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

A-23

A3Figure A-9 GPIB Connector/Switch Board Assemblies

(a)Horizontal/ConnectorAssembly

(b)VerticalConnector/SwitchAssembly

2.LocateablankareaonthehostchassisrearpanelasshowninFigureA-11.Leaveenoughroominsidefortheflatribboncablebendradius.

3.MachinethecutoutsshowninFigureA-12.Iftherearpanelisthickerthan0.050inches,milla2.3inx0.8inreliefontheinsideofthepanelfortheAmphenol57-20240connector.

1.35

3.50 0.820.50

L

�������������������

3.00

0.50 0.82

1.65

L

��������������������

Page 123: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

A-24

A3

4.InstalltheConnector/SwitchAssemblyfromtheinside.UsethemetricstudsandtwothinlockwasherstoholdtheassemblytothepanelasshowninFigureA-9.

5.RoutetheflatribboncabletotheboardsoitavoidsanyhighRFIorelectricalnoisearea.PlugthecableintoJ2.

6. Markorsilkscreentheswitchfunctionsontotherearpanelas showninFigureA-10.Identifythe5addressrockersasshownandswitch6foryourapplication.

BUS ADDRESS

1 8 4 2 1 0 - -6

0.060 typ.

Space letterson rockers,0.1 centers typ.

Figure A-10 Switch Silkscreen Detail

Figure A-11 IEEE-488.1 Figure 21

Page 124: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

A-25

A3

Figure A-12 GPIB Connector/Switch Panel Cutouts

(a)HorizontalConnector/SwitchAssemblyMountingDimensions

(b)VerticalConnector/SwitchAssemblyMountingDimensions

1.5781.842

0.350

0.700

1.775

0.420

0.635

Notes: 1. All dimensions are in inches2. D cutout radius is 0.2 inches3. Holes are 0.180 dia., 2 plcs4. Allow 0.25 inches for cable bend radius

0.920

0.420

1.578

1.842

1.200

0.635

Notes: 1. All dimensions are in inches2. D cutout radius is 0.2 inches3. Holes are 0.180 dia., 2 plcs4. Allow 0.25 inches for cable bend

1.750

0.920 0.350

Notes:Iftherearpanelisthickerthan0.050inches,millareliefonthereversesidefortheAmphenol57-20240connector.Suggestedreliefis2.3x0.8inches,centeredontheconnectorcutout.Maximumdepthis0.090inches.

Page 125: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

A-26

A3

Thispageintentionallyleftblank

Page 126: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

I

Index-1

IndexSymbols32-BitReading3-26Varables3-25, 3-26Writing3-25

4809ABlockDiagramDescription4-1Description 1-1Differences3-3ExternalAddressSwitch3-4Installation2-3ModelNumber1-3SerialConnections2-17Specifications1-11WatlowF4Connections2-20

4819AAccessories1-16BlockDiagramDescription 4-4, 4-6Connectors1-13Description 1-1, 1-2Differences3-3Installation2-4JumperSettings2-24ModelNumbers1-3OperationDifferences3-4PanelCutouts2-4PhysicalSpecifications1-13SerialConnections2-16Watlow96Connections2-21

4829ABlockDiagram4-6BlockDiagramDescription4-6Description 1-2EZZoneconnections2-23InstallationGuide2-4Jumpersettings2-25, 2-26ModelNumbers1-3Operationaldifferences3-3OutlineDimensions1-12PanelCutouts2-4SerialConnections2-18Specifications1-13

488.2CommonCommandsTableof3-11StatusReportingStructure3-5

4899AAccessories1-16BlockDiagram4-2BlockDiagramDescription4-1CECertificate1-15Description 1-1Installation2-2ModelNumber1-3Operation3-1OutlineDimensions1-10RS-485NetworkConnections2-23SerialConnections2-17Specifications1-9WatlowF4Connections2-20

Page 127: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

I

Index-2

AAccessories1-16Accessories,included1-16Addressing3-4InternalAddressSetting2-9

AsynchronousdatacharacterA-16

BBlockdiagram4-2

Description 4-1

CCEMark1-14

Certifications/Approvals1-14CommandsModbus3-20SCPIA-12SCPI,exampleA-13

Commandandaddressmessages,IEEE488A-6

ConfigurationChoices2-6Commands1-7

ConfigurationProgramRunning2-8

ConfiguringGeneralInstructions2-11WithICS'sConfigurationProgram

2-8Conformanceinformation488.23-11

ConnectionsGPIB2-13Serial2-16

Connector/SwitchBoardAssemblyA-23

CablelengthA-22CutoutsA-25

Connectors48091-1148191-1348991-9

Copyrightrelease3-30

DDigitalInputsMonitoringchanges3-8

Dimensions48991-10

EEMI/RFIWarningiiEnableRegistersSavingValues3-10

ESRErrorBitDefinitions3-7EventRegisters3-5, 3-7

FFactoryConfiguration2-6CommandSettings1-7

FloatingPointModbuscommands3-21Readexample3-26Variables3-26Writeexample3-26

FunctionsProgrammable1-7

GGeneratingSRQs3-28GPIBAddress2-9GPIBAddressSwitchConnector2-14GPIBConnections2-13GPIBConnector/SwitchBoardAs-

semblyDescription A-22HorizontalA-22VerticalA-22

Page 128: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

I

Index-3

IIDNMessageUsers3-28

IEEE488.2Differencesfrom488.13-11

IEEE488.2CommonCommands*CLS3-11*ESE3-11*ESE?3-11*ESR?3-11*IDN?3-12*OPC3-12*OPC?3-12*PSC3-12*PSC?3-12*RCL3-12*RST3-13*SAV3-13*SRE3-13*SRE?3-13*STB3-13*TRG3-13*TST?3-13*WAI3-13Tableof3-11

IEEE488.2InterfaceBuffers1-4

IEEE488.2STANDARDA-9CommonCommandsA-9Differencesfrom488.1A-11MessageFormatsA-9ReportingStructureA-9

IEEE488Commandandaddressmessages

A-6Messageformats(IEEE488.2)A-11

IEEE488BusDescriptionA-2IEEE488.1A-2–A-3

IEEE488Interface488.1Capabilities1-4488.2Commoncommands1-4488.2Conformanceinformation

3-11

488.2requiredstatusreportingcapabilitiesA-7, A-8488.2statusreportingstructure3-5Addressranges1-4BusFigureA-3SCPIcommandsA-12SCPIcommandstructureandex-

amplesA-12SCPIerrorreportingA-14SCPIparser1-4

Indicators,frontpanel1-8Installation2-148092-3Configuration2-6Choices2-6Factory2-6

GPIBaddress2-9RackMountKit2-29Set-up2-8Shipmentverification2-1

InstallationGuides2-2

LLockingSetup3-27LockingSetupParameters3-27Longdistancetransmissionusing4894'sA-17

MMaintenance5-1ModbusErrorRegister3-8GeneratingSRQs3-28Messagecodes1-5Querying3-24RS-232Connections2-20RS-485Connections2-21SettingAddress3-24SettingTimeouts3-27Variablespecifications1-5Writingtoadevice3-25

ModbusAddress3-24

Page 129: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

I

Index-4

ModbusCommandsC-Controlleraddress3-20D-ModbusTimeout3-22E?-ReadErrorRegister3-22L?-Loopback3-22R?-ReadRegisters3-20RC?-ReadCoilStatus3-20RE?-ReadExceptionStatus3-21RF?-ReadFloatingPointValue

3-21RI?-ReadDescreteInputs3-20RR?-ReadInputRegisters3-21WB-WriteBlock3-21WC-WriteCoil3-21WF-WriteFloatingPointValue

3-22W-WriteRegister3-21

Modbusdevicequerying3-24writingto3-25

ModelNumbers1-3

OOEMDocumentation3-30

OEMDocumentation3-30Operation3-1, 3-2, 5-1Theoryof4-1

OperationalRegisters3-9Outlinedimensions48191-12

OutputQueue3-10

PPhysical48091-1148191-1348991-9

Programmablefunctions1-7Programming32-bitvariables3-25, 3-26Examples3-23FloatingPointexamples3-26GeneratingSRQs3-28IDNMessage3-28LockingSetup3-27ModbusDeviceAddress3-24Modbustimeouts3-27QueryingaModbusDevice3-24SavingSetup3-29Savingthesetup3-29TempCtlrprogram3-23User’sIDNMessage3-29

QQuestionableEventRegister3-8QuestionableRegisters3-8

RRackMountKitInstructions2-29

RAM4-3Repair5-9RestoringFactoryDefaults5-8RS-232Specifications1-6StandardA-18

RS-485/RS-422Specifications1-6

RS-530pinoutsA-21

Page 130: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

I

Index-5

SSavingEnableRegisters3-10

SavingSetup3-29SCPIABORt3-19ChannellistA-14ExamplesA-14

CommandsExampleA-13

CommandsandqueriesA-12CommandReferenceTable3-17Commandstructureandexample

A-12Compoundcommandsexamples A-13, A-14ConformanceInformation3-14ErrorreportingA-14INITiate3-19STATus3-18SYSTem3-17VariablesA-14

SelftestErrors5-2

SerialCommunicationsBackgroundA-15

Serialconnections2-16SerialInterface1-5SerialInterfaceBaudrates1-5Datacharacterformats1-6ProblemsA-21

ShipmentVerification2-1Specifications1-3RS-2321-6RS-485/RS-4221-6

SRQsGeneratingfromModbusErrors

3-28StandardsRS-232A-18RS-422/RS485A-20

StatusByteRegister3-10StatusReportingStructure,488.23-5SupportCD-ROM2-7

TTheoryofOperation4-1Timeout3-27TrademarksiiTransmissionLongdistanceA-17

Troubleshooting5-2Guide5-5, 5-6, 5-7OperationalFailures5-2RestoringFactoryDefaults5-8Selftesterrors5-2

UUnpacking2-1UserIDNmessageExample3-29

WWarrantyiiWatlowEZZoneConnections2-23F4Connections2-20, 2-22Series96Connections2-21

Page 131: a division of Systems West Inc. MODEL 4809A, 4819A, … Modbus Interfaces Instruction Manual MODBUS. i MODEL 4809A, 4819A ... IEEE-488.2/GPIB to Serial Interfaces with special firmwareto

I

Index-6

Thispageleftintentionallyblank