UserManualPLC-5 VMEVMEbus ProgrammableControllers(1785-V30B, -V40B,-V40L, and -V80B)Allen-Bradley
PrefaceUsing this Manual ivWe refer to the: As the:Data Highway DH linkData Highway PlusDH+ linkProgrammable Logic Controller processorPLC-5 Proces
Chapter 6PLC-5/VME ProcessorCommunications Commands 6-31Use this command to change the configuration of some or all ports. Noparameters means to ch
Chapter 6PLC-5/VME Processor Communications Commands 6-32OperationProcessor MemoryPort-ConfigurationActive Port ConfigurationInformationThis command
Chapter 6PLC-5/VME ProcessorCommunications Commands 6-33Message FormataDST00PSN00SRC00PSN00CMD0FSTS00TNS FNC90HCommand PacketReply PacketbDST00PSN00
Chapter 6PLC-5/VME Processor Communications Commands 6-34The upload-and-download procedure is a PLC-5/VME processor physicalsave-and-restore procedu
Chapter 6PLC-5/VME ProcessorCommunications Commands 6-35d. Calculate the number of full physical reads that will be donefrom the processor during th
Chapter 6PLC-5/VME Processor Communications Commands 6-36Download ProcedureAn example of this procedure is included in Appendix A.1. Identify the PL
7Chapter 7-1Performance and OperationRead this chapter to learn about the performance and theory of operationsof the PLC-5/VME processor.The PLC-5/V
Performance and Theory of OperationsChapter 7 7-2For the check-VME-status-file command,If you want the VME: Set the NOCV bit to:to check the VME stat
Performance and Theory of OperationsChapter 7 7-3The PLC scan-time impact for either a read or write transfer with thedual-port memory can be calcula
Performance and Theory of OperationsChapter 7 7-4The benchmark tests that we ran show approximately how long it takes toperform a ladder-logic messag
PrefaceUsing this Manual vThe 1785 PLC-5 programmable controller documentation is organizedinto manuals according to the tasks that you perform. This
Performance and Theory of OperationsChapter 7 7-5Due to the different loading that can be placed on the communicationprocessor in the PLC/5 processor
Performance and Theory of OperationsChapter 7 7-6Setup #3 NOCV = 1 (VME coprocessor does not constantly read PLC processor) Copy to global VME RAM
Performance and Theory of OperationsChapter 7 7-7Setup #5 NOCV = 0 (VME coprocessor constantly read PLC processor) Copy to global VME RAM on-board
Performance and Theory of OperationsChapter 7 7-8Program ScanningThe program scan cycle is the time it takes the processor to execute thelogic scan o
Performance and Theory of OperationsChapter 7 7-9Effects of False versus True Logic on Scan TimeThe rung below—which changes states from one program
Performance and Theory of OperationsChapter 7 7-10If I:000/02 is: Rungs 2 and 3 are:On SkippedOff ExecutedIf you use subroutines, program scan times
Performance and Theory of OperationsChapter 7 7-11I/O ScanningThe remote I/O scan cycle is the time that it takes for the processor(configured as a s
Performance and Theory of OperationsChapter 7 7-12Figure 7.1Remote I/O Scan and Program Scan Timing LoopsabAdapterAdapter AdapterIOT (x)IIN (y)xyRack
Performance and Theory of OperationsChapter 7 7-13Extended-Local I/O Processors that have extended-local I/O capability scan the extended-localI/O ch
Performance and Theory of OperationsChapter 7 7-14Figure 7.3PLC-5/V40L Timing Loops for Discrete Data TransferAdapterAdapter AdapterHousekeepingRack
1Chapter 1-1OverviewRead this chapter to understand the overall operation of the PLC-5/VMEprocessor, how you can use it in VME systems, and how its
Performance and Theory of OperationsChapter 7 7-15Block-transfer duration is the time interval between the enabling of theblock-transfer instruction
Performance and Theory of OperationsChapter 7 7-16Formula 1—Worst-case time to complete all block-transfers inextended-local I/O system where block-t
Performance and Theory of OperationsChapter 7 7-17In this example,R = 1 because the value of D (6 ms) < 15 ms logic scan timeblock-transfer durati
AAppendix A-1Sample ApplicationsRead this appendix to understand how to write applications in a separateVMEbus CPU to interact with your PLC-5/VME p
Appendix ASample Applications A-2/***************************************************************************//****************************** INCLUDE
Appendix ASample Applications A-3/***************************************************************************//********************* PRIVATE FUNCTION
Appendix ASample Applications A-4 // Goodbye clrscr(); gotoxy(0, 0); return(0);}/********************************************************
Appendix ASample Applications A-5// Process the user’s selectionswitch(menuChoice){ case 1:// Initiate a continuous copy operation from a PLC data
Appendix ASample Applications A-6/***************************************************************************//******************************* SHOW_E
Appendix ASample Applications A-7/***************************************************************************//****************************** TEST_PC
Chapter 1Overview 1-2Figure 1.1Examples of PLC-5/VME ProcessorsBattery lowProc run/FaultForceCh 0 StatusSYSFAILMaster AccessSlave AccessBattery lowP
Appendix ASample Applications A-8/***************************************************************************//***************************** GET_KEY_
Appendix ASample Applications A-9 plcList[0] = mem.baseAddr; // Turn on the memory on the PLC at the requested VME location. plc540v_enable_
Appendix ASample Applications A-10 // Get the continuous copy information from the user. clrscr(); gotoxy(0, 10); cprintf( ”Enter the
Appendix ASample Applications A-11 // Stop the continuous copy opeation... plc540v_halt_cont_copy_to_VME( cc_to.vmeDataAddr, cc_to.wordCount,
Appendix ASample Applications A-12 // Initiate the continuous copy from VME to a PLC data file plc540v_init_cont_copy_from_VME( cc_from.vmeDat
Appendix ASample Applications A-13/***************************************************************************//***************************** DISPLAY
Appendix ASample Applications A-14EXE_dependencies = \ p40vihas.obj \ common.obj \ p40vcco.obj \ p40vspcc.obj \ vmedemo.obj \ {$(LIBPATH)}bmclib.lib
Appendix ASample Applications A-15# *Compiler Configuration File*vmedemo.cfg: vmedemo.mak copy &&|–ml–v–y–vi–w–ret–w–nci–w–inl–wpin–wamb–wam
Appendix ASample Applications A-16// PLC-5/40V is using ULA0 which is 0xFC00const unsigned short kplc540vUla = 0xFC00;// This is the number of bytes
Appendix ASample Applications A-17/***************************************************************************//******************************* MAINL
Chapter 1Overview 1-3In the PLC-5/V40B, both channels (1 and 2) are identical although they areindependently configurable. In the PLC-5/V40L, chann
Appendix ASample Applications A-18// Open the output file for saving PLC memory.if ((out = fopen(argv[1], ”w+b”)) == NULL){printf(”\n\nFailed to open
Appendix ASample Applications A-19printf(”\n\nFinal Address: 0x%08.8lx”, readAddr + finalPhysicalReadSize);}// Close the output filefclose(out
Appendix ASample Applications A-20 plc540v_pccc_return_edit_resource(kvmeSlaveAddress, kplc540vUla, kVME_D16_DATA_WIDTH, kVME_A24_ADDR_SPACE
Appendix ASample Applications A-21 else {if (replyPacket.plcStatus.keyswitchMode!=kPLC540V_REMOTE_PROGRAM_LOAD){ printf(”\nPLC is not in rem
Appendix ASample Applications A-22/***************************************************************************//************************** EXTRACT_ST
Appendix ASample Applications A-23/***************************************************************************//************************ CALC_FINAL_P
Appendix ASample Applications A-24printf(”\n\tSegment 1 Start Pointer: %x %x %x %x”,replyPointer->optionalData[1],replyPointer->optionalData[2]
Appendix ASample Applications A-25// Save this read address in the file packetfilePacket.plcAddress = readAddr;// Save this read length in the file p
Appendix ASample Applications A-26.AUTODEPEND# *Translator Definitions*CC = bcc +UPLOAD.CFGTASM = TASMTLIB = tlibTLINK = tlinkLIBPATH = C:\BORLANDC\L
Appendix ASample Applications A-27p40vihas.obj: upload.cfg p40vihas.cp40vrpc.obj: upload.cfg p40vrpc.cp40vrer.obj: upload.cfg p40vrer.cp40vger.obj: u
Chapter 1Overview 1-4Use the PLC-5/VME processor in a 6U (full-height) VMEbus chassis. Youcan use the PLC-5/VME processor by itself (i.e., with no
Appendix ASample Applications A-28#include ”busmgr.h” // Radisys’s VME driver definitions#include ”pccc.h” // Generic Allen
Appendix ASample Applications A-29/***************************************************************************** * * PURPOSE: This is the main fu
Appendix ASample Applications A-30// Make certain the processor is in remote program modeplc_in_remote_program_mode();// Make certain there are no fa
Appendix ASample Applications A-31 plc540v_pccc_get_edit_resource(kvmeSlaveAddress, kplc540vUla, kVME_D16_DATA_WIDTH, kVME_A24_ADDR_SPACE,
Appendix ASample Applications A-32/***************************************************************************//********************** PLC_IN_REMOTE_
Appendix ASample Applications A-33 if (status.plc540vStatus != 0) {printf(”\nChecking the PLC for faults failed.”);exit(1); } else {//
Appendix ASample Applications A-34 PLC540V_PCCC_DLC_RPY_TYPE replyPacket; PLC540V_STATUS_TYPE status; plc540v_pccc_download_complete(kvmeSla
Appendix ASample Applications A-35EXE_dependencies = \ p40vdla.obj \ p40vdlc.obj \ p40vwbp.obj \ p40vihas.obj \ p40vapc.obj \ p40vrer.obj \ p40vger.
Appendix ASample Applications A-36# *Compiler Configuration File*download.cfg: download.mak copy &&|-ml-v-y-vi-w-ret-w-nci-w-inl-wpin-wamb-w
BAppendix B-1Sample Application ProgrammingInterface ModulesRead this appendix to understand how to write an application programminginterface (API)
Chapter 1Overview 1-5The following diagrams show three basic configurations for programmingand debugging your ladder-logic programs.Connect a comput
Sample API ModulesAppendix B B-2For this header file: Refer to page: For this source file: Refer to page:COMMON.H B-3 COMMON.C B-5P40VCCO.H B-
Sample API ModulesAppendix B B-3#ifndef COMMON_H#define COMMON_H 1/////////////////////////////////////////////////////////////////////////////////
Sample API ModulesAppendix B B-4typedef struct{ /* Indicates which type of error status is being returned. There are three sources: EPC, P
Sample API ModulesAppendix B B-5/////////////////////////////////////////////////////////////////// Common set of functions that are useful throughou
Sample API ModulesAppendix B B-6/* Mask for the command control register’s error bit. */#define kCMDCTRL_ERR
Sample API ModulesAppendix B B-7 /* Loop until we timeout or the bits are set. */ for (i=0; ((i<kTIMEOUT_COUNT) && (status->plc54
Sample API ModulesAppendix B B-8 /* Let’s initialize the status variable to success. */ memset((char *) status, 0x0, sizeof(PLC540V_STATUS_TYP
Sample API ModulesAppendix B B-9/***************************************************************************** * * PURPOSE: This function will re
Sample API ModulesAppendix B B-10/***************************************************************************** * * PURPOSE: This function will
Sample API ModulesAppendix B B-11/***************************************************************************** * * PURPOSE: This function will d
Chapter 1Overview 1-6The PLC-5/VME is fully compliant with the C.1 VMEbus specification.The PLC-5/VME processor occupies two 6U VMEbus slots. It ca
Sample API ModulesAppendix B B-12/***************************************************************************** * * PURPOSE: This function will
Sample API ModulesAppendix B B-13/***************************************************************************** * * PURPOSE: This function will t
Sample API ModulesAppendix B B-14 /* The PLC-5/40V’s command/control register WRITE-READY bit indicates when it is ready to accept a new co
Sample API ModulesAppendix B B-15/***************************************************************************** * * PURPOSE: This function will e
Sample API ModulesAppendix B B-16/***************************************************************************** * * PURPOSE: This function will
Sample API ModulesAppendix B B-17#ifndef P40VCCO_H#define P40VCCO_H 1////////////////////////////////////////////////////////////////////////////////
Sample API ModulesAppendix B B-18void plc540v_halt_cont_copy_to_VME( ULONG vmeDataAddr, UWORD vmeDataSize,
Sample API ModulesAppendix B B-19/***************************************************************************//************************* PRIVATE TYPE
Sample API ModulesAppendix B B-20 * UWORD elementNumber contains the element number in the * PLC–5/40V data table file at
Sample API ModulesAppendix B B-21void plc540v_init_cont_copy_to_VME(ULONG vmeDataAddr, UWORD vmeDataSize, ULONG vmeCmdBlkAddr, UWORD baseAddres
Chapter 1Overview 1-7Figure 1.2 illustrates the basic forms of communications. Table 1.Asummarizes these communication forms.Figure 1.2Basic Forms
Sample API ModulesAppendix B B-22 * VME_INTERRUPT_LEVEL_TYPE cmdIntLevel contains the VME bus * interrupt to be generated
Sample API ModulesAppendix B B-23void plc540v_halt_cont_copy_to_VME(ULONG vmeDataAddr, UWORD vmeDataSize, ULONG vmeCmdBlkAddr, UWORD baseAddres
Sample API ModulesAppendix B B-24 * VME_INTERRUPT_LEVEL_TYPE cmdIntLevel contains the VME bus * interrupt to be generated
Sample API ModulesAppendix B B-25void plc540v_init_cont_copy_from_VME(ULONG vmeDataAddr, UWORD vmeDataSize, ULONG vmeCmdBlkAddr, UWORD baseAddr
Sample API ModulesAppendix B B-26 * VME_INTERRUPT_LEVEL_TYPE cmdIntLevel contains the VME bus * interrupt to be generated
Sample API ModulesAppendix B B-27void plc540v_halt_cont_copy_from_VME(ULONG vmeDataAddr, UWORD vmeDataSize, ULONG vmeCmdBlkAddr, UWORD baseAddr
Sample API ModulesAppendix B B-28 * UWORD fileNumber contains the PLC–5/40V data file number * which will be continuously
Sample API ModulesAppendix B B-29static void plc540v_cont_copy(PLC540V_CONT_COPY_COMMAND ccCmd, PLC540V_CONT_COPY_MODE ccMode, ULONG vmeDat
Sample API ModulesAppendix B B-30if (status–>plc540vStatus == kPLC540V_SUCCESS){ /* If sending the command block address didn’t fail, then the
Sample API ModulesAppendix B B-31/***** Structure of the Send PCCC Command Block. This is used to communicate** any PCCC command to the PLC.*/#pragm
Chapter 1Overview 1-8Table 1.ASummary of Figure 1.2In Figure 1.2,when you see :It means that:1Commands are high-level directives sent to the process
Sample API ModulesAppendix B B-32typedef struct{unsigned char lnhFirstByte; /* reply packet length high */unsigned char lnhSecondByte; /* rep
Sample API ModulesAppendix B B-33typedef struct{ UWORD commandWord; UWORD responseWord; UWORD cmdIntLevel; UWORD cmdStatusId;
Sample API ModulesAppendix B B-34/***************************************************************************//*************************** PRIVATE F
Sample API ModulesAppendix B B-35 * plc540v_init_handle_interrupts( * vmeCmdBlkAddr, *
Sample API ModulesAppendix B B-36 * UBYTE operationStatusId contains a unique value which will * be used by the interrupte
Sample API ModulesAppendix B B-37 * VME_INTERRUPT_LEVEL_TYPE cmdIntLevel contains the VME bus * interrupt to be generated b
Sample API ModulesAppendix B B-38 /* Let’s initialize the status variable to success. */ memset((char *) status, 0x0, sizeof(PLC540V_STATUS_TY
Sample API ModulesAppendix B B-39#ifndef P40VSPCC_H#define P40VSPCC_H 1//////////////////////////////////////////////////////////////////////////////
Sample API ModulesAppendix B B-40#include <stdio.h> #include <stdlib.h>#include <string.h>#include ”epc_obm.h”#include ”epc_err.h”
Sample API ModulesAppendix B B-41 * * VME_ADDRESS_MODIFIER_TYPE addrMod defines the address space * in which the VME data i
Because of the variety of uses for the products described in this publication, thoseresponsible for the application and use of this control equipment
Chapter 1Overview 1-9Ladder programs from a standard PLC-5 processor run in the PLC-5/VMEprocessor. The PLC-5/VME processor has the same program sc
Sample API ModulesAppendix B B-42 /* Let’s initialize the send PCCC command block to be empty. */ memset((char *) &pcccCmdBlk, 0x0, sizeof
Sample API ModulesAppendix B B-43/* Let’s retrieve the reply packet. */status->epcStatus=EpcFromVmeAm((BM_MBO|A24SD), BM_W8, vmeReplyPac
Sample API ModulesAppendix B B-44/* The PCCC Write Bytes Physical reply packet structure. */typedef struct{ UBYTE lnhHi; UBYTE lnhLo; UBYTE
Sample API ModulesAppendix B B-45 * VME_DATA_WIDTH_TYPE width contains the data width that * should be used for the copy op
Sample API ModulesAppendix B B-46 /* Let’s establish the command packet contents... Note that since we set this block with zeros originall
Sample API ModulesAppendix B B-47/* The PCCC Apply Port Configuration reply packet structure. */typedef struct{ UBYTE lnhHi; UBYTE lnhLo; UB
Sample API ModulesAppendix B B-48 * UWORD baseAddress contains the base address of the * PLC-5/40V. * * VME_D
Sample API ModulesAppendix B B-49 plc540v_send_pccc_command(vmeCmdBlkAddr,&cmdPacket, kPLC540V_PCCC_APC_CMD_SIZE,reply,kPLC540V_PCCC_APC_RPY_S
Sample API ModulesAppendix B B-50#include <stdio.h> #include <stdlib.h>#include <mem.h>#include ”epc_obm.h”#include ”epc_err.h”#in
Sample API ModulesAppendix B B-51 * void plc540v_pccc_upload_complete( * vmeCmdBlkAddr, *
Chapter 1Overview 1-10Table 1.BComparison of 6008-LTV and PLC-5/VME Processor AttributesAttributes 6008-LTV PLC-5/VME CommentsVME slots 3 2Bus arbit
Sample API ModulesAppendix B B-52#ifndef P40VDLA_H#define P40VDLA_H 1///////////////////////////////////////////////////////////////////////////////
Sample API ModulesAppendix B B-53#include <stdio.h> #include <stdlib.h>#include <mem.h>#include ”epc_obm.h”#include ”epc_err.h”#inc
Sample API ModulesAppendix B B-54 * EXAMPLE: * ULONG vmeCmdBlkAddr = 0xE0F100; * UWORD baseAddress
Sample API ModulesAppendix B B-55#ifndef P40VDLC_H#define P40VDLC_H 1////////////////////////////////////////////////////////////////////////////////
Sample API ModulesAppendix B B-56#include <stdio.h> #include <stdlib.h>#include <mem.h>#include ”epc_obm.h”#include ”epc_err.h”#in
Sample API ModulesAppendix B B-57 * EXAMPLE: * ULONG vmeCmdBlkAddr = 0xE0F100; * UWORD baseAddress
Sample API ModulesAppendix B B-58#ifndef P40VECHO_H#define P40VECHO_H 1/////////////////////////////////////////////////////////////////////////////
Sample API ModulesAppendix B B-59#include <stdio.h> #include <stdlib.h>#include <mem.h>#include ”epc_obm.h”#include ”epc_err.h”#inc
Sample API ModulesAppendix B B-60 * PLC540V_STATUS_TYPE status; * void plc540v_pccc_echo( *
Sample API ModulesAppendix B B-61#ifndef P40VGER_H#define P40VGER_H 1////////////////////////////////////////////////////////////////////////////////
Chapter 1Overview 1-11 The PLV-5/VME processor status files in the processor status area aredifferent in several ways. When floating point values
Sample API ModulesAppendix B B-62#include <stdio.h> #include <stdlib.h>#include <mem.h>#include ”epc_obm.h”#include ”epc_err.h”#in
Sample API ModulesAppendix B B-63 * EXAMPLE: * ULONG vmeCmdBlkAddr = 0xE0F100; * UWORD baseAddress
Sample API ModulesAppendix B B-64#ifndef P40VIHAS_H#define P40VIHAS_H 1/////////////////////////////////////////////////////////////////////////////
Sample API ModulesAppendix B B-65 UBYTE expansionType; /* Byte 3, Processor Expansion Type */ #define kPLC540V_PROCESSOR
Sample API ModulesAppendix B B-66 UBYTE reserved5:2; UBYTE forcesSFC2Enabled:1;#define kPLC540V_SFC2_FORCES_DISABLED 0x0#define kPLC540V_SFC
Sample API ModulesAppendix B B-67void plc540v_pccc_id_host_and_status( ULONG vmeCmdBlkAddr, UWORD baseA
Sample API ModulesAppendix B B-68 * * RETURNS: Nothing. * * EXAMPLE: * ULONG vmeCmdBlkAddr = 0xE0F100; *
Sample API ModulesAppendix B B-69#ifndef P40VRBP_H#define P40VRBP_H 1////////////////////////////////////////////////////////////////////////////////
Sample API ModulesAppendix B B-70#include <stdio.h>#include <stdlib.h>#include <mem.h>#include ”epc_obm.h”#include ”epc_err.h”#inc
Sample API ModulesAppendix B B-71 * EXAMPLE: * ULONG vmeCmdBlkAddr = 0xE0F100; * UWORD baseAddress
2Chapter 2-1InstallationRead this chapter to learn how to set the switches in your PLC-5/VMEprocessor and install it into a VMEbus chassis.See the
Sample API ModulesAppendix B B-72#ifndef P40VRER_H#define P40VRER_H 1///////////////////////////////////////////////////////////////////////////////
Sample API ModulesAppendix B B-73#include <stdio.h> #include <stdlib.h>#include <mem.h>#include ”epc_obm.h”#include ”epc_err.h”#inc
Sample API ModulesAppendix B B-74 * EXAMPLE: * ULONG vmeCmdBlkAddr = 0xE0F100; * UWORD baseAddress
Sample API ModulesAppendix B B-75#ifndef P40VRMW_H#define P40VRMW_H 1////////////////////////////////////////////////////////////////////////////////
Sample API ModulesAppendix B B-76void plc540v_add_addrmasks(UBYTE arrayIndex, UWORD fileNumber, UWORD elementNumber, UWORD andMask, UWORD or
Sample API ModulesAppendix B B-77/***************************************************************************** * * PURPOSE: This function adds a
Sample API ModulesAppendix B B-78 * { * plc540v_add_addrmasks(addrCount, * fil
Sample API ModulesAppendix B B-79 * PLC540V_RMW_ADDRMASKS_TYPE addrMasks contains system * addresses and their correspondi
Sample API ModulesAppendix B B-80 /* Let’s initialize these packet to nothing. */ memset((char *) &cmdPacket, 0x0, kPLC540V_PCCC_RMW_CMD_S
Sample API ModulesAppendix B B-81/* The PCCC Restore Port Configuration reply packet structure. */typedef struct{ UBYTE lnhHi; UBYTE lnhLo;
Chapter 2Installation 2-2The processor is shipped in a static-shielded container to guard againstelectrostatic damage. Electrostatic discharge can
Sample API ModulesAppendix B B-82 * PLC540V_PCCC_RPC_RPY_TYPE reply contains PCCC’s Restore Port * Configuration command s
Sample API ModulesAppendix B B-83#ifndef P40VSCM_H#define P40VSCM_H 1#include ”p40vspcc.h”#pragma pack(1)/*******************************************
Sample API ModulesAppendix B B-84#include <stdio.h>#include <stdlib.h>#include <mem.h>#include ”epc_obm.h”#include ”epc_err.h”#inc
Sample API ModulesAppendix B B-85 * PLC540V_PCCC_SCM_RPY_TYPE reply; * PLC540V_STATUS_TYPE status; * void plc5
Sample API ModulesAppendix B B-86#ifndef P40VULA_H#define P40VULA_H 1///////////////////////////////////////////////////////////////////////////////
Sample API ModulesAppendix B B-87#include <stdio.h>#include <stdlib.h>#include <mem.h>#include ”epc_obm.h”#include ”epc_err.h”#incl
Sample API ModulesAppendix B B-88 * EXAMPLE: * ULONG vmeCmdBlkAddr = 0xE0F100; * UWORD baseAddress
CAppendix C-1SpecificationsCharacteristic ValueTemperature Operating0-65° C at point of entry of forced air with 200 LFM of air flowacross the circu
SpecificationsAppendix C C-2Characteristic(Revision C.1)ValueMaster address A16, A24Master transfer D08(EO), D16Slave address A16, A24Slave transfer
Appendix C C-3PLC-5/VMEt Processor SpecificationsPLC-5/V30t(1785-V30B)10.PLC-5/V40t(1785-V40B)PLC-5/V40Lt(1785-V40L)PLC-5/V80t(1785-V80B)Maximum User
Chapter 2Installation 2-3Table 2.ASW1 Set of SwitchesSwitches 1-6 Switch 7 Switch 8DH+ station number for channels1A and 0 (see Table 2.B)Unused (of
DAppendix D-1TroubleshootingRead this appendix when you troubleshoot the PLC-5/VME processor. Forthe PLC-5/VME processor to maintain integrity of t
Appendix DTroubleshooting D-2For unrecognizable messages, ER is set along with an error code. Theerror codes are:Code Explanation0000H Success0001H
Appendix DTroubleshooting D-3These are errors reported in the response word of the command blockwhen the command cannot be carried out successfully.
Appendix DTroubleshooting D-4The codes returned in the EXT STS (extended status) field when theremote error (STS) is F0H are listed below:Code (hex)
Appendix DTroubleshooting D-5If you encounter a hardware error or watchdog major fault, it may bebecause multiple watchdog faults occured while the p
Appendix DTroubleshooting D-6ATTENTION: Processor memory could become altered withoutindication if you lose power while performing any of thefollowin
EAppendix E-1Cable ConnectionsTable E.A lists the cables that you use if you have an Allen-Bradleycommunication board in your programming terminal.T
Cable ConnectionsAppendix E E-2The channel 0 connector on the front panel is an RS-232C serial port. It isa 25-pin D-shell connector whose pins are
Cable ConnectionsAppendix E E-3PLC-5/11, -5/20, -5/30, -5/40, -5/60, -5/40L, -5/60L, -5/80, and-5/VMEPLC-5/10, -5/12, 5/15, -5/25PLC-51770-KF2ModemMo
Cable ConnectionsAppendix E E-4PLC-5PLC-51770-KF2ModemModem1785-KE1770-CD1784-CP5Phone Linecable #61784-CXKcable #6TerminalTerminalSeries BTerminal17
Chapter 2Installation 2-4Table 2.DAddress Range SW2 (Switches 1-3)ULA 11 2 3 A16 Address Range0 on on on FC00-FC3F (hex)1 off on on FC40-FC7F2 on of
Cable ConnectionsAppendix E E-5PLC-51770-KF2ModemModem1784-CP5Phone Linecable #6cable #5Terminal1770-KF2cable #3TerminalModemModemPhone Linecable #6c
Cable ConnectionsAppendix E E-6The following diagrams show the pin assignments for the cables that youneed for serial-port communications.Cable #125-
Cable ConnectionsAppendix E E-7The specifications for each Allen-Bradley cable used for communicationsare shown on the following pages. See Table E.B
Cable ConnectionsAppendix E E-8Figure E.1Interconnect Cable—1784-CAK6160-T53, -T60, -T70, 6121, IBM PC/AT to 1785-KE1273134568111462537815 –pin D–she
Cable ConnectionsAppendix E E-9Figure E.2Interconnect Cable—1784-CXK1784-T45, IBM XT to 1785-KE91518113142515 –pin D –shellConnectorPin Male1785–KE25
Cable ConnectionsAppendix E E-10Figure E.3Interconnect Cable—1784-CYK6120, 6122 to 1785-KE91518156915 –pin D –shellConnectorPin Male1785–KE9 –pin D –
Cable ConnectionsAppendix E E-11Figure E.4Interconnect Cable—1784-CP5Processor to Terminal (using a 1784-KTK1)1234567891264568915 –pin D–shellConnect
Cable ConnectionsAppendix E E-12Figure E.5Interconnect Cable—1784-CPProcessor to Terminal (using a 1784-KT or 1784-KL)4321162156922PLC–5 EndIndustria
Cable ConnectionsAppendix E E-13Figure E.6Interconnect Cable—1784-CP6PLC-5/30, -5/40, -5/60, or -5/80 Processor to Terminal (using 1784-KT,1784-KL, 1
Cable ConnectionsAppendix E E-14Figure E.71784-CP7 Adapter —Interconnect Cable Adapter to 1784-CP ConnectsPLC-5/30, -5/40, -5/60, -5/80 or -5/VME Pro
Chapter 2Installation 2-5You insert the PLC-5/VME processor in two adjacent slots in a 6U(full-height) VMEbus chassis.ATTENTION: Make sure that yo
Symbols**Empty**, 2-1Numbers1770–CD, 2-81770–KF2, E-11771-AF, 2-91771-AS, 2-91771-CXT, 2-111771-DCM, 2-91771-KT2, E-11
IndexI–2device-type register, 3-5eight configuration register structure, 3-4ID register, 3-5offset register, 3-6status/control register,
IndexI–3Modem, E-1See also Programming TerminalPP40CCC0.C, sample, B-18P40CCC0.H, sample, B-17P40VAPC.C, sample, B-47P40VAPC.H, sampl
IndexI–4Programming terminalcable connections, E-7direct connection, 2-12modem, E-1serial connection, 2-14Programs, example, A-1R
IndexI–5TTerminating linkextended-local I/O, 2-11remote I/O, 2-9Termination resistors, 2-9extended-local I/O, 2-11using 150-Ohm resis
7With major offices worldwide.Algeria • Argentina • Australia • Austria • Bahrain • Belgium • Brazil • Bulgaria • Canada • Chile • China, PRC • Colomb
Chapter 2Installation 2-6The specific procedure for grounding a VME chassis varies depending onthe style of the chassis. Read the instructions foun
Chapter 2Installation 2-7A remote I/O link using this communication rate: Cannot exceed this cable length:57.6 kbps 3,048 m (10,000 ft)115.2 kbps 1,
Summary of Changes i. . . . . . . . . . . . . . . . . . . . . . . . . . . . Using this Manual iii. . . . . . . . . . . . . . . . . . . . . . . . .
Chapter 2Installation 2-8Figure 2.2Remote I/O Terminal ConnectorsTo connect remote I/O cable, do the following:1. Run the cable (1770-CD) from the p
Chapter 2Installation 2-9If your remote I/O link: The maximum number ofracks you can scan onthe linkThe maximum number ofphysical devices youcan con
Chapter 2Installation 2-10Use the extended-local I/O cables. These cables have a single-endconnector on one end and a dual-end connector on the oth
Chapter 2Installation 2-11To make extended-local I/O connections, do the following: 4.1. Connect the single-end connector to channel 2 of the proces
Chapter 2Installation 2-12Once you connect the programming device through a local DH+ link toone processor, the device can communicate with any PLC-
Chapter 2Installation 2-1382W resistorClearShieldBlueUse the 3-pin connector on the processor to connect a DH+ link.The connector’s port must be con
Chapter 2Installation 2-14You can connect COM1 or COM2 from the programming terminal directlyto channel 0 on the PLC-5/VME processor. This serial
Chapter 2Installation 2-15If the processor is not powered, the processor battery retains processormemory. The appropriate battery for your processo
Chapter 2Installation 2-16Disposing of the BatteryRefer to the Allen-Bradley Guidelines for Lithium Battery Handling andDisposal, publication AG-5.4
3Chapter 3-1VMEbus InterfaceRead this chapter to understand the basic low-level interface to thePLC-5/VME processor. The orientation of this chapt
Table of ContentsiiLadder-Program Interfaces 4-1. . . . . . . . . . . . . . . . . . . . . . . . Chapter Objectives 4-1. . . . . . . . . . . . .
Chapter 3VMEbus Interface 3-2Two software-selectable bus-release modes are provided:When set to: The PLC-5/VME processor:ROR releases control of the
Chapter 3VMEbus Interface 3-3Table 3.A shows the usage of the VMEbus signals on the P1 connector.Table 3.AVMEbus Signals on the P1 ConnectorRow A Ro
Chapter 3VMEbus Interface 3-4The configuration registers are a standard way of identifying, configuring,controlling, and monitoring the PLC-5/VME pr
Chapter 3VMEbus Interface 3-5Unless otherwise noted, register bits: are initialized to 0 at reset. directly control the associated hardware functi
Chapter 3VMEbus Interface 3-6Offset Register11111111SLAVE BASE15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 007offsetThe SLAVE-BASE field in the offset regist
Chapter 3VMEbus Interface 3-7WRDY is used by another VMEbus master to determine whether or not thePLC-5/VME processor is ready to receive a command.
Chapter 3VMEbus Interface 3-8If you designate: The PLC-5/VME processor accesses the command block as an:A24 A24 access with the 3D (standard supervi
Chapter 3VMEbus Interface 3-9The structure of the command block is shown below:15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0WordCommand wordResponse wordCmd
4Chapter 4-1Ladder-Program InterfacesRead this chapter to help you understand how to interact with the VMEbusenvironment from your ladder program.T
Chapter 4Ladder-Program Interfaces 4-2Table 4.AFour Ladder MessagesMessage ASCII Syntax PageCopy to VMECTV # X f : e vmeaddr width numelts 4-3Copy
Table of ContentsiiiPerformance and Operation 7-1. . . . . . . . . . . . . . . . . . . . . . . . Chapter Objectives 7-1. . . . . . . . . . . . .
Chapter 4Ladder-Program Interfaces 4-3widthis the width of VME transfers.Width DenotesD16 16-bit transfersD08 8-bit transfers (even/odd)D08O 8-bit t
Chapter 4Ladder-Program Interfaces 4-4Example 2: CTV #N7:0 FF01 D08O 5Example 2 reads the lower byte of elements 0 through 4 of file 7 and writesthe
Chapter 4Ladder-Program Interfaces 4-5Send VME InterruptThis message tells the PLC-5/VME processor to assert a VMEbusinterrupt. When the interrupt
Chapter 4Ladder-Program Interfaces 4-6The PLC-5/VME processor manipulates only two of the status bits in thecontrol word of the internal message con
Chapter 4Ladder-Program Interfaces 4-7The VME status file is a data file in the processor’s memory. It is used tostore VME setup and status informa
Chapter 4Ladder-Program Interfaces 4-8The following is the physical structure of the VME status file:15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0WordULASLE
Chapter 4Ladder-Program Interfaces 4-9Table 4.BFields for the Physical Structure of the VME Status FileWord Code Function Explanation01VSYSF Describ
Chapter 4Ladder-Program Interfaces 4-10The PLC-5/VME can automatically read and write every ladder scan to the the VMEbus without ladder-logic progr
Chapter 4Ladder-Program Interfaces 4-11Error CodesThese are errors reported during the repeated continuous-copy operationsinitiated by the continuou
Chapter 4Ladder-Program Interfaces 4-12The following is the physical structure of the VME operationconfiguration file:15 14 13 12 11 10 9 8 7 6 5 4
Table of ContentsivP40VRBP.H B-69. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P40VRBP.C B-70. . . . . . . . . .
Chapter 4Ladder-Program Interfaces 4-13Table 4.CFields for the Physical Structure of the VME Status FileWord Code Function Explanation62FEN From-VME
Chapter 4Ladder-Program Interfaces 4-14Word ExplanationFunctionCode153TDS To-VME data size If 0, the continuous-copy-to-VME operation does D16 VMEbu
5Chapter 5-1CommandsRead this chapter to understand the command interface to the PLC-5/VMEprocessor. The orientation of this chapter is based on a
Chapter 5Commands 5-2The command: Has thevalue of:Configures the PLC-5/VME processor tocopy a block of data:Continuous copy to VME 0001 from its dat
Chapter 5Commands 5-3Word Command Description0 Command word Has value 0001H (to VME) or 0002H (from VME).1 Response word As defined previously for a
Chapter 5Commands 5-4Copy SynchronizationThe PLC-5/VME processor does not have the same programmablesynchronization control as does the 6008-LTV pro
Chapter 5Commands 5-5Table 5.AError CodesCode Explanation01H VMEbus transfer error (VMEbus bus error)07H Bad data address09H Past end of data fileFD
Chapter 5Commands 5-6Word Command Description0 Command word Has value 0003H1 Response word As defined previously for all commands in common, see pag
Chapter 5Commands 5-7This command, whose command word has the value FFFF, sends anAllen-Bradley Programmable Controller Communications Command. Int
Chapter 5Commands 5-8These are the command-protocol codes placed in the error-code field of thecommand-control register when the ERR bit is 1.Code E
Table of ContentsvFigures/TablesCompliance to European Union Directives 2-1. . . . . . . . . . . . . . . . . . Figure 2.3Terminating a Remote I/O L
6Chapter 6-1PLC-5/VME Processor CommunicationsCommandsRead this chapter to understand the function of the extended PCCCs in thePLC-5/VME processor.
Chapter 6PLC-5/VME Processor Communications Commands 6-2A PCCC reply packet has the following format:76543210Byte01234567890 1 0 0 COMMANDTNS – firs
Chapter 6PLC-5/VME ProcessorCommunications Commands 6-3All PCCCs supported by the PLC-5 processor are supported by thePLC-5/VME processor. Since on
Chapter 6PLC-5/VME Processor Communications Commands 6-4Table 6.A describes the bytes that compose the headers of command andreply packets. We do n
Chapter 6PLC-5/VME ProcessorCommunications Commands 6-5Use this command to debug or test PCCC transmission capability. Thecommand packet can contai
Chapter 6PLC-5/VME Processor Communications Commands 6-6Use this command to: diagnostic command when debugging your host CPU’s driver program conf
Chapter 6PLC-5/VME ProcessorCommunications Commands 6-7Byte Description12,13 Number of data files used (highest assigned file number + 1) (low byt
Chapter 6PLC-5/VME Processor Communications Commands 6-8Refer to page D-3 for additional information on PCCC status codes.Sample API ModuleFor a sa
Chapter 6PLC-5/VME ProcessorCommunications Commands 6-9See the “Header Bit/Byte Descriptions” section on page 6-4 fordescriptions of all bytes exce
Chapter 6PLC-5/VME Processor Communications Commands 6-10Sample API ModuleFor a sampleinterface header file:Refer to page: For a sampleimplementatio
Summary of ChangesviiSummary of ChangesThis release of the PLC-5/VME VMEbus Programmable Controllers UserManual contains new and updated information o
Chapter 6PLC-5/VME ProcessorCommunications Commands 6-11Important: The PLC-5/VME processor ADDR, OFFSET, and TOTALTRANS fields work together when t
Chapter 6PLC-5/VME Processor Communications Commands 6-12Data types are those resident in the PLC-5/VME processor. In thetyped-write and typed-read
Chapter 6PLC-5/VME ProcessorCommunications Commands 6-13Data-Type FieldThe data-type field specifies the ID (type of data) and size (number ofbytes
Chapter 6PLC-5/VME Processor Communications Commands 6-14Integer ExampleThe first byte is the data-type field (field a), the 2-byte element contains
Chapter 6PLC-5/VME ProcessorCommunications Commands 6-15Counter ExampleThe first byte is the data-type field (field a), the 6-byte element containst
Chapter 6PLC-5/VME Processor Communications Commands 6-16Array ExampleThe array includes two ID descriptors, the first specifies the structure as an
Chapter 6PLC-5/VME ProcessorCommunications Commands 6-17Example of Character StringThe first byte(s) are the descriptor (field a), followed by the c
Chapter 6PLC-5/VME Processor Communications Commands 6-18This command lets the host CPU write file data to the PLC-5/VMEprocessor one packet at a ti
Chapter 6PLC-5/VME ProcessorCommunications Commands 6-19Important: The PLC-5/VME processor ADDR, OFFSET, and TOTALTRANS fields work together when t
Chapter 6PLC-5/VME Processor Communications Commands 6-20Use this command to set PLC-5/VME processor’s operating mode.A no-privilege error is return
Preface iiiUsing this ManualThe purpose of this manual is to familiarize you with the installation anduse of the PLC-5/VME programmable controllers.
Chapter 6PLC-5/VME ProcessorCommunications Commands 6-21Error CodesThe STS byte contains 00H if no error. When detected, the PLC-5/VMEprocessor rep
Chapter 6PLC-5/VME Processor Communications Commands 6-22Message FormatDST00PSN00SRC00PSN00CMD0FSTS00TNS FNC53HCommand PacketDST00PSN00SRC00PSN00CMD
Chapter 6PLC-5/VME ProcessorCommunications Commands 6-23Use this command to place the PLC-5/VME processor in download modebefore downloading memory.
Chapter 6PLC-5/VME Processor Communications Commands 6-24Use this command at the completion of an upload to return thePLC-5/VME processor to its pre
Chapter 6PLC-5/VME ProcessorCommunications Commands 6-25Use this command to return the PLC-5/VME processor fromdownload/program to Program mode afte
Chapter 6PLC-5/VME Processor Communications Commands 6-26Use this command to upload segments of PLC-5/VME processor memoryafter a successful upload-
Chapter 6PLC-5/VME ProcessorCommunications Commands 6-27Error CodesThe STS byte contains 00H if no error. When detected, the PLC-5/VMEprocessor rep
Chapter 6PLC-5/VME Processor Communications Commands 6-28Message FormataDST00PSN00SRC00PSN00CMD0FSTS00TNS FNC18HCommand PacketReply PacketbDST00PSN0
Chapter 6PLC-5/VME ProcessorCommunications Commands 6-29Use this command to secure the edit resource for the programming device.Once you have obtain
Chapter 6PLC-5/VME Processor Communications Commands 6-30Use this command to return the edit resource when editing is completed.When you return the
Kommentare zu diesen Handbüchern