VFD com (XGB-iG5A)_Modbus

  • Upload
    heliodd

  • View
    423

  • Download
    70

Embed Size (px)

Citation preview

  • 7/22/2019 VFD com (XGB-iG5A)_Modbus

    1/27

    www.lsis.biz

    LSIS PLC/DriveLSIS PLC/Drive

    CommunicationCommunicationfor XGB and Drive (iG5A)for XGB and Drive (iG5A)

    -- ModbusModbus RTU protocolRTU protocol

  • 7/22/2019 VFD com (XGB-iG5A)_Modbus

    2/27

    Communication with VFD (Variable Frequency Drive)Communication with VFD (Variable Frequency Drive)

    Application Solution

    Configuration

    Diagnosis

    XG5000

    XG-PD

    Drive Setup

    Configuration

    RS-485 (Modbus communication)

    Baud rate: 9600, Data bit: 8, Stop bit : 1, Parity bit : None

    XGB

    RS-485

    Buil t-in Cnet

    iG5A

    Station: 1

    +

    -

    S+

    S-

    S+

    S-

    iG5A

    Station: 2

    Wiring Diagram

    Note that baud rate and stop/parity bit are selectable in I/O group.

    * I/O group: I61 baud rate, I65: parity/stop bit setting.

  • 7/22/2019 VFD com (XGB-iG5A)_Modbus

    3/27

    Communication with VFD (Variable Frequency Drive)Communication with VFD (Variable Frequency Drive)

    Application Solution

    Drive parameter setting

    XGB Parameter sett ing: XG-PD

    Set up each drive communication-concerning parameter as follows.

    For iG5A (station: 1)

    * DRV-03 [Drive mode]: 3 [RS-485]

    * DRV-04 [Freq. mode]: 7 [RS-485]* I/O 59 [Communication protocol] : 0 [Modbus RTU]

    * I/O 60 [VFD station number]: 1

    * I/O 61 [communication speed]: 3 (9600bps)

    For iG5A (station: 2)

    * DRV-03 [Drive mode]: 3 [RS-485]

    * DRV-04 [Freq. mode]: 7 [RS-485]* I/O 59 [communication protocol]: 0 [Modbus RTU]

    * I/O 60 [VFD station number]: 1

    * I/O 61 [communication speed]: 3 (9600bps)

    For XGB communication parameter sett ing, XG-PD (Network Manager) is used.

    Af ter running XG-PD, select [Online][Connect ].

    When connected, select [Online][Read IO Information].

    Diagnosis

    XG5000

    XG-PD

    Drive Setup

    Configuration

  • 7/22/2019 VFD com (XGB-iG5A)_Modbus

    4/27

    XGB parameter setting: XG-PD

    Double

    click

    After setting is

    done, click

    [P2P].

    Diagnosis

    XG5000

    XG-PD

    - XGB Setup

    Drive Setup

    Configuration Communication with VFD (Variable Frequency Drive)Communication with VFD (Variable Frequency Drive)

    Application Solution

  • 7/22/2019 VFD com (XGB-iG5A)_Modbus

    5/27

    Double

    click

    XGB parameter setting: XG-PD

    Diagnosis

    XG5000

    XG-PD

    - P2P

    Drive Setup

    Configuration Communication with VFD (Variable Frequency Drive)Communication with VFD (Variable Frequency Drive)

    Application Solution

  • 7/22/2019 VFD com (XGB-iG5A)_Modbus

    6/27

    P2P parameter setting: iG5A (station 1) Write request

    Double

    click

    ClickSlave

    address

    Condit ional flag: M0000This request frame is sent from XGB

    at M0 bit r ising edge.

    Data type/Data size

    This request frame is to wr ite 4 word

    data to iG5A.

    Diagnosis

    XG5000

    XG-PD

    - P2P

    Drive Setup

    Configuration Communication with VFD (Variable Frequency Drive)Communication with VFD (Variable Frequency Drive)

    Application Solution

  • 7/22/2019 VFD com (XGB-iG5A)_Modbus

    7/27

    P2P parameter setting: iG5A (station 1) Write request

    Modbus corresponding addresses of iG5A are acquired by the following formula.

    [Modbus address] = [iG5A address] 1

    Modbus word output area is from 0x40000. Therefore, [0x0005] is to be [0x40004].Here D0000 is assigned to 0x40004, which means D0 data value is sent to ref. Freq. area.

    In the previous slide, 4 words are to be sent. Therefore,

    D0 for Reference Frequency

    D1 for Run command (D1.0 bit is on iG5A stop; D1.1 bit is on iG5A forward run, etc).D2 for ACC time

    D3 for DEC time

    Diagnosis

    XG5000

    XG-PD

    - P2P

    Drive Setup

    Configuration Communication with VFD (Variable Frequency Drive)Communication with VFD (Variable Frequency Drive)

    Application Solution

  • 7/22/2019 VFD com (XGB-iG5A)_Modbus

    8/27

    P2P parameter setting: iG5A (station 1) Read request

    ClickSlaveaddress

    Condit ional flag: M0001This request frame is sent from XGB at M1 bit r ising edge.

    Data type/Data size

    This request frame is to read 8 word data from iG5A.

    Note that data size should be less than or equal to 8. If not, iG5A does not respond

    properly.

    Diagnosis

    XG5000

    XG-PD

    - P2P

    Drive Setup

    Configuration Communication with VFD (Variable Frequency Drive)Communication with VFD (Variable Frequency Drive)

    Application Solution

  • 7/22/2019 VFD com (XGB-iG5A)_Modbus

    9/27

    P2P parameter setting: iG5A (station 1) Read request

    Modbus word input area is from 0x30000. Therefore, [0x0007] to be [0x30006].

    Here D0020 is assigned to 0x30006, which means ACC time is sent to D20.

    In the previous s lide, 8 words to be sent from drive to XGB. Therefore,

    D20 for ACC time; D21 for DEC time, D22 for Output Current; D23 for Reference Frequency;

    D24 for Output vol tage; D25 for DC Link vol tage; D26 for Output power;

    D27 for dr ive status (D27.0 bit is on iG5A stop; D27.1 bit is on iG5A forward run, etc).

    Diagnosis

    XG5000

    XG-PD

    - P2P

    Drive Setup

    Configuration Communication with VFD (Variable Frequency Drive)Communication with VFD (Variable Frequency Drive)

    Application Solution

  • 7/22/2019 VFD com (XGB-iG5A)_Modbus

    10/27

    P2P parameter setting: iG5A (station 2) Write request

    ClickSlaveaddress

    Condit ional flag: M0002

    This request frame is sent from XGB during M2 bit rising edge. Data type/Data size

    This request f rame is to wri te 4 word data to iG5A.

    Data assignment method: the same as iG5A (station 1)

    D100 for Reference Frequency

    D101 for Run command (D1.0 bit i s on iG5A stop; D1.1 bit is on iG5A forward run, etc).D102 for ACC time

    D103 for DEC time

    Diagnosis

    XG5000

    XG-PD

    - P2P

    Drive Setup

    Configuration Communication with VFD (Variable Frequency Drive)Communication with VFD (Variable Frequency Drive)

    Application Solution

  • 7/22/2019 VFD com (XGB-iG5A)_Modbus

    11/27

    P2P parameter setting: iG5A (station 2) Read request

    ClickSlaveaddress

    Conditional flag: M0003

    This request frame is sent from XGB during M3 bit rising edge.

    Data type/Data size

    This request frame is to read 8 word data from dr ive to XGB.

    Data assignment method: the same as iG5A (station 1)

    D120 for ACC time; D121 for DEC time, D122 for Output Current; D123 for Reference Frequency;

    D124 for Output voltage; D125 for DC Link vol tage; D126 for Output power;

    D27 for dr ive status (D27.0 bit is on iG5A stop; D27.1 bit is on iG5A forward run, etc).

    Diagnosis

    XG5000

    XG-PD

    - P2P

    Drive Setup

    Configuration Communication with VFD (Variable Frequency Drive)Communication with VFD (Variable Frequency Drive)

    Application Solution

  • 7/22/2019 VFD com (XGB-iG5A)_Modbus

    12/27

    XG-PD download/Link enable

    Af ter l ink enable,

    select [Online][Reset].

    Diagnosis

    XG5000

    XG-PD

    - Down & Link

    Drive Setup

    Configuration

    Communication with VFD (Variable Frequency Drive)Communication with VFD (Variable Frequency Drive)

    Application Solution

  • 7/22/2019 VFD com (XGB-iG5A)_Modbus

    13/27

    XG5000 Programming: Part I

    For programming, please refer to XG5000 program after opening i t.

    Diagnosis

    XG5000

    - Programming

    XG-PD

    Drive Setup

    Configuration

    Communication with VFD (Variable Frequency Drive)Communication with VFD (Variable Frequency Drive)

    Application Solution

  • 7/22/2019 VFD com (XGB-iG5A)_Modbus

    14/27

    XG5000 Programming: Part II

    Diagnosis

    XG5000

    - Programming

    XG-PD

    Drive Setup

    Configuration

    Communication with VFD (Variable Frequency Drive)Communication with VFD (Variable Frequency Drive)

    Application Solution

  • 7/22/2019 VFD com (XGB-iG5A)_Modbus

    15/27

    XG5000 Programming: Part III

    [View][Devices/Variables] or other item to see its variable or comment.

    Diagnosis

    XG5000

    - Programming

    XG-PD

    Drive Setup

    Configuration

    Communication with VFD (Variable Frequency Drive)Communication with VFD (Variable Frequency Drive)

    Application Solution

  • 7/22/2019 VFD com (XGB-iG5A)_Modbus

    16/27

    XG5000 Programming: Part IV

    Diagnosis

    XG5000

    - Programming

    XG-PD

    Drive Setup

    Configuration

    Communication with VFD (Variable Frequency Drive)Communication with VFD (Variable Frequency Drive)

    Application Solution

  • 7/22/2019 VFD com (XGB-iG5A)_Modbus

    17/27

    XG5000 Programming: Part V

    Diagnosis

    XG5000

    - Programming

    XG-PD

    Drive Setup

    Configuration

    Communication with VFD (Variable Frequency Drive)Communication with VFD (Variable Frequency Drive)

    Application Solution

  • 7/22/2019 VFD com (XGB-iG5A)_Modbus

    18/27

    iG5A (#1) Control: Set Ref. Freq. and make it run forward

    Reference frequency is set as 12.34Hz.

    Diagnosis

    XG5000

    - Monitoring

    XG-PD

    Drive Setup

    Configuration

    Communication with VFD (Variable Frequency Drive)Communication with VFD (Variable Frequency Drive)

    Application Solution

  • 7/22/2019 VFD com (XGB-iG5A)_Modbus

    19/27

    iG5A (#1) Control: Set ACC/DEC time of station 1

    iG5A reference frequency is set as 12.34Hz. Its status is FWD Run. ACC and DEC time

    is set as 1.0 and 2.0 sec, respectively. Now lets moni tor iG5A.

    Diagnosis

    XG5000

    - Monitoring

    XG-PD

    Drive Setup

    Configuration

    Communication with VFD (Variable Frequency Drive)Communication with VFD (Variable Frequency Drive)

    Application Solution

  • 7/22/2019 VFD com (XGB-iG5A)_Modbus

    20/27

    iG5A (#1) Monitoring: operation information

    iG5A is running as we set in the previous slide.

    D27.1 bit means its operation status is FWD Run.

    Diagnosis

    XG5000

    - Monitoring

    XG-PD

    Drive Setup

    Configuration

    Communication with VFD (Variable Frequency Drive)Communication with VFD (Variable Frequency Drive)

    Application Solution

  • 7/22/2019 VFD com (XGB-iG5A)_Modbus

    21/27

    iG5A (#2) Control: Ref. Freq., Operation command and ACC/DEC time

    Station 2 reference frequency: 43.21Hz

    Station 2 operation command: Reverse running

    Station 2 ACC time: 3.0 sec

    Station 2 DEC time: 4.0 sec

    Diagnosis

    XG5000

    - Monitoring

    XG-PD

    Drive Setup

    Configuration

    Communication with VFD (Variable Frequency Drive)Communication with VFD (Variable Frequency Drive)

    Application Solution

  • 7/22/2019 VFD com (XGB-iG5A)_Modbus

    22/27

    iG5A (#2) Monitoring: operation information

    iG5A is running as we set in the previous slide.

    D27.1 bit means its operation status is REV Run.

    Diagnosis

    XG5000

    - Monitoring

    XG-PD

    Drive Setup

    Configuration

    Communication with VFD (Variable Frequency Drive)Communication with VFD (Variable Frequency Drive)

    Application Solution

  • 7/22/2019 VFD com (XGB-iG5A)_Modbus

    23/27

    iG5A (#1 & #2) Communication Status

    Click [Variable Monitor ing] icon:

    Now there is no error in either station 1 or 2.

    Diagnosis

    XG5000

    - Monitoring

    XG-PD

    Drive Setup

    Configuration

    Communication with VFD (Variable Frequency Drive)Communication with VFD (Variable Frequency Drive)

    Application Solution

  • 7/22/2019 VFD com (XGB-iG5A)_Modbus

    24/27

    iG5A (#1 & #2) Communication Status

    When station 1 is turned off or disconnected from network, its error flags are increased.

    Af ter the problem is recovered, error-concerned f lags are not increased but hold thei r

    values. Note that L relay is latched.

    Diagnosis

    XG5000

    - Monitoring

    XG-PD

    Drive Setup

    Configuration

    Communication with VFD (Variable Frequency Drive)Communication with VFD (Variable Frequency Drive)

    Application Solution

  • 7/22/2019 VFD com (XGB-iG5A)_Modbus

    25/27

    System diagnosis: XG-PD

    In XG-PD, select [Online][System Diagnosis] where you are able to see comm. Status.

    Right-mouse

    click

    Select [Channel 2] and click [Start] then

    you wil l see its communication frame.

    Even though XGB has no RTC, but i t shows

    time stamp when the transmission/reception

    frame pass through the comm. port.This is important because in 1:N comm. In

    RS-485 (half-duplex) system, transmission

    and reception frame should be interlocked.

    And a user could know the best poss ib le

    condit ional flag to send each frame by this

    time stamp.

    Diagnosis

    XG5000

    XG-PD

    Drive Setup

    Configuration

    Communication with VFD (Variable Frequency Drive)Communication with VFD (Variable Frequency Drive)

    Application Solution

  • 7/22/2019 VFD com (XGB-iG5A)_Modbus

    26/27

    System diagnosis: XG-PD

    1 2

    3

    4

    (1) If there is unknown in Result, the frame is wrong.

    (2) It shows when each frame passes through the communication port.

    (3) When the t ransmission frame is sent to iG5A (station 1) at 0:00:02:770 (2.770sec after

    monitoring start), the reception frame is delivered to XGB from station 1 after 0.03sec later.

    (4) It shows one cycle in th is system composed of 8 frames.

    Write request to #1 (M0 bit )Write response from #1 Read request to #1 (M1 bit )Read response from #1Write request to #2 (M2 bit ) Write response from #2Read request to #2 (M3 bit ) Read response from #2Note that every transmission frame is sent with 200ms period.

    Diagnosis

    XG5000

    XG-PD

    Drive Setup

    Configuration

    Communication with VFD (Variable Frequency Drive)Communication with VFD (Variable Frequency Drive)

    Application Solution

  • 7/22/2019 VFD com (XGB-iG5A)_Modbus

    27/27

    System diagnosis: XG-PD

    In XG-PD, select [Online][System Diagnosis] where you are able to see comm. Status.

    Right-mouse

    click

    Select [P2P Service] and click [Multip le

    Reading] then you will see comm. status.

    Whenever an communication error occurs,

    its error count w ill increase.

    Diagnosis

    XG5000

    XG-PD

    Drive Setup

    Configuration

    Communication with VFD (Variable Frequency Drive)Communication with VFD (Variable Frequency Drive)

    Application Solution