120 likes | 523 Views
GE Fanuc Automation. GE Fanuc Automation. 90-70 DeviceNet configuration Training Course Presented by GE Fanuc. Device Master --- 5136-DN-VME. 1. Jumper P4: select whether the module boots from RAM or EPROM. 1. P. S. S. C. A. 3. N. DIP switches SW1: set the VME bus address
E N D
GE Fanuc Automation GE Fanuc Automation 90-70 DeviceNet configuration Training Course Presented by GE Fanuc
Device Master --- 5136-DN-VME 1 Jumper P4: select whether the module boots from RAM or EPROM 1 P S S C A 3 N DIP switches SW1: set the VME bus address for the module 2 N E R Fail & PASS LEDs: LEDs for module initialization 3 5 COMM & HEALTH LEDs: LEDs for network communication 4 4 Bus connector: DeviceNet bus connector 5 2 Resistors (121Ώ) shall be on both ends of bus
5136-DN-VME Specification • Support all standard DeviceNet data rates (125K, 250K, 500K) • Up to 255 bytes input data and 255 bytes output data per slave • Support UCMM, simultaneous execution of Group 2 client (Master) and Server (slave) operation • Support explicit message and I/O connections: polling, strobe, Change of stata, Cyclic I/O
Setup Jumper & DIP Switches 1 Jumper P4 must be set to EPROM 1 If there is only one 5136-DN-VME card in the PLC, set SW1 as follows: 2 1st 2 If there is a second 5136-DN-VME card in the PLC, set SW1 as follows: 2nd
Add 5136-DN-VME in ME Add Module: VME – 3rd Party VME 1 2 Set the configuration mode to None 2 1
Import DeviceNet Ladder Logic The DeviceNet ladder logic is placed into exported drawer file (file name: DNET.ZDRW). Create a new drawer and import drawer from this file. 1 Create the following subroutine blocks: D_Ini_1 and D_IO_1 (for 1st 5136-DV-VME module), D_Ini_2 and D_IO_2 (for 2nd 5136-DN-VME module). Drag & drop the logic in the drawer to the above blocks 2 2 1
#FST_SCN Data_Init INT LEN 100 Q D_Ini_1 %SC57 (Initialized) D_IO_1 Create Logic in DNET block User needs to create the following logic in DNET block: User needs to enter Mac ID, I/O length for master and all slave devices in this Data_Init block %P1 User must not change the logic of these two subroutine blocks
-- Mac ID of Master -- Baud rate (2 --- 500k) -- No. of slave devices -- Mac ID of slave #1 -- Output length (byte) for slave #1 -- Input length (byte) for slave #1 Configure Network Parameters The master and slave parameters are set in Data_Init block: 100 words Word 1: Master MAC ID Word 2: Baud rate Word 3: No. of slave devices Word 4: Mac ID for slave #1 Word 5: Output length for slave #1 Word 6: Input length for slave #1 Word 7: Mac ID for slave #2 Word 8: Output length for slave #2 Word 9: Input length for slave #2 Word 10: Mac ID for slave #3 Word 11 … Double click #FST_SCN Data_Init INT LEN 100 %P1 Q
VME_Write Byte LEN 64 AM ADR Map slave I/O data to 9070 memories In DNET block, user needs to create the following rungs for each Slave device for I/O mapping: %SC78 (Scnner_started) VME_Read Byte LEN 94 16#39 AM %Q8001 IN %AQ3 %I8001 ADR Q 16#39 Input data length of slave #1 %AQ1 Output data length of slave #1 User needs to assign 90-70 memory for output data of slave #1 User needs to assign 90-70 memory for input data of slave #1 %AQ1-AQ2 (DINT) contains the output data address in memory pool for slave #1, %AQ3-AQ4 contains the address for slave #1 input data
LEDs and Status Words • Fail & Pass LEDs: Red --- module not initialized • Off --- module initialized • Health LED: Green – module is running without error • Red – module is not running or runtime fatal error ocurred • Comm LED: Green – master is communicating with slaves • Off – scanner is not running • Flash Green – master is setting up I/O connection with slave • Red – loss of bus power • Slave status bits: %GE1 ~ %GE32 – slave status bits (32 slaves for 1st master) • %GE97 ~ %GE128 – slave status bits (32 slave for 2nd master) • Can Status Word: %GE65~%GE80 – Can status word for 1st master module • %GE161~%GE176 – Can status word for 2nd master module