Documents
Resources
Learning Center
Upload
Plans & pricing Sign in
Sign Out

2009051014251700001

VIEWS: 0 PAGES: 10

  • pg 1
									                GE Fanuc Automation




90-70 DeviceNet configuration
       Training Course

        Presented by GE Fanuc




                                      1
        Device Master --- 5136-DN-VME
              1             Jumper P4: select whether the module boots
                        1 from RAMSor EPROM
                                 P
                                 S C
                                   A
3                                     N
                            DIP switches SW1: set the VME bus address
                                      N
                        2             E
                            for the module
                                      R


                        3 Fail & PASS LEDs: LEDs for module
                            initialization
    5
                        4 COMM & HEALTH LEDs: LEDs for network
4                           communication
                   2    5 Bus connector: DeviceNet bus connector


                                             Resistors (121Ώ) shall be on both ends of bus


                                                                                     2
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

                                                    3
Setup Jumper & DIP Switches
      1
                    1 Jumper P4 must be set to EPROM




                    2 If there is only one 5136-DN-VME card in
                           the PLC, set SW1 as follows:
                    SW      1    2     3     4     5     6     7    8    9    10
              1st   On/     On   Off   On    Off   Off   Off   On   On   On   On
                    Off
          2                If there is a second 5136-DN-VME card in
                           the PLC, set SW1 as follows:
                     SW     1    2     3     4     5     6     7    8    9    10
              2nd    On/    On   Off   Off   On    On    On    On   On   On   On
                     Off


                                                                                   4
      Add 5136-DN-VME in ME
    1 Add Module:
       VME – 3rd Party VME


    2 Set the configuration mode
       to None                     2




1




                                       5
  Import DeviceNet Ladder Logic
1 The DeviceNet ladder logic is
  placed into exported drawer file
  (file name: DNET.ZDRW).
  Create a new drawer and import
  drawer from this file.

2 Create the following subroutine
  blocks: D_Ini_1 and D_IO_1           2   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



                                               6
Create Logic in DNET block
User needs to create the following logic in DNET block:

                  #FST_SCN

                                Data_Init         User needs to enter Mac ID,
                                  INT             I/O length for master and all
                                  LEN
                                                  slave devices in this
                                  100             Data_Init block

                                        Q   %P1




                                 D_Ini_1


                  %SC57
                                                  User must not change the
                (Initialized)                     logic of these two subroutine
                                D_IO_1            blocks




                                                                                  7
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
                              Double click                                            Word 3: No. of slave devices
   #FST_SCN                                                                           Word 4: Mac ID for slave #1
                                             -- Mac ID of Master                      Word 5: Output length for slave #1
              Data_Init
                                                -- Baud rate (2 --- 500k)             Word 6: Input length for slave #1
                INT
                                             -- No. of slave devices                  Word 7: Mac ID for slave #2
                LEN                             -- Mac ID of slave #1                 Word 8: Output length for slave #2
                100       Q      %P1         -- Output length (byte) for slave #1     Word 9: Input length for slave #2
                                                -- Input length (byte) for slave #1   Word 10: Mac ID for slave #3
                                                                                      Word 11
                                                                                      …




                                                                                                                     8
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_Write                                  VME_Read
                                             Byte                                       Byte
                            %Q8001                                       16#39      AM
                                      IN
                                              LEN                                         LEN
                                              64                         %AQ3       ADR              Q   %I8001
                              16#39   AM
                                                                                           94



                              %AQ1    ADR                                        Input data length
                                                                                 of slave #1
                                                    Output data length
                                                    of slave #1

           User needs to assign 90-70                                             User needs to assign 90-70
           memory for output data of                                              memory for input data of
           slave #1                                                               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


                                                                                                                  9
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           10

								
To top