30
9.
Modicon Programming
9.1
Modicon PLC Ladder logic example:
The following is an example of a MSTR command to communicate with the G3 inverter:
Modicon PLC Program
Example For Communications
To read or write parameters to / from the G3 inverter using the ladder example above, the MSTR
control registers (as defined by top register number in command block) must be programmed as
described below:
Address
Description
Parameters
40001
MSTR Function
1 = Write Parameters
2 = Read Parameters
3 =
5 = Write Global Data (Frequency, Status, Output
Current, and Output Voltage)
6 = Read Global Data (Frequency, Status, Output
Current, and Output Voltage)
40002
Error Code
read only
40003
Number of consecutive registers
to read or write
1 to 100 decimal (Write)
1 to 125 decimal (Read)
( SEE Note 1. )
40004
Starting Register Address in G3
1 to 5xx (Refer to G3 Communication Registers table)
40005
Destination Node
2 - 17 (Decimal)
40006
Routing Path
1-8
Note1.:
Presently only read from/ write to parameter listed on G3 Communication Register Table
is implemented.
9.2
MSTR Function error
Codes
1
5
40001
40100
M STR
100
2
3
4
5
3
4
5
1
(control reisters)
(start of data address)
(# data registers)
Instruction
A ctive
End w ith
Error
End w ith
N O error
Com m
Com pleted
Initiate M STR