Micrologix 1100 Modbus Rtu Sample Reva
Micrologix 1100 Modbus Rtu Sample Reva
Micrologix 1100 Modbus Rtu Sample Reva
Total Memory Used: 372 Instruction Words Used - 203 Data Table Words Used Total Memory Left: 6284 Instruction Words Left Program Files: 6 Data Files: 13 Program ID: 9b26
Page 1
0 1 2 3 4
Bul.1763
Page 1
CHANNEL 0 (SYSTEM) - Driver: Modbus RTU Master CHANNEL 0 (SYSTEM) - Driver: Modbus RTU Master CHANNEL 0 (SYSTEM) - Driver: Modbus RTU Master CHANNEL 0 (SYSTEM) - Driver: Modbus RTU Master CHANNEL 0 (SYSTEM) - Driver: Modbus RTU Master CHANNEL 0 (SYSTEM) - Driver: Modbus RTU Master CHANNEL 0 (SYSTEM) - Driver: Modbus RTU Master CHANNEL 0 (SYSTEM) - Driver: Modbus RTU Master Baud: 38.4K Parity: NONE Control Line : No Handshaking (485 Network) InterCharacter Timeout(x1 ms): 5 Pre Transmit Delay(x1 ms): 10 CHANNEL 1 (SYSTEM) - Driver: Ethernet CHANNEL 1 (SYSTEM) - Driver: Ethernet CHANNEL 1 (SYSTEM) - Driver: Ethernet CHANNEL 1 (SYSTEM) - Driver: Ethernet CHANNEL 1 (SYSTEM) - Driver: Ethernet CHANNEL 1 (SYSTEM) - Driver: Ethernet
Edit Resource/Owner Timeout: 60 Passthru Link ID: 1 Write Protected: No Comms Servicing Selection: Yes Message Servicing Selection: Yes 1st AWA Append Character: \d 2nd AWA Append Character: \a
Edit Resource/Owner Timeout: 60 Passthru Link ID: 1 Write Protected: No Comms Servicing Selection: Yes Message Servicing Selection: Yes
Hardware Address: 00:00:00:00:00:00 IP Address: 192.168.3.6 Subnet Mask: 255.255.255.0 Gateway Address: 0.0.0.0 Msg Connection Timeout (x 1mS): 15000 Msg Reply Timeout (x mS): 3000 Inactivity Timeout (x Min): 30 Bootp Enable: No Dhcp Enable No SNMP Enable: No HTTP Enable: Yes Auto Negotiate Enable: Yes Port Speed Enable: 10/100 Mbps Full Duplex/Half Duplex Contact: Location:
Page 1
Name [SYSTEM] MAIN PRG MODBUS RTU DRV A CRTL DRV B CRTL
Number 0 1 2 3 12 13
Rungs 0 0 4 5 17 17
Debug No No No No No No
Page 1
Name OUTPUT INPUT STATUS BINARY TIMER COUNTER CONTROL INTEGER FLOAT REF SCALE MODBUS MSG DRV A DATA DRV B DATA
Number 0 1 2 3 4 5 6 7 8 80 90 92 93
Type O I S B T C R N F F MG N N
Scope Global Global Global Global Global Global Global Global Global Global Global Global Global
Debug No No No No No No No No No No No No No
Words 12 18 0 1 3 3 3 1 2 20 100 20 20
Elements Last 4 6 66 1 1 1 1 1 1 10 4 20 20 O:3 I:5 S:65 B3:0 T4:0 C5:0 R6:0 N7:0 F8:0 F80:9 MG90:3 N92:19 N93:19
Page 1
MICROLOGIX_1100_MODBUS_RTU_SAMPLE_PRG_REVA.RSS LAD 2 - MAIN PRG - Main Program --- Total Rungs in File = 4
0000
JSR Jump To Subroutine SBR File Number JSR Jump To Subroutine SBR File Number JSR Jump To Subroutine SBR File Number
U:3
0001
U:12
0002
U:13
0003
END
Page 1
The MSG instructions for ABB Drives A and B are cascaded so that they all operate in sequence. This scheduling of Modbus RTU MSG instructions is necessary to ensure that each instruction receives its hand-shake and completes properly. The next message can not opreate until the message before is done or error. The READ_MSG_TO_DRV_A will read Modbus Registers 40004 = MSW, 40005 = Actual Speed and 40006 = Actual Torque. MG90:0 MSG Read/Write Message EN MSG File MG90:0 Setup Screen < The READ_MSG_TO_DRV_A will read Modbus Registers 40004 = MSW, 40005 = Actual Speed and 40006 = Actual Torque. MG90:0 MG90:1 MSG Read/Write Message DN EN MSG File MG90:1 Setup Screen < MG90:0 ER The READ_MSG_TO_DRV_B will read Modbus Registers 40004 = MSW, 40005 = Actual Speed and 40006 = Actual Torque. MG90:1 MG90:2 MSG Read/Write Message DN EN MSG File MG90:2 Setup Screen < MG90:1 ER The WRITE_MSG_TO_DRV_B will write Modbus Registers 40001 = MCW, 40002 = Ref 1 and 40003 = Ref 2. MG90:2 MG90:3 MSG Read/Write Message DN EN MSG File MG90:3 Setup Screen < MG90:2 ER 0004 END
0000
EN DN ER
0001
EN DN ER
0002
EN DN ER
0003
EN DN ER
Page 1
MICROLOGIX_1100_MODBUS_RTU_SAMPLE_PRG_REVA.RSS LAD 12 - DRV A CRTL - ABB Drive A Control --- Total Rungs in File = 17
Sample program below is controlling a ABB Drive on Modbus RTU. The ABB Drive is program to use ABB Drives profile for control and status. This rung is the Start and Ramp to Stop for the drive. I:0 0000 0 Bul.1763 This rung is an Off 2 or a coast to stop for the drive. I:0 0001 1 Bul.1763 This rung is a Off 3 or Emergency Stop for the drive. I:0 0002 2 Bul.1763 This rung will clear a fault on the drive. I:0 0003 3 Bul.1763 7 RampOut_Zero DRIVE_A_DATA_40001/4 N92:10 0004 4 Inhibit_Operation DRIVE_A_DATA_40001/3 N92:10 0005 3 Ramp_Hold DRIVE_A_DATA_40001/5 N92:10 0006 5 RampIn_Zero DRIVE_A_DATA_40001/6 N92:10 0007 6 Remote_Cmd DRIVE_A_DATA_40001/10 N92:10 0008 10 Fault_Reset DRIVE_A_DATA_40001/7 N92:10 2 Off_3_Ctrl DRIVE_A_DATA_40001/2 N92:10 1 Off_2_Ctrl DRIVE_A_DATA_40001/1 N92:10 0 Off_1_Ctrl DRIVE_A_DATA_40001/0 N92:10
Page 1
MICROLOGIX_1100_MODBUS_RTU_SAMPLE_PRG_REVA.RSS LAD 12 - DRV A CRTL - ABB Drive A Control --- Total Rungs in File = 17
Swtches between control location EXT1 and EXT2 in the ABB Drive. I:0 0009 4 Bul.1763 The Speed Ref 1 the maximum speed is equal to 20,000 units. REF 1_Speed_Ref DRIVE_A_DATA_40002 MUL Multiply Source A I:0.4 1023< Source B F80:0 19.55< Dest N92:11 20000< Scaling the analog input to a maximum value of 20,000 units before moving the value to the Speed Ref 1. I:0 0011 5 Bul.1763 TOTAL_SCALE_FOR_REF1 MOV Move Source F80:1 19.55< Dest F80:0 19.55< 11 Ext_Ctrl_Loc DRIVE_A_DATA_40001/11 N92:10
0010
Changing the sign of the value to make the drive run reverse when the drive is in Speed Ref 1 control location. I:0 0012 5 Bul.1763 TOTAL_SCALE_FOR_REF1 MOV Move Source F80:2 -19.55< Dest F80:0 19.55<
0013
The Speed Ref 2 the maximum speed is equal to 10,000 or 20,000 units. Please see User Manual for maximum fieldbus units. REF 2_Torque_Ref DRIVE_A_DATA_40003 MUL Multiply Source A I:0.5 1023< Source B F80:3 9.775< Dest N92:12 10000< Scaling the analog input to a maximum value of 10,000 units before moving the value to the Speed Ref 2. I:0
0014 5 Bul.1763
Page 2
MICROLOGIX_1100_MODBUS_RTU_SAMPLE_PRG_REVA.RSS LAD 12 - DRV A CRTL - ABB Drive A Control --- Total Rungs in File = 17
Changing the sign of the value to make the drive run reverse when the drive is in Speed Ref 2 control location. I:0 0015 5 Bul.1763 DRV_A_TSCALE_REF2 MOV Move Source F80:5 -9.775< Dest F80:3 9.775<
0016
END
Page 3
MICROLOGIX_1100_MODBUS_RTU_SAMPLE_PRG_REVA.RSS LAD 13 - DRV B CRTL - ABB Drive B Control --- Total Rungs in File = 17
Sample program below is controlling a ABB Drive on Modbus RTU. The ABB Drive is program to use ABB Drives profile for control and status. This rung is the Start and Ramp to Stop for the drive. I:0 0000 0 Bul.1763 This rung is an Off 2 or a coast to stop for the drive. I:0 0001 1 Bul.1763 This rung is a Off 3 or Emergency Stop for the drive. I:0 0002 2 Bul.1763 This rung will clear a fault on the drive. I:0 0003 3 Bul.1763 7 RampOut_Zero DRIVE_B_DATA_40001/4 N93:10 0004 4 Inhibit_Operation DRIVE_B_DATA_40001/3 N93:10 0005 3 Ramp_Hold DRIVE_B_DATA_40001/5 N93:10 0006 5 RampIn_Zero DRIVE_B_DATA_40001/6 N93:10 0007 6 Remote_Cmd DRIVE_B_DATA_40001/10 N93:10 0008 10 Fault_Reset DRIVE_B_DATA_40001/7 N93:10 2 Off_3_Ctrl DRIVE_B_DATA_40001/2 N93:10 1 Off_2_Ctrl DRIVE_B_DATA_40001/1 N93:10 0 Off_1_Ctrl DRIVE_B_DATA_40001/0 N93:10
Page 1
MICROLOGIX_1100_MODBUS_RTU_SAMPLE_PRG_REVA.RSS LAD 13 - DRV B CRTL - ABB Drive B Control --- Total Rungs in File = 17
Swtches between control location EXT1 and EXT2 in the ABB Drive. I:0 0009 4 Bul.1763 The Speed Ref 1 the maximum speed is equal to 20,000 units. REF 1_Speed_Ref DRIVE_B_DATA_40002 MUL Multiply Source A I:0.4 1023< Source B F80:0 19.55< Dest N93:11 20000< Scaling the analog input to a maximum value of 20,000 units before moving the value to the Speed Ref 1. I:0 0011 5 Bul.1763 TOTAL_SCALE_FOR_REF1 MOV Move Source F80:1 19.55< Dest F80:0 19.55< 11 Ext_Ctrl_Loc DRIVE_B_DATA_40001/11 N93:10
0010
Changing the sign of the value to make the drive run reverse when the drive is in Speed Ref 1 control location. I:0 0012 5 Bul.1763 TOTAL_SCALE_FOR_REF1 MOV Move Source F80:2 -19.55< Dest F80:0 19.55<
0013
The Speed Ref 2 the maximum speed is equal to 10,000 or 20,000 units. Please see User Manual for maximum fieldbus units. REF 2_Torque_Ref DRIVE_B_DATA_40003 MUL Multiply Source A I:0.5 1023< Source B F80:6 19.55< Dest N93:12 20000< Scaling the analog input to a maximum value of 10,000 units before moving the value to the Speed Ref 2. I:0
0014 5 Bul.1763
Page 2
MICROLOGIX_1100_MODBUS_RTU_SAMPLE_PRG_REVA.RSS LAD 13 - DRV B CRTL - ABB Drive B Control --- Total Rungs in File = 17
Changing the sign of the value to make the drive run reverse when the drive is in Speed Ref 2 control location. I:0 0015 5 Bul.1763 DRV_B_TSCALE_REF2 MOV Move Source F80:8 -19.55< Dest F80:6 19.55<
0016
END
Page 3
15 14 13 12 11 10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
9 0 0 0 0
8 0 0 0 0
7 0 0 0 0
6 0 0 0 0
5 0 0 0 0
4 0 0 0 0
3 0 0 0 0
2 0 0 0 0
1 0 0 0 0
0 0 0 0 0 Bul.1763 Bul.1763 Bul.1763 Bul.1763 MicroLogix MicroLogix MicroLogix MicroLogix 1100 1100 1100 1100 Series Series Series Series B B B B
Page 1
(Radix Binary)
15 14 13 12 11 10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
9 0 0 0 0 1 1
8 0 0 0 0 1 1
7 0 0 0 0 1 1
6 0 0 0 0 1 1
5 0 0 0 0 1 1
4 0 0 0 0 1 1
3 0 0 0 0 1 1
2 0 0 0 0 1 1
1 0 0 0 0 1 1
0 0 0 0 0 1 1 Bul.1763 Bul.1763 Bul.1763 Bul.1763 Bul.1763 Bul.1763 MicroLogix MicroLogix MicroLogix MicroLogix MicroLogix MicroLogix 1100 1100 1100 1100 1100 1100 Series Series Series Series Series Series
B B B B B-Analog I B-Analog I
Page 1
(Radix Binary)
--
STATUS
Protection Deny Future Access S:1/14 = No Data File Overwrite Protection Lost S:36/10 = False Mem Module Memory Module Loaded On Boot S:5/8 = 0 Password Mismatch S:5/9 = 0 Load Memory Module On Memory Error S:1/10 = 0 Load Memory Module Always S:1/11 = 0 On Power up Go To Run (Mode Behavior) S:1/12 = 0 Program Compare S:2/9 = 0 Data File Overwrite Protection Lost S:36/10 = 0
Page 1
--
STATUS
Page 2
Offset B3:0
15 14 13 12 11 10 0 0 0 0 0 0
9 0
8 0
7 0
6 0
5 0
4 0
3 0
2 0
1 0
0 0
(Symbol) Description
Page 1
(Radix Binary)
Offset T4:0
EN TT DN 0 0 0
PRE 0
ACC 0
(Symbol) Description
Page 1
Offset C5:0
CU CD DN OV UN UA 0 0 0 0 0 0
PRE 0
ACC 0
(Symbol) Description
Page 1
Offset R6:0
EN EU DN EM ER UL IN FD 0 0 0 0 0 0 0 0
LEN 0
POS 0
(Symbol) Description
Page 1
Offset N7:0
0 0
Page 1
(Radix Decimal)
Offset F8:0
0 19.55
Page 1
MICROLOGIX_1100_MODBUS_RTU_SAMPLE_PRG_REVA.RSS Data File F80 -REF SCALE -Ref scaling for the drive
0 19.55 -9.775
1 19.55 19.55
2 -19.55 19.55
3 9.775 -19.55
4 9.775 0
Page 1
RBL 0 0 0 0
LBN 0 0 0 0
RBN 0 0 0 0
CHN 0 0 0 0
NOD 2 2 3 3
MTO 1 1 1 1
NB 3 3 3 3
TFT 0 0 0 0
TFN 3 0 3 0
ELE 0 0 0 0
SEL BK UC TO CO 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Page 1
MICROLOGIX_1100_MODBUS_RTU_SAMPLE_PRG_REVA.RSS Data File N92 (dec) -DRV A DATA -ABB Drive A Control Data
0 4657 1150
1 0 20000
2 0 10000
3 0 0
4 0 0
5 0 0
6 0 0
7 0 0
8 0 0
9 0 0
Page 1
(Radix Decimal)
MICROLOGIX_1100_MODBUS_RTU_SAMPLE_PRG_REVA.RSS Data File N93 (dec) -DRV B DATA -ABB Drive B Control Data
0 4657 1150
1 0 20000
2 0 20000
3 0 0
4 0 0
5 0 0
6 0 0
7 0 0
8 0 0
9 0 0
Page 1
(Radix Decimal)
Page 1
Page 1
DRIVE_B_DATA_40002 DRIVE_B_DATA_40003
Global Global
Page 2
Page 3
Address
Instruction
Description
Page 1
Group_Name
Description
Page 1