background image

37

Contents

This allows a coil to control a specific function in the drive.  You could
use bit manipulation instructions operating on word 40100 (such as
MBIT), but it is far simpler to just assign coils to specific functions, and
then move these coils into the Control Word. These coils are then moved
into word 40100 using the simple instruction shown below:

Now the user may control specific functions by turning on and off these
coils.  For example, to start the drive, the user would turn on coil 15,
which is block moved to word 40100,  setting Modicon bit 15 on.
Register 40100 is then transmitted over Modbus Plus via the Peer Cop
to the 1560-MBP, which then turns on bit 1 in the drive control word,
starting the drive. Inputs 100001-100016 may then be examined to
observe feedback, such as run acknowledgment.

Note that by using this approach, the complexity is minimized by setting
up a control structure (peercop) up front once, which may now be easily
copied and duplicated.  Also, additional drives may be very easily
controlled by simply adding a few entries to the peercop tables and a
block move to transfer bit states to the drive.

Special Precautions and hints

Timing
Because all parameters to and from the drive must pass through the
SCANport, be careful about adding additional devices, such as the HIM
module, when critical drive communication timing is required.  While it
does not affect the transfer of parameters, it does affect the throughput,
which may cause unexpected problems in speed critical applications.
Other devices placed on the network will affect the speed of the Modbus
Plus network.  Programming panels and operator interfaces can add
significant network load.  Nodes going online or off-line momentarily
disrupt the token passing pattern.  For critical drive control, a separate
dedicated Modbus Plus network is recommended.

enable -

abort -

400110

- active

00001

BKLM
00001

- error

- success

Appendix C — Peer Cop Example

Содержание ProSoft 1560

Страница 1: ...U S E R M A N U A L 1560 1560 U S E R M A N U A L...

Страница 2: ...tch Configuration 10 4 Programming Considerationations 15 4 1 Writing to the 1560 MBP 15 4 1 1 Global Data Enabled MSTRType 5 15 4 1 2 Host Issued Write Commands MSTRType 1 18 4 2 Reading from the 156...

Страница 3: ...entation on the operation of the Allen Bradley hardware Under no conditions will ProSoft Technology Inc be responsible or liable for indirect or consequential damages resulting form the use or applica...

Страница 4: ...A B Power Division products 1 Set the dip switches The 1560 MBP dip switch positions are detailed in Section 3 2 Mount the 1560 MBP on the DIN rail See Appendix D for mounting instructions 3 Connect...

Страница 5: ...e 5 5 97 Rev 1 1 Modify product to allow slave addresses within any group of 16 slave addresses on one PLC Host when using Global Data Also protect Control and Reference words from overwrite if Global...

Страница 6: ...Data Supports Global Database Control from Host PLC In this mode the 1560 MBP will look for Control Word and Reference in the selected Host Global Database Pre assigned Modbus memory map Read Write C...

Страница 7: ...odbus Plus Female 9 pin D shell connector SCANport Standard SCANport connector Status LED SCANport Status bi color Red Green Modbus Plus Status green Current Consumption 65 ma at 24 VDC Input Voltage...

Страница 8: ...MSTR Type 2 Read Data This command reads data from any place within the Modbus Register map This command allows a Modbus host to selectively read data from the 1560 MBP as required for the applicatio...

Страница 9: ...that exist in the SCANport device If the number is greater than 2000 the parameter list is limited to 2000 Chapter 2 Modbus Plus Port Functionality Control Reference and Datalink IN Miscellaneous Par...

Страница 10: ...5 4 3 2 1 Fault on Loss of Modbus Plus Global Database Control 8 8 ON Enable OFF Disable 7 7 ON Enable OFF Disable 3 Hardware Setup 3 1 1560 MBP Card Setup 3 1 1 Connecting Power to the 1560 MBP Card...

Страница 11: ...atalink A B C D SW1 1 to 6 1 Address Bit 0 Value 1 2 Address Bit 1 Value 2 3 Address Bit 2 Value 4 4 Address Bit 3 Value 8 5 Address Bit 4 Value 16 6 Address Bit 5 Value 32 Example Addresses 1 to 64 6...

Страница 12: ...ff off off off 49 on on off off off on 50 on on off off on off 51 on on off off on on 52 on on off on off off 53 on on off on off on 54 on on off on on off 55 on on off on on on 56 on on on off off of...

Страница 13: ...ts the Modbus Plus Address for the 1560 MBP unit Each node must have a unique address Note that the addresses will be one higher than the binary value selected by the dip switches It is recommended th...

Страница 14: ...n on 36 on off off on off off 37 on off off on off on 38 on off off on on off 39 on off off on on on 40 on off on off off off 41 on off on off off on 42 on off on off on off 43 on off on off on on 44...

Страница 15: ...a Control Mode is enabled the 1560 MBP will look to the Host s Global Data space for the Control and Reference values All other values must be written by the host using the MSTR Type 1 instruction in...

Страница 16: ...30 Global Data Sent from Host 2 words per slave Slave 48 From Global Data Table MSTR Type 1 accessible only Global Write Space Slave 37 Slave 33 1 17 33 49 0 1 2 18 34 50 2 3 3 19 35 51 4 5 4 20 36 5...

Страница 17: ...ds the Global Data it first examines the source node address to assure it matches the dip switch configured Host Node Address and then retrieves the two words that relate to its node from the packet e...

Страница 18: ...r Code in the MBP Status register Write Data Control Reference Data Link IN Parameter Register Space This register space contains the parameter table from the SCANport device This paramaters are store...

Страница 19: ...this would be register 40119 enable abort Modicon Programming Example MSTR Type 1 active 40001 40010 MSTR 00002 error success Contents of registers in control block 40001 1 Write instruction 40002 0...

Страница 20: ...not enable Datalink Messaging 4 2 2 Host Issued Read Commands MSTR Type 2 If the PLC Programmer does not want to use Global Data or if there is a desire to read more data out of the 1560 MBP the MSTR...

Страница 21: ...data returned from the 1560 MBP Modicon Programming Example MSTR Type 2 The MSTR instruction shown above reads the status registers 40021 40033 from the 1560 MBP at Node Address 6 and stores the value...

Страница 22: ...ncrements each time the 1560 MBP received a Status word update from the SCANport device This is a rollover counter which increments each time the Datalink A update is received from the SCANport device...

Страница 23: ...increments each time a Write Parameter command used to transfer MSTR Type 1 write data to the SCANport device is executed Reserved for future use Reserved for future use Provides the firmware revisio...

Страница 24: ...Cmd 2 Invalid Global Length The host is not configured to send enough Global Data to support this node s Modbus Plus address 3 Invalid Write Range An MSTR Type 1 write cmd was received attemtpting to...

Страница 25: ...ng L N G Modbus Plus Port Status SCANport Status NAME Color Status Indication Modbus Plus Green Six flashes The 1560 MBP is working normally in that it is successfully receiving and passing the token...

Страница 26: ...1 4 seconds The node has heard a valid message from another node that is using the same address as this node The node remains in this state as long as it continues to hear the duplicate address If th...

Страница 27: ...The data that is available with the utility includes Active Node List If there is doubt as to whether or not the MBP node is seen on the network this list will show all active nodes Global Data The u...

Страница 28: ...ion on the front of the card The physical terminations are shown in the following diagram 1560 MBP Modbus Plus DB 9 Female Network TxRxD 1 TxRxD TxRxD 2 TxRxD COM 3 COM Refer to the Modicon Modbus Plu...

Страница 29: ...akersfield CA 93311 661 664 7208 661 664 7233 Fax e mail prosoft prosoft technology com http www prosoft technology com Before calling for support please prepare yourself for the call In order to prov...

Страница 30: ...nk A R 40014 Adaptor I O Out A2 Datalink A R 40015 Adaptor I O Out B1 Datalink B R 40016 Adaptor I O Out B2 Datalink B R 40017 Adaptor I O Out C1 Datalink C R 40018 Adaptor I O Out C2 Datalink C R 400...

Страница 31: ...ould not include any of the Datalinks Enabled If a Datalink is enabled the SCANport Status LED will toggle indicating an error in the SCANport communications The 1560 MBP is able to read all of the pa...

Страница 32: ...User Manual for the particular device being controlled Bit Function Description 0 Stop 1 Stop 0 Not Stop 1 Start 1 Start 0 Not Start 2 Jog 1 Jog 0 Not Jog 3 Clear Faults 1 Clear 0 Not Clear 4 5 Direc...

Страница 33: ...gested that the user initially follow this application closely and then modify the application to suit his requirements This should minimize the effort required to get your implementation up and runni...

Страница 34: ...de 6 MODE REFERENCE LEN TYPE INDEX SPECIFIC INPUT SPECIFIC OUTPUT GLOBAL INPUT 100001 100016 1 1 GLOBAL INPUT 400200 400208 9 BIN 2 GLOBAL INPUT GLOBAL INPUT GLOBAL INPUT GLOBAL INPUT GLOBAL INPUT GLO...

Страница 35: ...Note that the user could have configured a length of only 12 and only words 40100 40111 would have been sent The above configuration also has the first Global Input word from Node 6 offset 0 assigned...

Страница 36: ...l amount of programming is added to simplify drive control A group of 16 coils 00001 00016 are block moved into the word that is mapped to the Drive Control word 40100 In our example coils 00001 00016...

Страница 37: ...mized by setting up a control structure peercop up front once which may now be easily copied and duplicated Also additional drives may be very easily controlled by simply adding a few entries to the p...

Страница 38: ...1 to stop drive If communication is lost the PLC is unable to remotely stop the drive In general when controlling drive functions SW2 8 should be set ON so that the drive will fault on loss of Modbus...

Страница 39: ...nd layout drawings for the enclosed style communication module such as the 1560 MBP The following drawings are excerpted from A B document 1203 5 5 45mm 1 8 25mm 1 25mm 1 DINN Rail 76mm 3 0 Front View...

Страница 40: ...rs Generally when selecting a SCANport cable the Male Male configuration will be used This is true in all cases when connecting to Ports 2 through 5 If connecting to the HIM port Port 1 the Male Femal...

Страница 41: ...e enabled by setting the appropriate dip switches on SW1 and by configuring the Datalink In and Datalink Out adapter I O parameters in the SCANport device Each Datalink consists of two 16 bit words of...

Страница 42: ...tions and the accompanying written materials and shall be free of defects in materials and workmanship for the period of time herein indicated such warranty period commencing upon receipt of the Produ...

Страница 43: ...RODUCT Where directed by State Law some of the above exclusions or limitations may not be applicable in some states This warranty provides specific legal rights other rights that vary from state to st...

Страница 44: ...ous locations only B Warning Explosion hazard Substitution of components may impair suitability for Class I Division 2 C Warning Explosion hazard When in hazardous locations turn off power before repl...

Отзывы: