MITSUBISHI Electronic Multi-Measuring Instrument Programming Manual (CC-Link) For ver.
CONTENTS 1. 2. 3. General Description............................................................................................................................... 3 Specification .......................................................................................................................................... 4 Configuration Conditions of CC-Link System ........................................................................................ 5 3.1 Remote net ver.2 mode, remote net addional mode ...
1. General Description This manual describes the programming methods that should be created by the user for monitoring measurement value of the Electronic Multi-Measuring Instrument (called ME96 from here on) with the CC-Link (in remote net ver2 mode or remote net additional mode). In programming, read the following related manuals in addition to this mannual. Table 1.1 Related Manuals Manual Name CC-Link System Master/Local Module User's Manual type QJ61BT11N Manual No.
2. Specification CC-Link specification is shown in Table 2.1 when ME96 is set the “Ver2.00” (ver.2 remote device station). Table 2.1 CC-Link Specification (For Ver2.00) Item Specification CC-Link station type Number of occupied stations Maximum number of stations per master station Transmission speed Remote I/O (RX, RY) Remote register (RWw, RWr) Remote device station (ver.
3. Configuration Conditions of CC-Link System 3.1 Remote net ver.2 mode, remote net addional mode A total of 64 remote I/O stations, remote device stations, local stations, standby master stations, or intelligent device stations can be connected to a single master station. However, the following conditions must all be satisfied.
ME96SSH-MB/SSR-MB (6/n) LEN130391
4. Programming 4.1 Programming Procedure Create a program which executes the “Monitoring of the measurement valus” by following the procedure below: START Parameter setting Set the CPU parameter to start the data link. (Refer to Section 5) Selecting Commands Select the command to transmit to the ME96. (Refer to Section 0) Initial Communication Normal Communication Required In nesessary Initialize the ME96. (Refer to Section 6.2) Transmit and receive the command to monitor the measurement value.
5. Parameter Settings 5.1 Procedure from Parameter Settings to Data Link Startup The following explains the procedure from setting the parameters to stating the data link. 5.1.1 (1) CPU Parameter Area and Master Module Parameter Memory CPU Parameter Area This area is used to set the basic values for controlling the programmable controller system and the network parameters that control the CC-Link system. (2) Master Station Parameter Memory This area stores the network parameters for the CC-Link system.
5.2 Example of Parameter Settings with GX Developer (Remote net ver.2 mode) This section explains the parameter settings using the GX Developer. For more details on the GX Developer operation, refer to the GX Developer Operating Manual. The explanations in this section are based on the following example of the system configuration. Master station (X00 to X1F) (Y00 to Y1F) 5.2.
Setting Item No.of boads in module Start I/O No Operational settings Type Mode All connect count Remote input (RX) Remote output (RY) Remote register (RWr) Remote register (RWw) Special relay (SB) Special register (SW) Retry count Automatic reconnection station count Standby master station No. PLC down select Scan mode setting Delay information setting Station information settings Example for settings Description Set the "No. of boards in module " for which the network parameters are to be set.
POINT (1) For the automatic refresh parameter setting, set the start device only. Devices are automatically assigned until the last station number including reserved stations and occupied stations. In the example of the system configuration in this section, the last station number is "2". Therefore, total of remote I/O points is 256 points (128 x 2 = 256) and total of remote registers points is 64 points (32 x 2 = 64).
《Example for Station information settings》 Setting Item Station type Expanded cyclic setting Description Set the station data. Example for settings Ver2. Remote device station Set the “ver2.00” in Setting Menu 7 of ME96. octuple ME96 cannot use other than “octuple”. Remarks Number of occupied Set the “Occupies 1 station” in case of Occupies 1 station stations * the ME96. Remote station points 128 points Set the “128 points” in case of the ME96.
6. Communication Between the Master Station and ME96 6.1 Communication Guideline There are three communication statuses (Initial Communication, Normal Communication, Error Communication) between the Master station and ME96. In the normal communication, alarm status and digital input status of ME96 can be monitored using bit data (remote input RX). Furthermore, the following can be performed by using remote input, remote output and remote registers. ・ Monitoring by Pattern ・ Monitoring by Command(1H).
6.2 Initial Communication Initial communication is performed at the beginning after the power supply is turned on or hardware is reset. Refer to section 7.1 about the remote input RX and the remote output RY. ① RX(n+7)8 (Initial data processing request flag) ③ ④ ② RY(n+7)8 (Initial data setting completion flag) ③ RX(n+7)B (Remote READY) ①After the power supply is turned on, or hardware is reset, the initial data processing request flag is turned on by ME96.
6.4 Normal Communication After initial data processing is complete, allows the monitoring by pattern, monitoring by command(1H) and setting by command(2H). 6.4.1 Monitoring by Pattern Up to 16 mesuring values can be monitored by setting a bit of RY. Measuring values which can be monitored have been already grouping in ME96 in advance. Therefore, select the necessary group in a bit of RY. (Refer to section 7.1.
6.4.2 Monitoring by Command(1H) Up to 8 measuring values can be monitored by setting the unique codes (called unit No., group No. and channel No.). RY(n+1)0 (Monitor pattern setting flag = P00) Remote register (RWw) ① Writes to master station RX(n+1)0 (Setting completion flag) ⑤ ③ Remote register (RWr) (1) ④ ② Data = 00h ③ Data is always updating. ⑤ Data = 00h Start of monitor ①Writes the Unit No., group No and channel No. for measuring items to be monitored to remote registers(RWw).
6.4.3 Setting by Command(2H) A setting item of ME96 can be set by setting the unique codes (called unit No., group No. and channel No.) and setting data. RY(n+1)0 (Monitor pattern setting flag =P00) Remote register (RWw) ① Writes to master station RX(n+1)0 (Setting completion frag) Remote register (RWr) (1) ④ ② ⑤ ③ Data = 00h ③ Response data Data = 00h ⑤ Setting ①Writes the Unit No., group No, channel No. and setting data to remote registers(RWw).
7. Remote I/O and Remote Register 7.1 Remote Input RX, Remote Output RY The remote input RX and remote output RY are used to communicate for bit data between the master station and ME96. 7.1.1 Remote input RX The allocation of the remote input RX of ME96 is shown in the table below. Device No.
(1) 1) Relationships between programmable controller CPU, master module and ME96(RX) 1) The input status of ME96 is stored automatically (for each link scan) in the master station's "remote input RX" buffer memory. 2) The input status stored in the "remote input RX" buffer memory is stored in the CPU device set with the automatic refresh parameters.
7.1.2 Remote Output RY The allocation of the remote output RY of ME96 is shown in the table below. Device No.
(1) 1) Relationships between programmable controller CPU, master module and ME96(RY) 1) The on/off data of the CPU device set with the automatic refresh parameters is stored in the "remote output RY" buffer memory. 2) Remote output RY is automatically set to on/off (for each link scan) according to the output status stored in the "remote output RY" buffer memory.
7.2 Remote Register (RWr, RWw) The remote registers RWr and RWw are used to communicate word data between the master station and ME96. Because it occupiers 1 station(Expanded cyclic setting: octuple), the remote registers RWr and RWw each have 32 words in length. For monitoring by pattern, it is not necessary to use remote registers(RWw). Selected measuring values which are set a bit of RY are stored in remote registers(RWr).
(1) 1) Relationships between programmable controller CPU, master module and ME96(RWr) 1) The remote registers RWr data of a remote device station is automatically stored in the "remote registers Rwr" buffer memory of the master station. 2) The remote registers RWr data of ME96 stored in the "remote registers RWr" buffer memory is stored in the CPU device set with the automatic refresh parameters. Programmable controller CPU ME96 (Station number1) ME96 (Station number2) Master module Device No.
(2) 2) Relationships between programmable controller CPU, master module and ME96(RWw) 1) The transmission data of the CPU device set with the automatic refresh parameters is stored in the "remote registers RWw" buffer memory. 2) The data stored in the "remote registers RWw" buffer memory is automatically sent to the remote registers RWw of each remote device station. Programmable controller CPU ME96 (Station number1) ME96 (Station number2) Master module Device No.
7.2.1 When Monitoring by Pattern The following table shows correspondence between RY and grouped measuring items. Table 7.1 Correspondence between RY and grouped measuring items device. RWr00 RWr01 RWr02 RWr03 RWr04 RWr05 RWr06 RWr07 RWr08 RWr09 RWr0A RWr0B RWr0C RWr0D RWr0E RWr0F RWr10 RWr11 RWr12 RWr13 RWr14 RWr15 RWr16 RWr17 RWr18 RWr19 RWr1A RWr1B RWr1C RWr1D RWr1E RWr1F Group format P08 RY(n+1)8 P09 RY(n+1)9 P10 RY(n+1)A Phase 1 current (Inst.)[A] Phase 1 current demand (Inst.
(1) Group format ① For group format ①, Up to 8 measuring items can be monitored per a group. Measuring items are expressed in 4 words. Group format ① b15 b8 b7 b0 RWr00 Channel No. Group No. RWr01 Index number 00h RWr02 Low data RWr03 High data ME96 returns fixed data determined for each measuring items. (About fixed data, refer to Table 7.2 to Table 7.12) (Example:When selected phase 1 current (Inst), channel No.is 21h, group No. is 01h.) RWr04 Channel No.
(2) Group format ② For group format ②, Up to 16 measuring items can be monitored per a group. Measuring items are expressed in 2 words. However, it is necessary to be multiplied by using Table 7.22 because there is no multiplying factor data .
7.2.2 When Monitoring by Command(1H) Up to 8 measuring values can be monitored by setting the unit No., group No. and channel No. to remote registers(RWw). Monitor pattern setting flag(RX(n+1)0) is used to send the command. (For details, refer to section 6.4.2) The command can be sent only when the remote READY(RX(n+7)B) is ON. 1H Data Monitor Remote register RWw(Programmable controller→ME96) b15 b8 b7 Unit No. Remote register RWw(ME96→Programmable controller) b15 b0 b7 Channel No. Group No.
Table 7.2 Group Channel List (1/11) Unit No.
Table 7.3 Group Channel List (2/11) Unit No.
Table 7.4 Group Channel List (3/11) Unit No.
Table 7.5 Group Channel List (4/11) Unit No.
Table 7.6 Group Channel List (5/11) Unit No.
Table 7.7 Group Channel List (6/11) Unit No.
Table 7.8 Group Channel List (7/11) Unit No.
Table 7.9 Group Channel List (8/11) Unit No.
Table 7.10 Group Channel List (9/11) Unit No.
Table 7.11 Group Channel List (10/11) Unit No.
Table 7.12 Group Channel List (11/11) Unit No.
7.2.3 When Setting by Command(2H) Settings of ME96 can be set by communication. Monitor pattern setting flag(RX(n+1)0) is used to send the command. (For details, refer to section 6.4.2) The command can be sent only when the remote READY(RX(n+7)B) is ON. 2H Data Set Remote register RWw(Programmable controller→ME96) b15 b8 RWw00 Group No. RWw01 Index number b7 Remote register RWw(ME96→Programmable controller) b15 b0 0H b8 b7 b0 2H RWr00 Channel No. Group No. Channel No.
Table 7.
3P3W or 1P2W Set a direct voltage value (Ex. 110V, 220V etc.). It is set “Direct input”, and set the primary voltage which is transmitted as the direct input voltage. Set within the range of from 60V to 750000V. It is set “Using VT”, and set the primary voltage which is transmitted. From the most significant digit to 3 figures can be freely set up in the range. 1P3W 110V or 220V is valid only. *3: Effective value of primary voltage(L-N) is follows. 3P4W Set a direct voltage value (Ex.
7.2.4 Data format of Monitoring by Command(1H) and Setting by Command(2H) Table 7.14 Data Format (1/8) Data Format ① Data Measurement Items Current, Voltage, Active power, Reactive power, Apparent power, Power factor, Frequency, etc.
Table 7.15 Data Format (2/8) Data Format ② Data Measurement Items Active energy, Reactive energy, Apparent energy, Operation time, etc. b15 b8 b7 b0 Multiplying Index number Numerical value Low data High data High data b31 Low data b24 b23 b16 b15 b8 b7 b0 Format② Numerical value: 32-bit integer with a sign However, the effective numerical value is 0 to 999999(0H to F423FH) Data changes 999998 → 999999 → 0 → 1 → …. (Operation time stops at 999999.
Table 7.16 Data Format (3/8) Data Measurement Items Active energy, Reactive energy, Apparent energy, (unit fixed) Data Format ③ b15 b8 b7 b0 Multiplying factor Index number Numerical value Low data High data Format③ High data b31 Low data b24 b23 b16 b15 b8 b7 b0 Numerical value: 32-bit integer with a sign However, the effective numerical value is 0 to 999999999 (0H to 3B9AC9FFH) Data changes 999999998 → 999999999 → 0 → 1 → ….
Table 7.
Data Alarm state 2 Data Format ④ b15 Unused (00H fixed) Format④ b8 b7 b0 Index number Unused (0000H fixed) Low data High data High data b31 b24 b23 b16 Alarm state Bit b16 b17 b18 b19 b20 b21 b22 b23 b24 b25 b26 b27 b28 b29 b30 b31 Data Content Upper limit alarm of current (phase 1) Upper limit alarm of current (phase 2) Upper limit alarm of current (phase 3 Upper limit alarm of current (phase N) Upper limit alarm of current (total) Lower li
Table 7.18 Data Format (5/8) Data Format ⑤ Data Setting Items Primary current, Primary Voltage, Secondary current, Secondary Voltage, Frequency, etc.
Table 7.19 Data Format (6/8) Data Format ⑥ Data Setting Items Phase wiring, Time constant for current demand, Interval time, Subinterval time etc.
Table 7.20 Data Format (7/8) Data Format ⑦ Data Setting Items b15 b8 b7 b0 Alarm Item Unused (00H fixed) Index number Low data Format⑦ High data High data b31 b24 b23 Alarm Item 1 Low data b16 b15 Alarm Item 2 b8 Alarm Item 3 b7 b0 Alarm Item 4 Note: The numbers of alarms which can set are 4 items. Data Dec. Hex.
Table 7.
Data Setting Items Data Format ⑧ b15 b8 b7 b0 16bit set register2 Unused (00H fixed) Index number Unused (0000H fixed) Format⑧ Low data High data High data b31 b24 b23 b16 Alarm state <16bit set register 2> Bit b16 b17 b18 b19 b20 b21 b22 b23 b24 Data Content Select of periodic active energy (period 1) (*1) Select of periodic active energy (period 2) (*1) Unusable Unusable Reset of periodic active energy (period 1) Reset of periodic active energy (period 2) Unusable Unusable Re
7.2.5 Multiplying factor The conditions of multiplying factor by setup of each element are shown befow. Table 7.
7.2.6 About Error Occurrence When the command and related data transmitted to ME96 is improper or ME96 is in H/W error, RX(n+7)A (Error status flag) becomes 1(ON), the error code shown in Table 7.23 is returned as reply data. Table 7.23 Error Code Error Description Error Code (Hex.
8. Abbreviations and Special Terms Abbreviations and special terms used in this manual are shown below: Abbreviation and Special Terms Master station Description Remote I/O station Station which controls remote stations and local stations. One station is required for one system. Station with the CPU which can communicate with master station and other local stations. Remote station which deals with bit information only.
9. Program Example 9.1 Program Content This program example is assumed the system configuration in below. In the program, at first, the parameters of the linked number and station information are set, and the data link with the parameter of buffer memory startes up. Next, the reading data shown in below is monitored continuously. Also, this program is made by using “SW8D5C-GPPW GX Developer”.
9.3 Parameter Settings Parameter settings are set as following with GX Developer. 9.3.1 Network Parameter Settings and Auto Refresh Parameter Settings The following is shown CC-Link network parameter settings and auto refresh parameter settings.
9.3.2 Operational Settings Operational settings are as follows. 9.3.3 Station Information Settings Station information settings are as follows.
9.
Items Station number 1 Received data Station number 2 Contents Total reactive Multiplying factor, 00h power Numerical value Multiplying factor, 00h Total power factor Numerical value Reactive energy Multiplying factor, 00h (import lag) Numerical value Multiplying factor, 00h Phase 1 current Numerical value Multiplying factor, 00h Phase 2 current Numerical value Multiplying factor, 00h Phase 3 current Numerical value Multiplying factor, 00h 1-2 voltage Numerical value Multiplying factor, 00h 2-3 voltage
9.5 Program Example Set the Unit.No., Group No. and Channel No. for monitoring by command(1H). Set the number of ME96.
(62/n) LEN130391
(63/n) LEN130391
(64/n) LEN130391
(65/n) LEN130391
10. Test Mode ME96 has the test mode which the fixed values are replied even if the voltage and current are not input. It can be used to check the communication to programmable controller. 10.1 ME96SSH-MB/ME96SSR-MB (1) Shift to Test Mode Operation of ME96 is necessary. At first, shifts to the setting value confirmation mode from the operation mode. And then, select “9” of menu number, and shifts to the test menu screen. And then, select “1” of menu number, and shifts to the test mode.