Home

MG40 Series

image

Contents

1. 2 2 4 2 5 MG40 Series J 2 1 2 2
2. MCR WR MCR O1B MG42 ID01 B OK000 MR MG40 Series J 4 9 af ZR wy Is CC Link STA MG42 STA OK000 START 4 1 0 J MG40 Series a
3. i R Ahil R 00AI02 123 4567 1 R CC Link r MG42 r 00B 00BF3 4567 r 5 MG40 Series J 4 1 5 ccunk MRC
4. CC Link 52 CRIILF 3 1 1 MRD 2 2 3 3 CRI LF HDR SEP 1 lt gt 00AF 03B 31D 2 lt gt lt gt lt gt 00A 02C00 lt gt lt gt 03B 14P00 31D 00B02
5. MG41 3 CRP NIC CC Link SAV SAV OK000 MG40 Series J 4 29 MG41 MG42 Cae A CC Link VER 00 MG41 MG42 ID01 MG4
6. 3 2 J MG40 Series 3 3 CC Link CC Link 0 1 0 1 0 IRY PLC MG41 NC t t t t 0 1 0 1 0 IRX MG41 NC PLC t PLC MG41 NC PLC MG41 NC gt PLC PLC O on Aa W N IRY 1 IRX 1 IRX 1 IRY 0 IRX 0 MG41 NC Ss an A W N IR
7. CRP lt gt aR SID a qf wey Ip CC Link MG41 CRP 0 OK000 CRP 1 OK000 ae A CC Link CRP CRP lt gt 0 MG41 CRP CRP 1 MG40 Series J 4 33 MG41 DIP 3H m P NID NID lt gt WR MG41 NID NID 03 4 34 u MG40 Series IP IP
8. DPT 31D 10 12345 MG42 ID31 D 10 12345 OK000 M lt gt K CC Link DPT DPT lt gt DPT OOD MG41 D DPT 00DF11 0000 MG41 D 11 0000 Y CC Link DPS DPS 03B MG42 ID03 B OK000
9. AXU 00A 01 OK000 78 a CC Link AXU AXU lt ID gt 16 2 AXU 00A AXUI00A 00 MG40 Series J 4 43 4 44 J MG40 Series 5 1
10. CMS lt gt 01 01 02 02 16 16 MG42 CMS 01B 05 MG42 ID01 B 5 OK000 SCN lt gt 78 w k a CC Link CMS CMS lt gt 01 01 02 02 16 16 CMS OOA MG41 A CMSI00AE16 16 4 1 4 J MG40 Series
11. 2 2 J 9 TCP 3 MG40 Series 2 3 2 2 1 1 lt gt CTR 1 CR LF REN OK0001CR LF IP 2 lt gt IP 192 168 1 10 NIP 192 168 1 10 CR LF RAN OK0001CR LF
12. 1 2 J MG42 MG42 MG42 MG42 MG42 MG42 gt MG42 MG42 MG42 gt MG42 MG42 gt MG41 Kd J MG41 MG41 MG41 MG41 RICRIILF r Fer fill CR b 01 02 31 A hOB h OCH tO D h 01 O A til 01 B Hh 01 O C Hh 01 D Hh 310 A ith 31 B iif 310 C h 310 D MG40 Series 1 3 MG41 A 5 CRIILE
13. NPN 49153 OK000 mee NPN NPN lt gt 1 65535 20 21 23 80 52023 52024 MG41 NPN NPN 49153 4 40 J MG40 Series A STP af wre YR CC Link MG40 Series AXP AXP GEM lt gt lt gt lt gt 8 lt gt 6 lt gt YYMMDD 6 AXP OOA AXP 00AF12345678 100001 090220 J 4 41
14. 1 HDR 2 02 gt HDR HDR 02 CR LF OK000 2 SEP 0 SEE SEP O0 CR LF OK000 CR LF 2 4 3 1 MOD 1 gt MOD MOD 1 CR LF OK000 CRILLF gt R r 1 R RICR LF 00AI04C00 0 0050 00BI00C00 123 4567 01Al00C00 1 2900 01D 02C00 0 0030
15. IP 39 IS a qf ura8 Y Is IP NIP lt IP gt 1 0 0 1 223 255 255 254 127 x x x 192 168 1 100 WR MG41 NIP 192 168 1 10 OK000 ert 7 imer IP NIP NIP lt IP gt WR MG41 NIP NIP 192 168 1 10 MG40 Series J 4 35 MAC MAC n Ta a RP ome MAC NMC NMC lt MAC gt xx xx xx xx xxixx x 0 9 A E MG41 NMC NMC 00 12 44 CE 3E F5 4 36 U MG40 Ser
16. NPC NPC lt gt WR MG41 NPC NPC 0 MG40 Series J 4 39 1 1023 1024 49151 49152 MG40 TP 1 65535 20 21 23 80 ax AE KN NPN gt 1 65535 20 21 23 80 52023 52024 49154 MG41
17. CC Link 1 1 32 1 1 4 32 ID02 32 Bytes 25 25 100 800 IDO00 IDO00 MG41 32 Bytes ID01 32 Bytes ID02 32 Bytes ID31 32 Bytes CC Link 32 PLC
18. MOD 0 MOD MOD 0 CR LF OK000 CRI LF CFG MG41 MG42 CFG CFG x CRILLF CFG 02 004 110003 210109 CR LF MG41 NE MG42 4 1 2 CMV CMM Pil 4 2 4 J MG40 Series 1 CMM 4
19. CC Link SVZ WR MG42 SVZ 00A MG41 A OK000 SVZ 03 MG42 ID03 OK000 SVZ OK000 fae RES MG40 Series J 4 5 RY CC Link PSS lt gt MG42 PSS 01B 123 2315 MG42
20. 0 CC Link AXM AXM lt gt lt gt lt gt 1 mm X AXM OOA AXMI00A 00001 0002343 00104 1 2343 EE SAGE 104 4 42 J MG40 Series CC Link AXU lt ID gt 16 OL
21. CC Link CMM CMM lt gt lt gt 2 16 4 8 8 BE 44H 16 BS 2 4H lt gt P P WR CMM OOA CMMI00AE3 1 HIY F 4 22 J MG40 Series CMV CMM 1 1 lt 2 lt 3 lt lt 16
22. MCM MCM lt gt lt gt 0 OHE 1 On MG41 MCM MCM 0 4 20 J MG40 Series MG40 5 CU CC Link CTR gt JPN JPN MG41 CTR 1 OK000 ire 7 ate CC Link CTR CTR lt gt
23. 5 NDT 1 NDT 0 NDT 0 CR IILF OK000 CR LF 2 8 J MG40 Series 3 CC Link 3 1 CC Link MG41 NC CC Link CC Link Ver 1 1 CC Link CC Link Ver 1 1 4 1 61 DIP 156 kbps 625 kbps 2 5 Mbps 5 Mbps 10 Mbps DIP RX RY RWr RWw CC Link 2 RX RY
24. ER212 29 gt OK OK 0 ER 2 6 3 OK000 MG40 Series J 1 3 1 4 J MG40 Series 2 2 1 MG41 2 i telnet TCP TCP UDP
25. A2 A4 A5 BO BO B1 B2 CO CO C1 6 2 J MG40 Series MG40 Series Contents 1 1 1 1 2 1 3 2 2 1 2 2 2 3 2 4 2 5 3 3 1 3 2 3 3 4 4 1 4 3 4 4 5 5 1 5 2
26. 14 20 20 21 22 30 CC Link 30 DIP 31 MG40 Series J 6 1 A0 AO A1
27. Bl 1 10 2 5 Bl 1 10 2 20 3 30 4 40 2 40 3 4 CC Link CMV lt gt lt gt gt lt gt 01 1 1 16 16 lt gt 01 1 16 16 lt gt WR MG42 7 7 2 4 h AP CMV 00A 10101 12 3335 MG41 A 01 01 12 3335 OK000 CMV O0B 0101 ne RT erence rere OK000 78 5 F Ri mm
28. MG41 0 1 128 7 8125 MG40 Series J 5 5 5 6 J MG40 Series 6 L 6 1 16 2 0x00 OxFF 00 10 20 30 CC Link A0 DO 6 2 00 00 10 10 12 13
29. F AXUI ID gt U x O O eie w Joo A Jo OJO OIX T ol O 8 O O O x O x O x O x O O om O O O O O O O O x T Co IXIXIXIX x IXIXIXIXIX x IOIO OJOJO O Hl O JOIO ie S XIOIXIO x Ox OIOIOO O x O O 4 2 J MG40 Series 4 2 XX PSS lt a gt SAV a AX a PSS 01B 123 2315 MG42
30. 2 6 J MG40 Series 2 5 2 4 2 5 1 2 4 2 lt P gt 192 168 1 254 1 NGW NGW NGW 192 168 1 254 CR LF OK000 CR LF gt TCP 1 NPC TCP 0 NPC NPC 0 CR LF OK000
31. LCH LCH lt gt LCH OOA MG41 A LCH OOAJ 1 On On m CC Link MG42 31 LCHON MG42 ID31 On OK000 LCHON Off CC Link MG42 01 LCHOFF MG42 IDO Off OK000 LCHOFF 4 1 2 J MG40 Series w T
32. IP gt OK000 ER 6 ER210 ER214 CRP CRP MG40 Series J 2 3 2 4 2 4 1 2 2 1 2 4 2
33. gt gt cc Link MOD lt gt 1 MG41 MOD 1 OK000 counk MOD MOD lt gt MG41 MOD MOD 1 4 4 J MG40 Series
34. WIDE yb ID05 32 Bytes MG40 Series J 5 3 32 bits A 32 bits B B 32 bits C C 32 bits D D 32 bits bit Byte T 6 5 4 3 2 1 0 0 1 0 1 A 2 BH 0 x10 3 C h 1 x10 4 D h 2 x10 3 x10
35. CC Link WR MG42 01 PAUOFF MG42 ID01 Off OK000 PAUOFF MG40 Series J 4 1 1 M ccum LCH lt gt lt gt 0 MG42 LCH 00 1 MG41 OK000 a s tas 3H CC Link
36. TID01 B 123 2315 OK000 P lt gt Ah 00 MG41 01 MG42 01 02 MG42 02 31 MG42 31 DA 00A MG41 A 00B MG41 x4 YV2 y FOB th 00C MG41 214 V2 y tO C Fh 00D MG41 x4 YV2 y tO Dh 01A MG42 010 A Hh 01B MG42 01 OB Hi 01C MG42 01 C 01D MG42 010 D th 31A MG42 31 A 31B MG42 31 B 31C MG42 31 C 31D MG42 31 D MG40 Series J 4 3 4 3
37. 2 2 1 1 PLC MG41 2 IP IP 192 168 1 100 TCP 23 TCP 10023 IP MG41 SW8 ON 192 168 1 100 telnet 3 MG41 login 4 MG41 login MG41 CR LF Password Password 5 MG41 login MG41 CR LLF Password MG411CR LF
38. Designated axis Designated axis Designates the unit Designates the axis All axes targeted All axes 00 All axes for MG41 main unit 01 All axes for MG42 hub unit 01 02 All axes for MG42 hub unit 02 31 All axes for MG42 hub unit 31 00A Axis A for MG41 main unit 00B Axis B for MG41 main unit 00C Axis C for MG41 main unit 00D Axis D for MG41 main unit 01A Axis A for MG42 hub unit 01 01B Axis B for MG42 hub unit 01 01C Axis C for MG42 hub unit 01 01D Axis D for MG42 hub unit 01 31A Axis A for MG42 hub unit 31 31B Axis B for MG42 hub unit 31 31C Axis C for MG42 hub unit 31 31D Axis D for MG42 hub unit 31 The part is abbreviated for commands with no parameters 1 2 E MG40 Series 1 3 Execution Results and Errors When a setting command or acquisition command is sent the MG41 main unit checks the command syntax and parameters and returns the result When a command has been executed When an error has been detected successfully Setting commands After the command has been executed An error is returned the execution results are returned Acquisition commands The acquisition results are returned An error is returned Execution results The results are returned in the fixed length of 5 characters CR LR Example ER212 error o
39. 16 For foreign customers Note This product or technology may be restricted by the government in your country Please make sure that end use end user and country of destination of this product do not violate your local government regulation T 259 1146 45 Magnescale Co Ltd 45 Suzukawa lsehara shi Kanagawa 259 1146 Japan MG40 Series 2015 1 4 146 063 0B 2009 Magnescale Co Ltd
40. MG41 NDT NDT 0 100 MG40 Series J 4 17 4 4 0 MM 7 CC Link OPR lt gt lt gt lt gt lt gt OPR 00A 3 OK000 SDR lt gt lt gt CC Link OPR OPR lt gt lt gt lt gt lt
41. CC Link PAU lt gt MG42 PAU 00 1 MG41 OK000 CC Link PAU PAU lt gt lee re 1 On WR PAU 00A 2 MG41 A PAU 00A 1 On On CC Link MG42 31 PAUON MG42 ID31 On OK000 PAUON Off
42. For further details refer to the 5 Data Formats MG40 Series E 4 15 Memory data output This function is used to output the memory data The data in the memory is output without re calculating it Current values SEBUM Ethernet CC Link mode The command outputs the memory data of the current values Command format Return format Target Examples of use Compatible command MRC Designated axis Data Designated axis MG42 hub unit all axes Transmission MRC 00 Acquire the current value memory data for all the axes for the MG41 main unit Designated axis MN Maximum values Measurement mode Ethernet CC Link The command outputs the memory data of the maximum values Command format Return format Target Examples of use Compatible command J MRA Designated axis Data Designated axis MG42 hub unit all axes Transmission MRA 00 Acquire the maximum value memory data for all the axes for the MG41 main unit Designated axis MA Minimum values Measurement Ethernet CC Link mode The command outputs the memory data of the minimum values Command format Return format Target Examples of use Compatible command MRI Designated axis Data Designated axis MG42 hub unit all axes Transmission MRI 00 Acquire th
43. Woe Le CC Link ADD lt 1 gt lt 2 gt ADD lt 1 gt lt FF 2 gt ADD 00AT O0B OK000 ADD 31AT 31D OK000 ADD 31A OK000 a AF CC Link ADD ADD lt 1 gt lt FF 2 gt WR ADD 00A ADD 00AHI00B ADD 31A ADD 31AHI31D ADD 31A ADD I31Al 4 26 J MG40 Series a im CC Link CFG 00 MG41 01 MG42 ID01 02 MG42 ID02 31 MG42
44. 6 6 1 6 2 OTTAA ATT EEEE EE E EE EEEE E Overview of the Command Snncmssnisnasanninna ann N 1 1 1 1 1 Setting Commands and Acquisition Commands 1 1 1 1 2 Command Classification ccccseesesesessssessssssscscscscsesssssesseseseseseaes 1 1 Command Syntaksi a 1 2 Execution Results and Errors Salen ai 1 3 Ethernet Interfaces ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooe 2 1 Overview of Ethernet Interfaces ki Connection to the Ethernet Interfaces 2 2 1 Connection to the Command Interface Initial Setting Proce dure RR S Setting Examples e jestioessvessissauasdageSeataatdeseues 2 4 1 Connections 2 4 2 Setting the Measurement Conditions 2 4 3 Starting the Measurements 4 ssa sees eesseeseessessesseesstesseeseeseeeee When Both the Command Interface and Data Interface Are Used 2 7 2 5 1 Setting the Measurement Conditions eeeeeeseseeseeeeeeeee 2 7 2 5 2 Starting the Measurements 00 00 cscs tessesseessessesseesstesseesesseeeee 2 8 CC Link Interface ccccccsccccccccccssssssscccccccccccccccscscscccscccseeees 3 1 Overview of CC Link Interface rr 3 1 GELink Address Mab i si ris i 3 2 CC Link Command Transmission SeqUenCtES siisssiisireirssrrsiiiinisiris 3 3 Command Reference cccccccccccssscsscccccccccsssscscscccccccccccccscees 4 1 Listof Cominan
45. CFGI05 04 008 21050A CFG 21 MG42 ID21 CFGI21 E04 008 21210C MG40 Series J 4 27 Oe MAE INI E0 MG41 SAV EIS PA CC Link INI lt gt Bait PEDET TEM MG42 INI 0 OK000 INII 03 1 MG42 TID03 OK000 4 28 J MG40 Series MG41
46. Setup Measurement mode mode The command acquires the comparator group number which has been set Command format Return format Target Examples of use Compatible command CMS Designated axis CMS Designated axis lt Group number gt lt Group number gt 01 Comparator group number 01 02 Comparator group number 02 16 Comparator group number 16 Designated axis Transmission CMS 00A Acquire the comparator group number for axis A for the MG41 main unit Return CMS 00A 16 The group number is 16 None 4 14 E MG40 Series Data request This function is used to re calculate and output the data Since the data request command cannot be used in the latch or pause status use the memory data output command Request data of all axes MEE Ethernet The command re calculates the data and outputs the data of all the axes Command format R Return format Data Target All axes Examples of use Transmission R Return 00A 02 123 4567 omitted Compatible command R Measurement ode Ethernet CC Link Request data of designated axis The command re calculates the data and outputs the data of the designated axis Command format r Designated axis Return format Data Target Designated axis MG42 hub unit Examples of use Transmission 00B Return 00B 3 4567 Compatible command Designated axis r
47. ccum CMV lt HBS gt lt gt CMV lt gt lt gt lt gt lt gt 01 1 1 16 16 lt gt 01 1 16 16 lt gt CMV O00A 0101 CMV 00A 0101 12 3335 12 3335 CMV O0B 0101 CMV 00B 0101 MG40 Series J 4 23 ey Sy a ee 4f z8 wy IS HDR gt 00 01 1 02 2 5 MG41 HDR 01 OK000 imer HDR
48. 128 RWr RWw 16 32 MG40 Series J 3 1 3 2 CC Link 1 MG41 NC gt PLC PLC gt MG41 NC IRX IRY Reserved Reserved Reserved IRX MG41 NC gt PLC IRY PLC gt MG41 NO RDY READY MG41 NC gt PLC MG41 NC gt PLC PLC gt MG41 NC MG41 NC 32 MG41 NC 32 32
49. 16 1 4 x10 5 x10 bitO0 6 x10 bit 7 x10 bit2 bit4 16 1 0 1 2 5 4 J MG40 Series bit Byte 7 6 5 4 3 2 1 0 0 1 5 32bits 3 32bit 0 bit Byte 7 6 5 4 3 2 1 0 0 ID 1 A 2 BB 3 C 4 D 5 6 7 ID ID 0 31 0 lt 1 1 1 lt 2 2 2 lt 3 IIA IIA 15 15 lt lt 16 16 16 lt
50. ID01 AD ERR ERR 28203400 01B 61 28 20 34 00 TD01 B 61 ERR ERR MG40 Series 9 4 31 MG41 2 an x aS A CC Link MG41 CLK lt gt MG41 CLK 081212145632 08 12 12 14 56 32 OK000 etek Cc Link MG41 CLK CLK lt gt MG41 CLK CLK 090228143012 09 2 H 28 H 14 30 12 4 32 J MG40 Series l PEPANTE CRP
51. CRP 1 1 2 MG40 Series J 1 1 1 2 BM CR LF MMM CR LF EHH BEE Mee BMS CR MMM CRIILF CR LF Shey 00 01 02 31 00A 00B 00C 00D 01A
52. HDR lt gt MG41 HDR HDR 01 On 1 MG41 HON OK000 HON ey PUY a Off MG41 HOF OK000 HOF ey SHY a ae 4p wee y 4 24 J MG40 Series IS SEP lt gt MG41 SEP 1 OK000 eae SEP SEP lt
53. ID31 CFG lt gt lt gt lt MAP gt 00 MG41 01 MG42 IDOI 02 MG42 ID02 31 MG42 ID31 wee lt gt 01 32 MG41 MG42 lt gt 000 100 lt MAP gt gt lt ID gt lt gt lt gt 11 MG41 NE 12 MG41 NC 21 MG42 4 lt ID gt 00 31 ID MG41 00 lt gt 00 OF 1 ID CFG CFGl 04 008 110003 21050A 21210C 213106 CFG 00 MG41 CFGI00 E04 008 110003 CFG 05 MG42 ID05
54. MG42 MRC 00 MG41 MN ccLink MRA MG42 MRA 00 MG41 MA CC Link MRI MG42 MRI O0 MG41 MI P P CC Link P P MRP MG42 MRP 00 MG41 P P MP ABS
55. gt 00A MG41 A 00B MG41 B 00C MG41 C 00D MG41 4 YV2 y bh OD OLA MG42 401 OA Hh 01B MG42 01 OB th 01C MG42 01 OC iti 01D MG42 01 OD Hh 31A MG42 31 A 31B MG42 31 OB h 31C MG42 31 OC th 31D MG42 31 D Hh MG40 Series J 5 1 gt 00 16 2 0 lt 1 1 1 lt 2 2 2 lt 3 lt 16 15 15 16 16 IA IAs ss lt gt 1 C A 1I P P P _B ABS lt gt 16 1 7 6 5 4 3 2 1 0 5 T
56. 2 TCP IP 3 MG41 TCP UDP UDP 2 5 2 1 MOD 1 MOD MOD 1 CR LF OK000 CR LF NDT 1 NDT 1 NDT 1 OK000 CR LF
57. CC Link ABS WR MRB MG42 MRB 00 MG41 ABS 5 4 16 J MG40 Series ELIE atwe k NDT lt gt lt gt lt gt 0 10 WR MG41 NDT 1 100 OK000 NDT 0 100 OK000 pe oF NDT NDT lt gt lt gt
58. L OO Q gt 16 1 0 1 2 7 123 4567 0 2900 eee Error Error ee 7 F F 1000 2531 RR EE EE 5 2 J MG40 Series 5 3 TCP UDP
59. 0 which signifies a space SEP command SEP 0 CR LF OK000 CR LF 2 4 3 Starting the Measurements Switching over to the measurement mode After the settings of the measurement conditions have been completed switch over to the measurement mode 1 Use the MOD command to set 1 which signifies the measurement mode MOD command MOD 1 CR LF OK000 CR _LF Acquiring the data lt Example gt Outputting the data of all the axes Rcommand r command 1 Transmit the R command which signifies the request data of all axes R LCR LF Example of the data of all axes 00A 04C00 0 0050 00B 00C00 123 4567 01A O0C00 1 2900 01D 02C00 0 0030 Data format ASCII data Reference CR LF The data request command re calculates the data and outputs it so an error results if there is an axis whose data updating has been fixed by the latch or pause setting 2 6 E MG40 Series 2 5 When Both the Command Interface and Data Interface Are Used While referring to 2 4 Setting Examples make the connection to the command interface and establish the necessary settings 2 5 1 Setting the Measurement Conditions For details on Switching over to the setup mode Acquiring the configuration information and Comparator settings refer to 2 4 2 Setting the Measurement Conditions Setting the gateway a
60. ER 7 nme cosine OPD lt E gt P P ABS MG42 OPD 00A 3 MG41 A P P OK000 NN j ar CC Link OPD OPD lt gt ABS OPD 00B MG41 B OPD 1 MG40 Series J 4 1 3 T EAI ee cc Link
61. Remote input Name IRX Remote output Name IRY Reserved RDY Reserved IRX Interlock MG41 NC gt PLC IRY Interlock PLC gt MG41 NC RDY Remote READY MG41 NC gt PLC Remote register MG41 NC PLC Reserved PLC MG41 NC Station Remote register Name Receive buffer Remote register Name Transmit buffer Receive buffer The data returned from the MG41 NC is stored here Total 32 bytes Transmit buffer The data sent to the MG41 NC is stored here Total 32 bytes When commands are sent or execution results are returned the buffers are used to hold 32 ASCII code characters when data is transferred they are used to hold binary data complying with the binary data format specifications 3 2 E MG40 Series 3 3 CC Link Command Transmission Sequences These steps are taken to transmit the commands using the CC Link interface and acquire the response 0 1 0 1 0 IRY PLC gt MG41 NC 1 1 1 1 Command setting Response Command setting Response completed received completed received 0 1 0 1 0 IRX MG41 NC gt PLC j 1 1 1 Command execution Response Command execution Response completed reception check completed reception check PLC MG41 NC PLC receive buffer Command response Next command response MG41 NC gt PLC The sequence is as follows when viewed from the PLC side 1 a uu F WU N The command is
62. Return format Target Save setting Values Examples of use Compatible command MCV Designated axis lt Value gt Corresponds to output resolution Factory setting Zero Execution results Designated axis Setting Values saved Transmission MCV 01B 123 2315 Set the master calibration value of axis B for the MG42 hub unit ID01 to 123 2315 Return OK000 Successfully completed Designated axis MS lt Value gt Acquire master calibration value Measurement Ethernet CC Link mode The command acquires the master calibration value Command format Return format Target Examples of use Compatible command MCV Designated axis MCV Designated axis lt Value gt Corresponds to output resolution Designated axis Transmission MCV OOA Acquire the master calibration value of axis A for the MG41 main unit Return MCV 00A 100 0000 The master calibration value is 100 0000 None Relocate master calibraiton value Ethernet CC Link Measurement mode The command relocates the master calibration value After the command has been transmitted the wait to go past reference point status is established so initiate the go past reference point operation After the reference point has been passed the master calibration value is relocated Command format Return format Target Examples of use Co
63. 1 0 CMM CMM 1 O CR LF OK000 CRILLF CMV 1 CMV CMVIO0A 0101 0 001 CR LF OK000 CR LF CMV 00A 0102 0 000 CR LF OK000 CR LF CMV 00A 0103 0 001 CR LF OK000 CRIILF CMV 00A 0104 0 002 CRI LF OKO000 CR LF CMV 01D 0101 0 000 OK000 CR LF CMV 01D 0102 0 002 CR LF OK000 CR LF CMV 01D 0103 0 005 CR LF OK000 CR LF CMV O01D 0104 0 010 CRI LF OK000 CRI LF 3 CMS 1 CMS CMS 00A 01 CR LF OK000 CR LF CMS 01D 01 CR LF OK000 CR LF MG40 Series J 2 5 2
64. Compatible command CRP CRP lt Value gt values MG41 main unit Transmission CRP Return CRP 1 None MG40 Series E 4 33 Ethernet station number This function is used to acquire the Ethernet station number The setting is established using the DIP switches on the MG41 main unit Acquire aia Ez The command acquires the Ethernet station number Command format NID Return format NID lt Station number gt Target MG41 main unit Examples of use Transmission NID Return NID 03 Compatible command None 4 34 E MG40 Series IP address This function is used to set and acquire the Ethernet source station IP address The IP address setting is reflected the next time the equipment is started up When an IP address is acquired after its setting has been changed the IP address set before the change is reflected will be acquired Set R The command sets the Ethernet source station IP address Command format NIP lt IP address gt 1 0 0 1 to 223 255 255 254 excluding 127 x x x Factory setting 192 168 1 100 Return format Execution results Target MG41 main unit Save setting values Setting values saved The setting values are saved at the same time as the setting command is executed Examples of use Transmission NIP 192 168 1 10 Return OK000 Compatible command None Acquire SM E aiene The command acquires the Ethernet source station IP address C
65. Level 3 Level 2 Level 1 2 4 E MG40 Series 1 Use the CMM command to set 1 which signifies 4 levels and 0 which signifies the current value CMM command CMM 1 0 OK000 2 Use the CMV command to set the comparator values In this example the comparator values are set to group number 1 CMV command CMV 00A 0101 0 001 OK000 CR LF CMV 00A 0102 0 000 CR LF OKO000 CR LF CMV 00A 0103 0 001 CR LF OK000 CR LF CMV 00A 0104 0 002 CR LF OK000 CRIILF CMV 01D 0101 0 000 OK000 CR LF CMV 01D 0102 0 002 CR LF OK000 CR LF CMV 01D 0103 0 005 CR LF OK000 CR LF CMV 01D 0104 0 010 CR LF OKO000 CR LF 3 Use the CMS command to set the comparator setting group number to be used In this example the comparator group number is set as group number 1 CMS command CMS 00A 01 CR LF OK000 CRIILF CMS 01D 01 CRILLF OK000 CRILLF MG40 Series E 2 5 Setting the data format lt Example gt Setting 2 as the data header type and space as the separator character Data header type 1 Use the HDR command to set 02 which signifies type 2 HDR command HDR 02 OK000 Data axis separator 2 Use the SEP command to set
66. MG41 CTR CTR 2 MG40 Series J 4 21 CMV CMM F a CC Link CMM lt gt gt 0 2 16 1 4 8 2 8 4 3 16 2 lt gt 0 1 2 3 P P MG42 CMM 00A 1 0 OK000 7a 5 5
67. CR LF 49152 1 1023 1024 49151 lt A gt 49154 1 NPN 49154 NPN NPN 49154 CR LF OK000 CR LF MG40 Series J 2 7 TCP 1 2 2 1
68. HIY F CC Link DPR DPR 03B MG42 ID03 B OK000 a CC el DPC EH DPC 03B MG42 ID03 B OK000 MG40 Series J 4 7 CC Link STR STR fave fill lt gt STR 00A MG41 A
69. Ltd and is intended solely for use by the purchasers of the equipment described in this manual Magnescale Co Ltd expressly prohibits the duplication of any portion of this manual or the use thereof for any purpose other than the operation or maintenance of the equipment described in this manual without the express written permission of Magnescale Co Ltd Le mat riel contenu dans ce manuel consiste en informations qui sont la propri t de Magnescale Co Ltd et sont destin es exclusivement a l usage des acqu reurs de l quipement d crit dans ce manuel Magnescale Co Ltd interdit formellement la copie de quelque partie que ce soit de ce manuel ou son emploi pour tout autre but que des op rations ou entretiens de l quipement a moins d une permission crite de Magnescale Co Ltd Die in dieser Anleitung enthaltenen Informationen sind Eigentum von Magnescale Co Ltd und sind ausschlie lich f r den Gebrauch durch den K ufer der in dieser Anleitung beschriebenen Ausr stung bestimmt Magnescale Co Ltd untersagt ausdr cklich die Vervielf ltigung jeglicher Teile dieser Anleitung oder den Gebrauch derselben f r irgendeinen anderen Zweck als die Bedienung oder Wartung der in dieser Anleitung beschriebenen Ausr stung ohne ausdr ckliche schriftliche Erlaubnis von Magnescale Co Ltd 1 16
70. The command sets the number of the port which is to be used by the data interface Command format NPN lt Value gt lt Value gt 1 to 65535 with the exception of numbers 20 21 23 80 52023 and 52024 Factory setting 49154 Return format Execution results Target MG41 main unit Save setting values Setting values saved Examples of use Transmission NPN 49153 Return OK000 Compatible command None Setup Measurement Acquire a Ethernet The command acquires the number of the port used by the data interface Command format NPN Return format NPN lt Value gt 52024 Target MG41 main unit Examples of use Transmission NPN Return NPN 49153 Compatible command None 4 40 E MG40 Series Measuring unit product information This function is used to acquire the product information of the measuring unit which has been connected Acquire Ethernet CC Link mode The command acquires the product information of the measuring unit which has been connected Command format Return format Target Examples of use Compatible command AXP Designated axis AXP Designated axis lt Product code gt lt Production year month day gt lt Serial number gt lt Product code gt Product code 8 characters lt Serial number gt Serial number 6 characters lt Production year month day gt YYMMDD format 6 characters Designated axis
71. Transmission AXP OOA Return AXP 00A 12345678 100001 090220 None MG40 Series E 4 41 Measuring unit maintenance information This function is used to acquire the maintenance information of the measuring unit which has been connected Acquire mode Ethernet CC Link The command acquires the maintenance information of the measuring unit which has been connected Command format Return format Target Examples of use Compatible command AXM Designated axis AXM Designated axis lt Total number of errors gt lt Total number of sliding operations gt lt Total power on time gt lt Total number of errors gt 00000 65534 5 characters lt Total number of sliding operations gt 0000000 3354428 7 characters 1 reciprocation lt Total power on time gt h 00000 65534 5 characters e The number of sliding operations is only a guideline e When the reciprocal distance is less than 1 mm it is not counted as sliding operations When the upper limit value is reached the value will remain unchanged Designated axis Transmission AXM OOA Return AXM 00A 00001 0002343 00104 Number of errors 1 number of sliding operations 2343 reciprocal operations total power on time 24 hours None 4 42 E MG40 Series Measuring unit user information This function is used to set acquire the user infor
72. e Ethernet CC Link The command calls the preset values Command format Return format Target Examples of use Compatibility command PSR Designated axis Execution results Designated axis MG42 hub unit all axes Transmission PSR Call the preset values for all the axes Return OK000 Successfully completed Designated axis RCL 4 6 E MG40 Series Datum point This function is used to set the datum point This function cannot be used when the master calibration function is on It cannot be used for axes for which the axis calculation function has been set Set e aoe Ethernet CC Link The command sets the datum point position Command format DPT Designated axis lt Value gt Return format Execution results Target Designated axis Save setting values Setting values saved Examples of use Transmission DPT 31D 10 12345 Set the datum point of axis D for the MG42 hub unit ID31 to 10 12345 Return OK000 Successfully completed Compatible command M lt Value gt Acquire ae ae Ethernet CC Link The command acquires the value set as the datum point position Command format DPT Designated axis Return format DPT Designated axis lt Value gt Corresponds to output resolution Target Designated axis Examples of use Transmission DPT 00D Acquire the datum point of axis D for the MG41 main unit Return DPT
73. gt OPR 00A OPRI00A 3 ix ti SDR 4 18 J MG40 Series 2 3 EZT mmer cc Link IPR IPR lt gt lt gt 1 0 1 um 2 0 5 um IPR OOA IPR 00A 1 MG40 Series J 4 19 eee CC Link On Off MCM lt gt MG41 MCM 1 OK000 7E w ae 7 mE r CC Link
74. gt MG41 SEP SEP 1 MG40 Series J 4 25
75. 00C Axis C for MG41 main unit 00D Axis D for MG41 main unit 01A Axis A for MG42 hub unit 01 01B Axis B for MG42 hub unit 01 01C Axis C for MG42 hub unit 01 01D Axis D for MG42 hub unit 01 31A Axis A for MG42 hub unit 31 31B Axis B for MG42 hub unit 31 31C Axis C for MG42 hub unit 31 31D Axis D for MG42 hub unit 31 MG40 Series E 5 1 lt Comparator results gt The comparator results are expressed as 2 digit integers from 00 to 16 depending on the number of levels set 0 Measurement value lt Setting value 1 1 Setting value 1 lt Measurement value lt Setting value 2 2 Setting value2 Measurement value lt Setting value 3 15 Setting value 15 S Measurement value lt Setting value 16 16 Setting value 16 S Measurement value lt Output data gt The type of data which is output is indicated by a letter of the alphabet C Current value A Maximumvalue I Minimumvalue P P P value B ABS value lt Error information gt The axis error information is indicated using a hexadecimal 1 digit bit pattern 7 6 5 4 3 2 1 0 XR A Reserved always zero Level alarm Speed alarm No error no alarm Speed alarm is occurring Level alarm is occurring Speed alarm and level alarm are occurring lt Reference point information gt The reference point detection status is indicated using a hexadecimal 1 digit bit pattern 0
76. 1 1 2 27 Y F renasnsni iik i EEEE 1 1 122 EH PE cdi dissin Ao 1 2 1 3 1 3 2 2 1 2 1 177R y VI T r RMR ererirrririirsrririireesririesrisrersrrss 21 2 2 2 2 2 2 1 kk 2 2 2 3 PREFE eseeseseessessseessesstetsssestenssssereosenseesoecntossrsteoessteceossreosesseree J3 E E EE E EEIE E EE E A SEAT E E 2 4 2 2 4 Dect DEE DT A A EAA ES EE A E E 2 4 2 4 3 R CN Bie Bivins sre ie eoa oes dv 2 6 2 5 2 7 2 5 l KK Ke 2 7 2 5 2 2 8 3 CC Link i 3 1 3 1 CC Link ia 3i 38 2 OCGcLink 9 2 3 3 OMNMk KK KK 3 3 U FA E AA E A E E 4 1 HM a a a E EE AE E 4 1 422 SPF DTD A EA E E EE i 4 3 aa PELET aea a e e EO EEA EE E 4 4 tA ME TT T eea a eine 4 18 5 i 5 1 5 1 ccc ccceccececscecscscsetscecesscsesssecevsvacseneseeevacees 5 1 5 2 5 1 Bede 5
77. Connections Establish the TCP connection from the software 1 Make the connection to the command interface Refer to 2 2 1 Connection to the Command Interface 2 Establish the connection settings given below Protocol TCP IP address Same as for the command interface Port number Port number designated by the command 3 gt Make the connection to the TCP server of the MG41 main unit Reference No connections are required if UDP has been selected as the protocol When UDP is selected prepare to receive at the designated port number 2 5 2 Starting the Measurements Switching over to the measurement mode After the settings of the measurement conditions have been completed switch over to the measurement mode 1 Use the MOD command to set 1 which signifies the measurement mode MOD command MOD 1 CR OK000 CRI LF Starting the data transmission Set transmission start using the data transmission control settings NDT command 1 Use the NDT command to set 1 which signifies transmission start NDT 1 CR LF OK000 CR LF When the data output control command is sent the data is sent continuously from the data interface so the necessary processing must be performed by the software The data sent is in the binary format For details refer to 5 Data Formats Stopping the data transmission Set transmission stop using the data transmis
78. Ethernet CC Link The command releases the wait to go past reference point status Command format DPC Designated axis Return format Execution results Target Designated axis Examples of use Transmission DPC 03B Release the wait to go past reference point status for axis B for the MG42 hub unit ID03 Return OK000 Successfully completed Compatible command None MG40 Series E 4 7 Reference point information This function is used to acquire the reference point detection status Acquire Measurement ea Ethernet CC Link The command acquires the reference point detection status Command format Return format Target Example of use Compatible command STR Designated axis STR Designated axis lt Value gt lt Value gt 0 Reference point not detected 1 Wait to go past reference point status 2 Reference point detected Designated axis Transmission STR OOA Acquire the reference point status of axis A for the MG41 main unit Return STR 00A 1 Wait to go past reference point status None 4 8 E MG40 Series Master This function is used to set and execute master calibration This function can be used when the master calibration function is on MCM command Measurement Set master calibration value kai Ethernet CC Link The command sets the master calibration value Command format
79. Numbers in the 20 s Ethernet communication related errors 20 Network Setting Error There is a problem in the network settings 21 Connection Error Command Connection with the command interface has failed Interface 22 Connection Error Data Interface Connection with the data interface has failed Numbers in the 30 s CC Link communication related errors 30 Setting Error One or more station number setting switches or transmission speed setting switches have been set outside the range of specifications Communication Error Communication has timed out A disconnected cable broken cable or equipment failure may be to blame MG40 Series E 6 1 Numbers in the A0 s Main unit hardware related errors Communication timeout Communication error Communication has timed out A disconnected cable broken cable power supply trouble or equipment failure may be to blame There is an error in what has been communicated Noise cable trouble or an equipment failure may be to blame Power supply error The supply voltage is insufficient Check the power supplies Version mismatch The version combination does not enable operation Save setting value memory error The settings were initialized to the factory settings due to errors in the contents of the memory where the setting values were saved Numbers in the BO s Hub unit hardware relat ed errors BO Communication
80. SEP lt Value gt ADD lt Sign 1 gt Primary axis lt Sign 2 gt Reference axis OJO O x i x Acquire Configuration information Acquire Setting Set initialization Save setting values Save setting values Version information Acquire Error information Acquire Internal clock Set A Primary axis DD CFG Target equipment INI Designated axis level gt VER Target equipment CLK lt Value gt lt Initialization ol O O Ol O O O ol ol Ol x x O Acquire Command Set CLK response Acquire Ethernet station number IP address Acquire Set CRP lt Value gt CRP OIOIO O OIXIOIX OIOIOIO OIOIOIO ww i wn Acquire MAC address Gateway address Acquire Set NIP lt IP address gt NIP NMC NGW lt Address gt OJO O x A wn Acquire Subnet mask Set Acquire Data transmission Set NGW NSM lt Subnet mask gt NSM protocol Acquire Data transmission Set NPC lt Value gt NPC port number Acquire Measuring unit product information Acquire Measuring unit maintenance information Acquire Measuring unit Set Q NPN lt Value gt NPN AXP Designated axis AXM Designated axis Designated axis lt User ID gt OOo CO CO CO CO O O x Olx Ol x O x O x O
81. Standby time Length of interval time between data transmissions When the specified value is omitted 10 ms Return format Execution results Target MG41 main unit Save setting values Setting values not saved Examples of use Transmission NDT 1 100 Return OK000 Transmission NDT 0 100 Return OK000 Compatible command None Setup Measurement Acquire pee a ane Ethernet The command acquires the current data transmission status Command format NDT Return format NDT lt Value gt lt Standby time gt lt Value gt 0 Transmission stopped 1 Transmission underway lt Standby time gt ms 10 to 1000 Target MG41 main unit Examples of use Transmission NDT Return NDT 0 100 Compatible command None MG40 Series E 4 17 4 4 Setup Commands Output resolution This function is used to set and acquire the output resolution A value lower than the input resolution cannot be set for the output resolution When the output resolution has been set Preset Datum point Master calibration value Comparator value Comparator group number Pause status and Latch status will be cleared When STD2 serves as the Area of use setting the value in parentheses is used as the output resolution setting The scale differs between JPN STD1 and STD2 When the setting has been established for an area with a different scale the setting values related to the output resolution will be restored to the fac
82. for the MG42 hub unit ID31 Return OK000 Successfully completed Compatible command Designated axis LCHON Latch Off Measurement ogla Ethernet CC Link Compatible command only The command releases the latch status Command format None Return format Execution results Target Single axis MG42 hub unit all axes Examples of use Transmission 01 LCHOFF Set latch to Off for all the axes for the MG42 hub unit ID01 Return OK000 Successfully completed Compatible command Designated axis LCHOFF 4 12 E MG40 Series Output data This function is used to set and acquire the types of output data to be acquired by the data request command Set output data Setup Measurement R TENN mode mode The command sets the type of data to be output by the data request command Command format Return format Target Save setting values Examples of use Compatible command OPD Designated axis lt Value gt lt Value gt Current value Factory setting Maximum value Minimum value Peak to peak value ABS value Execution results Single axis MG42 hub unit all axes Setting values saved Transmission OPD 00A 3 Output the peak to peak value for axis A for the MG41 main unit Return OK000 Successfully completed None Acquire output data Setup Measurement aeli mode
83. information This function is used to acquire the error information The errors listed in the log but not yet sent are sent in sequence starting with the latest one Acquire NR ie eae Ethernet CC Link The command acquires the error information Command format ERR Return format ERR lt Date time of occurrence gt lt Area of occurrence gt lt Error code gt ERR When there are no errors which have yet to be sent DDHHMMSS format 8 characters lt Area of occurrence gt Target equipment code or designated axis code 5 characters Refer to 6 Error Codes 2 characters Target Entire system Examples of use Transmission ERR Return ERR 28123456 01 AO An AO error occurred in MG42 hub unit IDO1 at 12 hours 34 minutes 56 seconds on 28th Transmission ERR Return ERR 28203400 01B 61 A 61 error occurred in axis B for hub unit ID01 at 20 hours 34 minutes 00 seconds on 28th Transmission ERR Return ERR No error Compatible command None MG40 Series E 4 31 internal clock This function is used to set the clock inside the MG41 main unit and acquires its information With this product the year must be indicated using two digits Setup 7 Set Ethernet CC Link The command sets the clock inside the MG41 main unit Command format CLK lt Value gt Return format Execution results Target MG41 main unit Examples of use Transmission CLK 08121
84. mode The command acquires the type of data to be output by the data request command Command format Return format Target Examples of use Compatible command OPD Designated axis OPD Designated axis lt Value gt lt Value gt Current value Maximum value Minimum value Peak to peak value ABS value Single axis Transmission OPD 00B Acquire the output data of axis B for the MG41 main unit Return OPD 1 The output data is the maximum value None MG40 Series E 4 13 Comparator group number This function is used to select and acquire the comparator group number to be used Set Setup Measurement A mod node Ethernet CC Link The command sets the comparator group number to be used Command format Return format Target Save setting values Examples of use Compatible command CMS Designated axis lt Group number gt lt Group number gt 01 Comparator group number 01 Factory setting 02 Comparator group number 02 16 Comparator group number 16 Execution results Designated axis MG42 hub unit all axes Setting values saved Transmission CMS 01B 05 Set the comparator group number for axis B for the MG42 hub unit ID01 to 5 Return OK000 Successfully completed Designated axis SCN lt Group number gt Acquire Ethernet CC Link
85. the command has been input successfully the following is returned OK000 CR LF Setting the IP address 2 Refer to the example given below and set the IP address that corresponds to the network which will be used lt Example gt When setting the IP address to 192 168 1 10 Input the following command NIP 192 168 1 10 CR LF sivas When the command has been input successfully the following is returned OKO000 CR LF This now completes the initial settings There is no need to set again the area where the system is to be used unless the settings have been initialized The new IP address setting will be reflected the next time the unit is started up lt Concerning command return errors gt Ifa return starting with ER is sent instead of OK000 after a command has been sent it means that an error has occurred Refer to 6 Error Codes Return Description of error Checkpoint ER210 Possible command recognition error Are the command format and its alphabet letters correct ER214 Possible parameter error Is the numerical value following the equals sign correct Reference If a return is not sent even when a command has been sent it is possible that the no response has been set as the command response When response is set using the command response command CRP a return will be sent CRP command MG40 Series E 2 3 2 4 Setting Exam
86. timeout Communication has timed out A disconnected cable broken cable power supply trouble or equipment failure may be to blame Bl Communication error There is an error in what has been communicated Noise cable trouble or an equipment failure may be to blame B2 Power supply error The supply voltage is insufficient Check the power supplies Numbers in the CO s Measuring unit related errors CO Communication error Measuring unit has detected an error in the communication system Cl 6 2 E System error Measuring unit has detected system trouble MG40 Series A Magnescale Co Ltd ASPENS SE ASE AT BA FB HY SE EA SR FRE BES AS A AT i A SEA IRAP R 2 Magnescale Co Ltd WJA BHY ER iil Bice The material contained in this manual consists of information that is the property of Magnescale Co
87. 00D 11 0000 The datum point of axis D for the MG41 main unit is 11 0000 Compatible command None Store datum point offset value Ethernet CC Link This stores the datum point offset value After the command has been transmitted the wait to go past reference point status is established so initiate the go past reference point operation After the reference point has been passed the datum point offset value is stored in the memory Command format DPS Designated axis Return format Execution results Measurement mode Target Designated axis Examples of use Transmission DPS 03B Save the datum point offset value for axis B for the MG42 hub unit ID03 Return OK000 Successfully completed Compatible command None Relocate datum point besser ea Ethernet CCLink The command relocates the datum point position After the command has been transmitted the wait to go past reference point status is established so initiate the go past reference point operation After the reference point has been passed the datum point position is relocated Command format DPR Designated axis Return format Execution results Target Designated axis Examples of use Transmission DPR 03B Relocate the datum point for axis B for the MG42 hub unit ID03 Return OK000 Successfully completed Compatible command None Release wait to go past reference point status ee
88. 2 ID02 MG42 ID31 VER lt gt WY RAS at 00 MG41 01 MG42 ID01 02 MG42 ID02 31 MG42 ID31 lt gt MG41 MG42 VER 00 VERI00 S010000 F010100 P010000 B122 4 30 J MG40 Series 78 w ae 7 CC Link ERR ERR lt gt lt gt lt gt ERR lt gt DDHHMMSS 8 lt gt 5 lt gt 6 2 ERR ERR 28123456 01 A0 28 H 12 34 56 MG42
89. 2145632 Set the time to 14 hours 56 minutes 32 seconds on December 12 2008 Return OK000 Compatible command None Setup Measurement marae mode Ethernet CC Link Acquire The command acquires the current time of the clock inside the MG41 main unit Command format CLK Return format CLK lt Value gt YYMMDDHHMMSS format Target MG41 main unit Examples of use Transmission CLK Return CLK 090228143012 14 hours 30 minutes 12 seconds on February 28 2009 Compatible command None 4 32 E MG40 Series Command response This function is used to set whether or not the execution results are to be returned in response to each command Even when it is set to no response the response to the CRP command itself is returned Ethernet CC Link mode Set The command sets whether to return the execution results in response to each command Command format Return format Target Save setting values Examples of use Compatible command CRP lt Value gt lt Value gt 0 No response 1 Response Factory setting Execution results MG41 main unit Setting values saved Transmission CRP 0 Return OK000 Transmission CRP 1 Return OK000 None Acquire Setup Measurement mode mode CC Link The command acquires whether or not the execution results are to be returned Command format Return format Target Examples of use
90. 3 PRM heer or Se ne OR eR one ee eee 6 1 l ref AS Ne 6 1 62 Sep Pe dni ieee 6 1 J i ii J MG40 Series 1 1 1 PLC MG40 MG40 1 1 1 MG41 MG41 MG41 MG41
91. Designated axis lt Value gt x O O Acquire PSS Designated axis Call Set PSR Designated axis DPT Designated axis lt Value gt Acquire DPT Designated axis Store datum point offset value DPS Designated axis Relocate datum point DPR Designated axis Release wait to go past reference point status Acquire Set master calibration value DPC Designated axis Designated axis MCV Designated axis lt Value gt Acquire master calibration value MCV Designated axis Relocate master calibration value Set pause MCR Designated axis Designated axis value gt STA Designated axis PAU lt Setting x x x x 0 o 0 ls x x Acquire pause status Set latch PAU Designated axis LCH Designated axis value gt lt Setting ol O Ol O Acquire latch status Set output data LCH Designated axis x x x O O O 4 4 Acquire output data Set CMS Designated axis number gt lt Group OJO OIO OPD Designated axis lt Value gt 4 13 OPD Designated axis 4 13 O Acquire Request data of all axes CMS Designated axis Ol O O O Request data of designated axis Current values Designated axis MRC Des
92. ID01 B 123 2315 OK000 P lt gt sta r CC Link PSS PSS lt gt PSS OOA MG41 A PSS 00AF100 0000 100 0000 3 RY CC Link PSR MG42 PSR OK000 RCL 4 6 J MG40 Series On ie Bt AE CC Link DPT lt a gt
93. Information data There are some commands which do not have any parameters Reference It is also possible to establish a setting so that the execution results of the setting commands will not be returned CRP command 1 1 2 Command Classification Command groups Command groups Classification of the commands by purpose or situation Command group Purpose Setup commands Basic settings such as advance preparations for measurements Operation commands Operations and settings while measurements are underway Data request commands Acquisition of measurement result data Command targets Command targets Target of the commands and extent of the effect of the commands Command targets Entire system Measurement axes Measuring unit MG40 Series E 1 1 1 2 Command Syntax Target Transmission Return Setup Entire system Settings mun Execution results commands operation Acquisition mmm nun commands Measurement Settings nan Designated axis CR LF Execution results axes measuring Acquisition mmm Designated axis CR LF MMB Designated axis CR LF unit Data Measurement Acquisition RI CR I LF Data format request axes commands r Designated axis CR Data format iT Command Setting value parameter CR LR Line feed CR LF
94. MCM lt Value gt lt Value gt 0 Off Master calibration is not used 1 On Master calibration is used Target MG41 main unit Examples of use Transmission MCM Return MCM 0 Compatible command None 4 20 E MG40 Series Area of use This function is used to set and acquire the area where the MG40 series is to be used If it is not set it will not be possible to transfer from the setup mode to the measuring mode When the area of use has been set all set values excluding settings for the network and the area of use will be restored to the factory status When STD2 serves as the Area of use setting the value in parentheses is used as the output resolution setting The scale differs between JPN STD1 and STD2 When the setting has been established for an area with a different scale the setting values related to the output resolution will be restored to the factory statuses Setup F Set Ethernet CC Link The command sets the area where the MG40 series is to be used Command format CTR lt Value gt lt Value gt 0 Not set Factory setting 1 JPN This setting must be used if the MG40 series is to be used in Japan 2 STD1 STD2 Return format Execution results Target MG41 main unit Save setting values Setting values saved Examples of use Transmission CTR 1 Return OK000 Compatible command None x Setup Measurement 5 Acquire mode mode Ethernet CC L
95. Magnescales MG40 MG40 Series Measuring System MG40 Series MG40 This manual describes the commands used to create software for establishing the settings for the MG40 series to perform operations and for acquiring data from the series For details on how to use the software created with these commands refer to the operating instructions provided with the software or contact your dealer distributor For details on aspects other than descriptions of the commands such as how to connect and operate the unit refer to the instruction manual provided separately Command Reference Manual MG40 Series MG40 Series OA eR A SEE ENE an R RD ONE EO 1 1 1 1 i Be 1 1 1 kk i i
96. Reference point not detected 1 Wait to go past reference point 2 Reference point detected The data is output at the resolution set for the output resolution using signed 7 digit data with a decimal point and with zeros suppressed A space is used as the plus sign when a value is positive 123 4567 ee S aera 0 2900 When the measuring unit is in the speed alarm or level alarm status the Error characters are output until reset is initiated Error If the measuring result data consist of more than 7 digits F is output as the highest level digit to indicate that an overflow has occurred Use in a range where an F will not be output When 1000 2531 is to be displayed 5 2 E MG40 Series 5 3 Binary data The binary data format is used in the cases below e When the function for continuous data transfer via Ethernet which uses the TCP or UDP protocol is used When data is requested using CC Link Under the binary data format any unit a main unit or hub unit to which even one valid axis is connected is considered as valid and 32 byte fixed length data is used for each unit All zeros are used for the status and data of an axis which is not connected When Ethernet is used Minimum data size 1 valid unit with 1 to 4 valid axes 32 bytes Hub unit ID02 data 32 bytes Maximum data size 25 valid units with 25 to 100 valid axes 800 bytes Main unit ID00 data 32 bytes H
97. STRI00AF1 4 8 J MG40 Series On MCM CC Link MCV lt gt MCV O01B 123 2315 MG42 ID01 B 123 2315 OK000 MS lt gt 78 CC Link MCV MCV lt gt JEE h MCV O0A MG41 A MCVI00AF100 0000 100 0000 ate CC Link
98. T Ox O OIOIOIOIOIOIO OIOIOIOIO O XIX J 4 1 A 3 l CC Link OPR lt gt OPR E MCM CTR lt gt CTR CMM lt gt lt gt 4 18 4 18 4 19 4 20 4 20 NA O O x 7 O N m OIOIOO OIOIOIO P N m T N N lt gt lt gt lt gt CMV Ese fil lt gt lt gt 5 SEP f a INI lt i we cH OI x IOIX I xX O x OIXIO i co bo CRP O O Im e o e IP NIP lt IP gt NIP MAC INMCO OO NGW lt gt NGW NSM lt gt NSM NPC lt gt NPC NPN lt gt NPN AXP HEEM La HE A XP XM
99. Y 1 IRX 1 IRY 0 IRX 0 MG40 Series J 3 3 3 4 J MG40 Series 4 4 1 MOD lt gt O CC Link MOD SVZ PSS lt gt Te iG iS PSS j TIET ajaja PSR P D x X X IXIX XIXIXIX OI O JO O TOOIOIOIOIOIO gt i NA O JO O IOIOIOIOIOIOIOIO 7 O JO O IOIOIOIOIOIOIOIO Ab x x Eiran HUNN x OIO O OLOO O O JOJO X P P fifi ABS x x x x lx x OO O O OIOIOIOIOIOL CO O JOJO OO CO O JOP O IOIOIOIO 1O MG40 Series NDT lt fifi gt lt gt ND
100. atus set INI 0 To store the initialized settings in the non volatile memory of the MG41 main unit initiate the save setting values operation Save setting values SAV command Set Setup 3 Ethernet CC Link The command initializes the settings Command format Return format Target Examples of use Compatible command INI Designated axis lt Initialization level gt lt Initialization level gt 0 Factory status Excludes network setting 1 Initializes the numerical value setting Preset Datum point Master calibration value Comparator value Comparator group number Execution results Factory status Entire system Initializes the numerical value setting Designated axis MG42 hub unit all axes Transmission INI 0 The entire system is initialized to the factory status Return OK000 Transmission INI 03 1 The numerical value settings of all axes for MG42 hub unit ID03 are initialized Return OK000 None 4 28 E MG40 Series Save setting values This saves the current setting values in the non volatile memory of the MG41 main unit The saved setting values are retained even after the power has been turned off Use caution with the following points since the setting values will be lost when the power of the MG41 main unit is turned off while setting values are being saved When a command response is returned Do not turn off the pow
101. be used by the data interface Set Ethernet The command sets the protocol which is to be used by the data interface Command format NPC lt Value gt lt Value gt 0 TCP Factory setting 1 UDP Return format Execution results Target MG41 main unit Save setting values Setting values saved Examples of use Transmission NPC 0 Return OK000 Compatible command None Setup Measurement Acquire oe Ethernet The command acquires the protocol which is used by the data interface Command format NPC Return format NPC lt Value gt lt Value gt 0 TCP 1 UDP Target MG41 main unit Examples of use Transmission NPC Return NPC 0 Compatible command None MG40 Series E 4 39 Data transmission port number This function is used to set the number of the port which is to be used by the data interface With internet since port numbers 1 to 1023 are generally used by regular internet services and port numbers 1024 to 49151 may have already been registered 49152 or a higher number is usually used as the port number However this does not apply for a network operating inside a company so the MG40 series supports all the port numbers in the range of 1 to 65535 under the IP standards with the exception of numbers 20 21 23 and 80 When an error occurs in the setting command it may be that the port number concerned cannot be used so try a different port number Setup Set Ethernet
102. ccurrence error mode error Execution results OK or error Error level Error code OK Successful completion 0 Successful completion for details on the error codes ER Error occurrence acknowledgment refer to 6 Error Codes 2 Error i Fatal error OK000 successful completion successful completion acknowledgment no error no additional information MG40 Series E 1 3 1 4 E MG40 Series 2 Ethernet Interfaces 2 1 Overview of Ethernet Interfaces The MG41 main unit supports two interfaces with the Ethernet Connection to the command interface must be made without fail Type of interface Protocol Purpose Command transmission Data acquisition reception Command telnet or Possible The ASCII data is successively acquired interface TCP using the data acquisition command Data interface TCPor UDP Not possible Binary data is continuously transferred Use the interfaces corresponding to the specifications of the software to be created When only the e The connections are straightforward command interface is e A simple system can be configured because the data and commands use the used ASCII format The data transfer rate is slower than when the command interface is used together with the data interface When both the e The application must manage two interfaces and ensure that each is best used command interface and according to the prevailing conditions and f
103. ddress Set the gateway address if the network requires that it be set For details on whether it is needed and its setting consult the network administrator lt Example gt Setting 192 168 1 254 1 Use the NGW command to set the gateway address NGW command NGW 192 168 1 254 CR LF OK000 CRIILF Setting the data transmission protocol Set the protocol which is to be used by the data interface lt Example gt Setting TCP 1 Use the NPC command to set 0 which signifies TCP NPC command NPC 0 CR LF OK000 CR LF Setting the data transmission port number Set the port number which is to be used by the data interface First consult with the network administrator and use a port number whose use is permitted Bear in mind that if a port number already being used by the existing network is set by mistake not only will it be impossible to receive data but the operations of the other network devices may be impeded as well Reference Usually 49152 or a higher number is used as the port number Port numbers 1 to 1023 These may have already been reserved by regular internet services Port numbers 1024 to 49151 These may already be used by other systems lt Example gt Setting 49154 as the port number 1 Use the NPN command to set 49154 as the port number NPN command NPN 49154 CR LF OK000 CR LF MG40 Series E 2 7
104. ds SSE 4 1 How to Read the Command Tables sialicsiiiaiiesiia eae titra 4 3 Derati0 GO 4 4 Selup 0 4 18 D ta FormatS asess5esesessesssssessesesi Overview of Data Fottiats i E 5 1 ANGELARNNN visaazesaas idssss ietaaess ataasecaet I 5 1 BADGSOLNNNNNNNNNNNMNNNNNHNNSNHNNNNNNNNININNI ti 5 3 Error CodeS sissssissssscssssssssossssssssssssssesisassssssosasosssossaovssssssesssssses O Overview of Error CodesSs sii RE GE lt 6 1 Table Of Error Cod ESE NN 6 1 E ii E MG40 Series 1 Overview 1 1 Overview of the Commands The term command refers to the language used for the control which is exercised in order for the computer or PLC to instruct the MG40 series to carry out operations or acquire information from the series By using the commands correctly it is possible to establish the MG40 series settings issue instructions for the series to operate and to acquire its statuses measurement results and other information 1 1 1 Setting Commands and Acquisition Commands The setting commands are commands which are used to instruct that settings be established in the MG41 or that operations be performed by the MG41 The acquisition commands are commands which are used to instruct that information or data be acquired from the MG41 Information sent to MG41 Information returned from MG41 Setting commands Setting parameters Execution results Acquisition commands Parameters required for acquisition
105. e minimum value memory data for all the axes for the MG41 main unit Designated axis MI Peak to peak values Measurement Ethernet CC Link mode The command outputs the memory data of the peak to peak values Command format Return format Target Examples of use Compatible command MRP Designated axis Data Designated axis MG42 hub unit all axes Transmission MRP 00 Acquire the peak to peak value memory data for all the axes for the MG41 main unit ABS values MP Measurement Ethernet CC Link mode The command outputs the memory data of the ABS values Command format Return format Target Examples of use Compatible command MRB Designated axis Data Designated axis MG42 hub unit all axes Transmission MRB 00 Acquire the ABS value memory data for all the axes for the MG41 main unit None For further details refer to the 5 Data Formats 4 16 E MG40 Series Data transmission control This function is used to set start or stop for the data transmission and acquire the current transmission status 7 Measurement Ethernet mode The command sets start or stop for the data transmission Command format NDT lt Value gt lt Standby time gt lt Value gt 0 Stop transmission Factory setting 1 Start transmission lt Standby time gt ms 10 to 1000 factory setting 10 ms
106. e setting value of the previous level Example An error will result if 5 is set for level 2 when 10 has been set for level 1 If when the settings are to be changed the setting value is higher than that of the subsequent level all the setting values of the subsequent levels will be canceled Example If when 10 is set for level 1 20 is set for level 2 30 is set for level 3 and 40 is set for level 4 the setting value for level 2 is changed to 40 the setting values for level 3 and 4 will be canceled Setup Set Ethernet CC Link The command sets the comparator values Command format CMV Designated axis lt Group number gt lt Level number gt lt Value gt lt Group number gt 01 Group 1 to 16 Group 16 lt Level number gt 01 Level 1 to 16 Level 16 There are no factory lt Value gt Corresponds to output resolution digit setting cleared settings when no value is input Return format Execution results Target Designated axis MG42 hub unit all axes Save setting values Setting values saved Examples of use Transmission CMV 00A 0101 12 3335 Set 12 3335 for group number 01 and level number 01 of axis A for the MG41 main unit Return OK000 Transmission CMV 00B 0101 Clear the comparator setting value for group number 01 and level number 01 of axis B for the MG41 main unit Return OK000 Compatible command No
107. ed axis Input the designated axes by referring to the information provided below Input the characters inside the brackets as well Se ae Designates the unit Designates the axis All axes targeted All axes 00 All axes for MG41 main unit 01 All axes for MG42 hub unit 01 02 All axes for MG42 hub unit 02 31 All axes for MG42 hub unit 31 00A Axis A for MG41 main unit 00B Axis B for MG41 main unit 00C Axis C for MG41 main unit 00D Axis D for MG41 main unit 01A Axis A for MG42 hub unit 01 01B Axis B for MG42 hub unit 01 01C Axis C for MG42 hub unit 01 01D Axis D for MG42 hub unit 01 31A Axis A for MG42 hub unit 31 31B Axis B for MG42 hub unit 31 31C Axis C for MG42 hub unit 31 31D Axis D for MG42 hub unit 31 MG40 Series E 4 3 4 3 Operation Commands Operation mode This function is used to switch between the setup mode and measurement mode and acquire the current statuses Setup Measurement Set Ss Ethernet CC Link The command is used to switch between the setup mode and measurement mode Command format MOD lt Operation mode gt lt Operation mode gt 0 Setup mode Factory setting 1 Measurement mode Return format Execution results Target MG41 main unit Save setting values Setting values not saved Examples of use Transmission MOD 1 Set the measurem
108. ent mode Return OK000 Successfully completed Compatible command None Setup Measurement 7 Acquire mode mode Ethernet CC Link The command is used to acquirethecurrent operation mode Command format MOD Return format MOD lt Operation mode gt lt Operation mode gt 0 Setup mode 1 Measurement mode Target MG41 main unit Example of use Transmission MOD Acquire the current operation mode Return MOD 1 Current mode is measurement mode Compatible command None 4 4 E MG40 Series Reset This function is used to set the measurement values to zero When the speed error status is established it releases the error In the wait to go past reference point status it releases the status However in the wait to go past reference point status for master calibration it does not release this status and a mode error results Set Measurement 3 es Ethernet CC Link This command initiates reset Command format Return format Target Examples of use Compatible command SVZ Designated axis Execution results Designated axis MG42 hub unit all axes Transmission SVZ 00A Reset axis A for the MG41 main unit Return OK000 Successfully completed Transmission SVZ 03 Reset all the axes for the MG42 hub unit ID03 Return OK000 Successfully completed Transmission SVZ Reset all the axes for the system Return OK000 Successfully com
109. er until the command execution results are returned When a command response is not returned Do not turn off the power for at least three seconds after the save setting value command has been transmitted Command response CRP command Save setting values The command saves the setting values mode Command format SAV Return format Execution results Target Entire system Save setting values Setting values saved Examples of use Transmission SAV Return OK000 Compatible command None MG40 Series Ethernet CC Link E 4 29 Version information This function is used to set and acquire the version information of the MG41 main unit MG42 hub unit Setup Measurement Acquire mode mode Ethernet CC Link The command acquires the version information Command format VER Target equipment J Target equipment 00 MG41 main unit O1 MG42 hub unit IDOI 02 MG42 hub unit ID02 31 MG42 hub unit ID31 Return format VER lt Version number gt Target equipment 00 MG41 main unit 01 MG42 hub unit IDOI 02 MG42 hub unit ID02 Bl MG42 hub unit ID31 lt Version information gt Version information Target MG41 main unit MG42 hub unit Examples of use Transmission VER 00 Return VER 00 S010000 F010100 P010000 B122 Compatible command None MG40 Series 4 30 E Error
110. eries E 4 25 Axis calculation function This function is used to set and acquire the axis calculation The axis calculation function can be set for axes which satisfy two conditions that is to say they must be in the same unit and they must have the same input resolution The calculation results are output as the primary axis data The axis which has been set as the primary axis cannot be set as the reference axis To clear the axis calculation setting only the plus sign and axis labels are sent Neither the datum point function nor the master calibration function can be used for an axis which has been set as the primary axis Reset Preset Datum point function Master calibration function Start Pause Latch Output data Comparator functions Data request Memory data output and Output resolution command cannot be used for an axis which has been set as the reference axis When the axis calculating function has been set Preset Datum point Master calibration value Comparator value Comparator group number Pause status and Latch status will be cleared Set Ethernet CC Link The command sets the axis calculation Command format ADD lt Sign 1 gt Primary axis lt Sign 2 gt Reference axis ADD Primary axis Clear the settings lt Sign 1 gt lt Sign 2 gt Minus There are no factory Primary axis Reference axis Axis labels settings Return format Execution resul
111. et to Start and then acquire the peak value 5 1 Overview of Data Formats Data format refers to the format in which the data is output in the following cases Data format ASCH data Data returned when the data request command is sent Binary data e Data transmitted when the function for continuous data transmission via Ethernet is used e Remote registers in CC Link 5 2 ASCII Data The ASCII data format is used for the responses given to the data request and memory data output commands The data of single axis is configured as shown below Header Datal CR LF The data of a multiple number of axes is configured as shown in the example below For 3 axes Header 1 Data 1 Axis separator Header 2 Data 2 Axis separator Header 3 Data 3 CR LE The header contents are selected using the HDR data header command and the axis separators by the SEP separator character command Header type Header specification Example None No headers are output No headers are output Type 1 lt Axis label gt 00Al 03B 31D Type 2 lt Axis label gt lt Comparator results gt lt Output data gt 00Al02C00 lt Error information gt lt Reference point information gt 03B 14P00 31D 00B02 lt Axis label gt The axis label is output as follows 00A Axis A for MG41 main unit 00B Axis B for MG41 main unit
112. icated using a hexadecimal 1 digit bit pattern 5 4 E bit0 Speed alarm bit1 Level alarm bit2 Communication error bit4 Reserved always zero Decimal point position Reference point information The coefficients for converting the measurement result data stored as integers into a length unit are stored here x10 x107 x10 x10 x107 x105 x10 X107 NOUBWN O The reference point detection status is indicated using a hexadecimal 1 digit bit pattern 0 Reference point not detected 1 Wait to go past reference point 2 Reference point detected MG40 Series Axis data bit Byte 7 6 5 4 3 2 1 0 0 1 Axis data 3 32 bit integers in little endian order 3 The measurement results of the axes are stored here using the 32 bit signed little endian order If the error information for the axis status is not 0 it means that an error has occurred so do not use the axis data Supplementary information bit Byte vA 6 5 4 3 2 1 0 0 Hub unit ID 1 Axis A comparator result 2 Axis B comparator result 3 Axis C comparator result 4 Axis D comparator result 5 6 Time stamp 7 Hub unit ID Hub unit ID 0 to 31 Comparator results 0 Measurement value lt Setting value 1 1 Setting value 1 Measurement value lt Setting value 2 2 Setting value 2 Measurement value lt Setting value 3 15 Setting value 15 Measurement value lt Setting value 16 16 Setting val
113. ies NGW gt 1 0 0 1 223 255 255 254 127 x x x ig RY YA nS S 192 168 1 1 WR MG41 NGW 192 168 1 1 OK000 NGW NGW lt gt MG41 NGW NGW 192 168 1 1 MG40 Series J 4 37 EY SG f fs NSM
114. ignated axis Maximum Values MRA Designated axis Minimum values MRIIDesignated axis Peak to peak values MRP Designated axis ABS values Set MRB Designated axis NDT lt Value gt lt Standby time gt OIOIOIOIOIOI Acquire NDT O List of setup commands Output resolution Set OPR Designated axis lt Polarity gt lt Resolution gt D w z D 3 D ot Setup mode mode O Ethernet CC Link Page O O 4 18 Acquire Input resolution Acquire Master calibration Set function Acquire OPR Designated axis IPR Designated axis CTR lt Value gt O O O O Co ol ol Area of use Set Acquire Set Comparator mode CTR CMM Designated axis lt Target value gt lt Mode gt OIO O O x x x Acquire Comparator value Set CMM CMV Designated axis lt Group number gt lt Level number gt lt Value gt Designated axis O O x Acquire Data header Set data header CMV Designated axis lt Group number gt lt Level number gt HDR lt Header gt oO O x O O FO OJOO O O FO O JOIO x Acquire data header Data axis Set HDR O JO O O JO x separator Acquire Axis calculation Set function
115. in unit Examples of use Transmission HDR Return HDR 01 Compatible command None Data header On Ihana Compatible command only The command sets the data header to type 1 Command format None Return format Execution results Target MG41 main unit Examples of use Transmission HON Return OK000 Compatible command HON Compatible command only The command sets the data header to None Command format None Return format Execution results Target MG41 main unit Examples of use Transmission HOF Return OK000 Compatible command HOF 4 24 E MG40 Series Data axis separator This function is used to set and acquire the axis separator character used when data is to be output Set Ethernet The command sets the axis separator used when data is to be output Command format SEP lt Value gt lt Value gt 0 Space Factory setting 1 Line feed CR LF Return format Execution results Target MG41 main unit Save setting values Setting values saved Examples of use Transmission SEP 1 Return OK000 Compatible command None Setup Measurement Acquire oes sees Ethernet The command acquires the axis separator used when data is to be output Command format SEP Return format SEP lt Value gt lt Value gt 0 Space 1 Line feed CR LF Target MG41 main unit Examples of use Transmission SEP Return SEP 1 Compatible command None MG40 S
116. ink The command acquires the setting for the area where the MG40 series is to be used Command format CTR Return format CTR lt Value gt lt Value gt 0 Not set Target MG41 main unit Examples of use Transmission CTR Return CTR 2 Compatible command None MG40 Series E 4 21 Comparator mode This function is used to set and acquire the number of comparator level and number of group When the mode is changed the comparator value for the target axis is cleared and the not set status is established Please set the comparator values CMV command immediately after the comparator mode CMM command has been set The comparator values CMV command is set in combination with the comparator mode CMM command and will not function correctly if it is made after other command setting s Set Ethernet CC Link The command sets the number of comparator level and number of comparator group as well as the value targeted Command format CMM Designated axis lt Mode gt lt Target value gt lt Mode gt 2 levels 16 groups Factory setting 4 levels 8 groups 8 levels 4 groups 16 levels 2 groups lt Target value gt Current value Factory setting Maximum value Minimum value Peak to peak value Return format Execution results Target Designated axis MG42 hub unit all axes Save setting values Setting values sa
117. lt gt 0 0 0 0 255 255 255 255 255 255 255 0 af wren Is MG41 NSM 255 255 0 0 OK000 78 5 S ER b NSM NIP lt gt lt gt 0 0 0 0 255 255 255 255 MG41 NSM NIP 255 255 255 0 4 38 J MG40 Series MS NPC lt gt 0 TCP MG41 NPC 0 OK000 HIY F ee 7
118. mation of the measuring unit which has been connected Set Ethernet CC Link mode The command sets the user information of the measuring unit which has been connected Command format Return format Target Save setting values Examples of use Compatible command AXU Designated axis lt User ID gt Hexadecimal ASCH notation 2 characters Execution results Designated axis Setting values saved The setting values are saved at the same time as the setting command is executed Transmission AXU OOA 01 Return OK000 None Acquire Setup 8 Ethernet CC Link The command acquires the user information of the measuring unit which has been connected Command format Return format Target Examples of use Compatible command AXU Designated axis AXU Designated axis lt User ID gt Hexadecimal ASCII notation 2 characters Designated axis Transmission AXU OOA Return AXU 00A 00 None MG40 Series E 4 43 4 44 E MG40 Series 5 Data Formats When a Store datum point offset value Relocate datum point Relocate master calibration value or Master calibration function setting has been performed neither Data request nor Memory data output can be undertaken unless the reference point is passed e After the reference point has been passed the peak value becomes unstable When using the peak value s
119. mpatible command MCR Designated axis Execution results Designated axis Transmission MCR O1B Relocate the master calibration value of axis B for the MG42 hub unit ID01 Return OK000 Successfully completed Designated axis MR MG40 Series E 4 9 Start This function is used to restart the peak calculation Measurement 7 Set mode Ethernet CC Link The command starts updating the peak Command format STA Designated axis Return format Execution results Target Single axis MG42 hub unit all axes Examples of use Transmission STA Restart the peak calculation for all the axes Return OK000 Successfully completed Compatible command START 4 10 E MG40 Series Pause This function is used for the pause related settings and acquisition The latch status cannot be established during pause nor can the pause status be established during latching Use the memory data output command for the output of the data in the pause status The data request command cannot be used Measurement 3 Set pause mode Ethernet CC Link The command sets the pause status Command format PAU Designated axis lt Setting value gt lt Setting Value gt 0 Of Factory setting 1 On Return format Execution results Target Single axis MG42 hub unit all axes Save setting values Setting values not saved Examples of use Transmi
120. ne Acquire oe i ly Ethernet CC Link The command acquires the comparator values Command format CMV Designated axis lt Group number gt lt Level number gt Return format CMV Designated axis lt Group number gt lt Level number gt lt Value gt lt Group number gt 01 Group 1 to 16 Groups 16 lt Level number gt 01 Level 1 to 16 Level 16 lt Value gt Corresponds to output resolution digit no output when the value has not been set Target Designated axis Examples of use Transmission CMV 00A 0101 Return CMV 00A 0101 12 3335 12 3335 is the comparator value Transmission CMV 00B 0101 Return CMV 00B 0101 No setting Compatible command None MG40 Series E 4 23 Data header This function is used to set and acquire the data header Set data header Ethernet The command sets the data header Command format HDR lt Header gt lt Header gt 01 Type 1 Factory setting 02 Type 2 For details on the types refer to 5 Data Formats Return format Execution results Target MG41 main unit Save setting values Setting values saved Examples of use Transmission HDR 01 Return OK000 Compatible command None H Setup Measurement Acquire data header canara aon Ethernet The command acquires the data header setting Command format HDR Return format HDR lt Header gt lt Header gt 00 None 01 Type 1 02 Type 2 Target MG41 ma
121. ommand format NIP Return format NIP lt IP address gt lt IP address gt 1 0 0 1 to 233 255 255 254 Target MG41 main unit Examples of use Transmission NIP Return NIP 192 168 1 10 Compatible command None MG40 Series E 4 35 MAC address This function is used to acquire the Ethernet MAC address Setup Measurement Acquire mode mode Ethernet The command acquires the Ethernet MAC address Command format NMC Return format NMC lt MAC address gt xx xx xx xx xx xx x isa number from 0 to 9 ora letter from A to F Target MG41 main unit Examples of use Transmission NMC Return NMC 00 12 44 CE 3E F5 Compatible command None 4 36 E MG40 Series Gateway address This function is used to set and acquire the Ethernet gateway address The gateway address setting is reflected the next time the equipment is started up Set Setup The command sets the Ethernet gateway address Command format Return format Target Save setting values Examples of use Compatible command NGW lt Address gt lt Address gt 1 0 0 1 to 223 255 255 254 excluding 127 x x x Factory setting 192 168 1 1 Execution results MG41 main unit Setting values saved The setting values are saved at the same time as the setting command is executed Transmission NGW 192 168 1 1 Return OK000 None Acquire Setup Measurement mode mode Ethernet The command acquires
122. ples Provided below are the steps taken and examples of the settings for the setup command operations and data acquisition using the command interface 2 4 1 Connections Make the connection to the command interface Refer to 2 2 1 Connection to the Command Interface 2 4 2 Setting the Measurement Conditions Switching over to the setup mode Use the MOD command to set 0 which signifies the setup mode MOD command MOD 0 CR LF OK000 CR LF Acquiring the configuration information Use the CFG command to acquire the configuration information of the MG42 hub units connected to the MG41 main unit and on the measurement axes CFG command CFG x CR LF The following kind of configuration information can be acquired CFG x 02 004 110003 210109 CR LF One MG42 4 unit is connected to the MG41 NE unit and two measuring units are connected to each of these units Comparator settings Please set the comparator values CMV command immediately after the comparator mode CMM command has been set The comparator values CMV command is setin combination with the comparator mode CMM command and will not function correctly if it is made after other command setting s Example Settings established under the following conditions e No of comparator level 4 e Comparator target Current value e Comparator values Level 4
123. pleted Designated axis RES MG40 Series E 4 5 Preset This function is used to set numerical values in the measurement values In the wait to go past reference point status a mode error results and values can neither be set nor called e Values can neither be set nor called for an axis in the error status Set Measurement rman Ethernet CC Link The command sets the numerical values in the current values Command format Return format Target Save setting values Examples of use Compatible command PSS Designated axis lt Value gt Corresponds to output resolution Factory setting Zero Execution results Designated axis MG42 hub unit all axes Setting values saved Transmission PSS 01B 123 2315 Set axis B for the MG42 hub unit ID01 to 123 2315 Return OK000 Successfully completed Acquire Designated axis P lt Value gt Measurement Ethernet CC Link mode The command acquires the preset values Command format Return format Target Examples of use Compatible command PSS Designated axis PSS Designated axis lt Value gt Corresponds to output resolution Designated axis Transmission PSS OOA Acquire the preset value of axis A for the MG41 main unit Return PSS 00A 100 0000 The preset value is 100 0000 None Call Measurement 7
124. possible to connect to 192 168 1 100 which was the address set at the factory Refer to 9 Troubleshooting in the operating instructions telnet TCP 3 Connect to the command interface 3 Connect to the command interface When connection is made to the command interface a login prompt such as the one shown in the figure below This completes the connection to the command interface is output from the MG41 main unit login 4 Input MG41 as the login name and transmit the line feed code login MG41 lt Password now appears Password 5 Input MG41 as the password and transmit the line feed code login MG41 CR LF Password MG41 CR LF This completes the connection to the command interface 2 2 E MG40 Series 2 3 Initial Setting Procedure The following initial settings must be established without fail after installation These settings must be established after the connection to the command interface has been completed Refer to 2 2 1 Connection to the Command Interface Setting the area where the system is to be used 1 lt Ifthe system is to be used in Japan gt Input the following command CTR 1 CR LF lt If the system is to be used in any other country gt Input either of the following commands For details refer to Area of use CTR command CTR 2 CRIILF CTR 3 CR LF iisi When
125. s and acquisition The latch status cannot be established during pause nor can the pause status be established during latching Use the memory data output command for the output of the data in the latch status The data request command cannot be used Measurement Set latch mode Ethernet CC Link The command sets the latch status Command format LCH Designated axis lt Setting value gt lt Setting value gt 0 Off Factory setting 1 On Return format Execution results Target Single axis MG42 hub unit all axes Save setting values Setting values not saved Examples of use Transmission LCH 00 1 Set latch for all the axes for the MG41 main unit Return OK000 Successfully completed Compatible command None Acquire latch status PP EN Ethernet CC Link The command acquires the current latch status Command format LCH Designated axis Return format LCH lt Setting Value gt lt Setting value gt Target Single axis Examples of use Transmission LCH OOA Acquire the latch status of axis A for the MG41 main unit Return LCH 00A 1 Latch On status Compatible command None Latch On Measurement EE Ethernet CC Link Compatible command only The command establishes the latch status Command format None Return format Execution results Target Single axis MG42 hub unit all axes Examples of use Transmission 31 LCHON Set latch to On for all the axes
126. sion control settings NDT command 1 Use the NDT command to set 0 which signifies transmission stop NDT 0 CR LF OK000 CR LF 2 8 E MG40 Series 3 CC Link Interface 3 1 Overview of CC Link Interface The CC Link interface of the MG41 NC operates as a remote device station complying with CC Link Ver 1 1 to enable data communication with the CC Link master station using cyclic transmission Protocol CC Link Ver 1 1 complied with Station type Remote device station No of occupied stations 4 Station numbers 1 to 61 set using DIP switches Transmission speed 156 kbps 625 kbps 2 5 Mbps 5 Mbps 10 Mbps set using DIP switches Cyclic transmission data Remote input output RX RY Remote register RWr RWw The following two types of data input output are used by the CC Link interface Remote input output Bit input output expressed by RX and RY the input and output are separate with each having 128 bits used for communication handshaking and status notification Remote registers Word input output expressed by RWr and RWw there are 16 inputs and 16 outputs a register having a total of 32 bytes used for command and data communication MG40 Series E 3 1 3 2 CC Link Address Maps Shown below are the address maps when 1 is set as the station number Remote input output MG41 NC gt PLC PLC MG41 NC Station
127. ssion PAU 00 1 Set pause for all the axes for the MG41 main unit Return OK000 Successfully completed Compatible command None Acquire pause status Seay Ethernet CC Link The command acquires the current pause status Command format PAU Designated axis Return format PAU lt Setting value gt lt Setting value gt Target Single axis Examples of use Transmission PAU 00A Acquire the pause status of axis A for the MG41 main unit Return PAU 00A 1 Pause On status Compatible command None Pause On SESSIONS Ethernet CC Link mode Compatible command only The command establishes the pause status Command format None Return format Execution results Target Single axis MG42 hub unit all axes Examples of use Transmission 31 PAUON Set pause to On for all the axes for the MG42 hub unit ID31 Return OK000 Successfully completed Compatible command Designated axis PAUON Pause Off NMDA Ethemet CC Link Compatible command only The command releases the pause status Command format None Return format Execution results Target Single axis MG42 hub unit all axes Examples of use Transmission 01 PAUOFF Set pause to Off for all the axes for the MG42 hub unit ID01 Return OK000 Successfully completed Compatible command Designated axis PAUOFF MG40 Series E 4 11 Latch This function is used for the display latch related setting
128. t Target equipment MG41 main unit MG42 hub unit IDO1 MG42 hub unit ID02 MG42 hub unit ID31 Entire system lt No of units gt Total number of units MG41 main unit and MG42 hub units which configure the system lt Total no of axes gt 000 100 Total number of axes which are connected to the system and are recognized lt Connection MAP gt lt Model code gt lt ID gt lt Connection pattern gt Space separators enclosed in braces lt Model code gt 11 MG41 NE 12 MG41 NC 21 MG42 4 lt ID gt 00 31 Unit ID 00 for the MG41 main unit lt Connection pattern gt 00 OF Bit pattern using the locations connected as 1 Target Entire system units with target IDs designated Examples of use Transmission CFG x Acquire the configuration information of the entire system Return CFG 04 008 110003 21050A 21210C 213106 Transmission CFG 00 2 Acquire the configuration information of the MG41 main unit Return CFG 00 04 008 110003 Transmission CFG 05 Acquire the configuration information of MG42 hub unit ID05 Return CFG 05 04 008 21050A Transmission CFG 21 Acquire the configuration information of MG42 hub unit ID21 Return CFG 21 04 008 21210C Compatible command None MG40 Series E 4 27 Setting initialization This function is used to initialize the settings When initializing the entire system to the factory st
129. the gateway address Command format Return format Target Examples of use Compatible command NGW NGW lt Address gt 1 0 0 1 to 223 255 255 254 MG41 main unit Transmission NGW Return NGW 192 168 1 1 None MG40 Series E 4 37 Subnet mask This function is used to set and acquire the subnet mask The value which has been set is reflected the next time the system is started up When the subnet mask is acquired after its setting has been changed the subnet mask set before the change is reflected will be acquired Set Setup mode The command sets the subnet mask Command format NSM lt Subnet mask gt Ethernet Return format Target Save setting values Examples of use Compatible command 0 0 0 0 to 255 255 255 255 Factory setting 255 255 255 0 Execution results MG41 main unit Setting values saved The setting values are saved at the same time as the setting command is executed Transmission NSM 255 255 0 0 Return OK000 None Acquire Setup Measurement mode mode Ethernet The command acquires the subnet mask Command format Return format Target Examples of use Compatible command NSM NIP lt Subnet mask gt 0 0 0 0 to 255 255 255 255 MG41 main unit Transmission NSM Return NIP 255 255 255 0 None 4 38 E MG40 Series Data transmission protocol This fanction is used to set the protocol which is to
130. tory statuses Set Setup The command sets the output resolution Command format OPR Designated axis lt Polarity gt lt Resolution gt CC Link lt Polarity gt Plus Minus lt Resolution gt 0 1 um 0 000005 Input resolution S Output 0 5 um 0 00001 resolution 1 um 0 00005 5 nm 0 0001 10 hm 0 0005 Factory setting Same as for the input resolution setting 0 00002 when the input resolution is 0 5 um Return format Execution results Target Designated axis Save setting values Setting values saved Examples of use Transmission OPR OOAJ 3 Return OK000 Compatible command Designated axis SDR lt Polarity gt lt Resolution gt Acquire setup Measurement gmeme ceumk The command acquires the output resolution Command format OPR Designated axis Return format OPR Designated axis lt Polarity gt lt Resolution gt lt Polarity gt Plus Minus lt Resolution gt 0 1 um 0 000005 0 5 um 0 00001 1 um 0 00005 5 nm 0 0001 10 um 0 0005 0 00002 when the input resolution is 0 5 um Target Designated axis Examples of use Transmission OPR OOA Return OPR OOAJ 3 Compatible command Designated axis SDR 4 18 E MG40 Series Input resolution This function is
131. ts Target Designated axis Save setting values Setting values saved Examples of use Transmission ADD 00A 00B Return OK000 Transmission ADD 31A 31D Return OK000 Transmission ADD 31A Clear the setting Return OK000 Compatible command None Setup Measurement 3 Acquire mode ade Ethernet CC Link The command acquires the axis calculation setting Command format ADD Primary axis Return format ADD lt Sign 1 gt Primary axis lt Sign 2 gt Reference axis lt Sign 1 gt lt Sign 2 gt Minus Primary axis Reference axis Axis labels Target Designated axis Examples of use Transmission ADD OOA Return ADD 00A 00B Transmission ADD 31A Return ADD 31A 31D Transmission ADD 31A Return ADD 31A No settings Compatible command None 4 26 E MG40 Series Configuration information This function is used to acquire the equipment configuration information Setup Measurement 7 Acquire mode moda Ethernet CC Link The command acquires the equipment configuration information Command format CFG Target equipment Target equipment MG41 main unit MG42 hub unit ID01 MG42 hub unit ID02 MG42 hub unit ID31 Entire system Return format CFG Target equipment lt No of units gt lt Total no of axes gt lt Connection MAP g
132. ub unit ID01 data 32 Bytes Hub unit ID02 data 32 Bytes Hub unit ID31 data 32 Bytes When CC Link is used ID00 is used only for the MG41 main unit Since the size of the remote registers is 32 bytes the data of a single designated unit is always designated and acquired To acquire the data of a multiple number of units issue the commands in sequence from the PLC to acquire it Hub unit ID05 data 32 Bytes In order to synchronize the data of a multiple number of units use the latch command and then collect the data of each unit using the memory data output command MG40 Series E 5 3 The data of the units is configured as shown below The axis data consists of signed 32 bit integers which are stored using the little endian order Description Axis A status Axis A data Signed 32 bit integer Little endian order Axis B status Axis B data Signed 32 bit integer Little endian order Axis C status Axis C data Signed 32 bit integer Little endian order Axis D status Axis D data Signed 32 bit integer Little endian order Supplementary information Axis statuses bit Byte 7 6 5 4 2 1 0 Axis label Decimal point position Error information Reference point information Axis labels 0 1 2 3 4 Not connected no data Axis A Axis B Axis C Axis D Error information The axis error information is ind
133. ue 16 Measurement value Time stamp 1 128 s 7 8125 ms counter value referenced to AM 0 00 of the internal clock of the MG41 main unit MG40 Series E 5 5 5 6 E MG40 Series 6 Error Codes 6 1 Overview of Error Codes Error codes are expressed in a hexadecimal 2 digit format 0x00 to OxFF The higher digits express the general classification and the lower digits express the details Classification Description Numbers in the 00 s General information Numbers in the 10 s Command related errors Numbers in the 20 s Ethernet communication related errors Numbers in the 30 s CC Link communication related errors Numbers in the A0 s to D0 s Hardware related errors 6 2 Table of Error Codes Numbers in the 00 s General information additional information 00 No errors no additional information Normally used when there are no errors Numbers in the 10 s Command related errors Command error There is no command or the command has illegal syntax Mode error The mode does not permit the execution of the command in question Target not available The target designated as the command target is not connected to the system or the wrong method was used to designate it such as in cases where all the axes were designated with a command for which all the axes cannot be designated Parameter error The parameter does not exist or the wrong method was used to designate it
134. unctions used data interface are used Binary data must be interpreted and computed Higher data transfer rates can be expected For an example of a case where only the command interface is used refer to 2 4 Setting Examples for an example of a case where both the command interface and data interface are used refer to 2 5 When Both the Command Interface and Data Interface Are Used Important A protocol of the application layer of its own is stipulated for the data interface This means that if the interface is to be connected to an existing network it may be necessary to apply to the network administrator for the connection and or change the network equipment settings and or computer security settings MG40 Series E 2 1 2 2 Connection to the Ethernet Interfaces 2 2 1 Connection to the Command Interface Take the following steps to connect to the command interface 1 Connect the MG41 main unit to the computer or PLC using an Ethernet cable 2 Establish the connection settings below Protocol telnet TCP IP address IP address which has been set factory setting 192 168 1 100 Port number TCP 23 TCP 10023 Line feed code CR LF Reference If the IP address which has been set is not known set SW8 among the communication setting switches on the side panel of the MG41 main unit to ON and then restart the unit By doing this it is temporarily
135. used to acquire the input resolution Acquire Setup Measurement mode mode an CC Link The command acquires the input resolution setting Command format Return format Target Examples of use Compatible command IPR Designated axis IPR Designated axis lt Resolution gt lt Resolution gt 1 0 1 um 2 0 5 um Designated axis Transmission IPR OOA Return IPR OOA 1 None MG40 Series E 4 19 Master calibration function This function is used to set whether the master calibration function is to be used and acquire the setting The master calibration funciton setting is reflected the next time the equipment is started up When the master calibration function is to be used neither the datum point function nor the axis calculation function can be used Setup Set Ethernet CC Link The command sets the master calibration function to On or Off Command format MCM lt Value gt lt Value gt 0 Off Master calibration is not used Factory setting 1 On Master calibration is used Return format Execution results Target MG41 main unit Save setting values Setting values saved Examples of use Transmission MCM 1 Return OK000 Compatible command None Acquire ep Measurement ethernet ceumk The command acquires the current master calibration function status Command format MCM Return format
136. ved Examples of use Transmission CMM OOA 1 0 Return OK000 Compatible command None H Setup Measurement a Acquire mode node Ethernet CC Link The command acquires the comparator mode setting Command format CMM Designated axis Return format CMM Designated axis lt Mode gt lt Target Value gt 2 levels 16 groups 4 levels 8 groups 8 levels 4 groups 16 levels 2 groups lt Target value gt Current value Maximum value Minimum value Peak to peak value Target Designated axis Examples of use Transmission CMM OOA Return CMM O0A 3 1 Compatible command None 4 22 E MG40 Series Comparator value This function is used to set and acquire the comparator values The setting range differs depending on the comparator mode Please set the comparator values CMV command immediately after the comparator mode CMM command has been set The comparator values CMV command is set in combination with the comparator mode CMM command and will not function correctly if it is made after other command setting s Precautions when setting the comparator values Set the comparator values in sequence from level 1 starting with the lowest value Level 1 setting value lt Level 2 setting value lt Level 3 setting value lt lt Level 16 setting value The comparator value of each level to be set cannot be lower than th
137. written into the transmit buffer T is set for IRY The execution of the command is instructed The PLC waits for IRX to be set to 1 The PLC waits for the command execution to be completed When IRX is set to 1 the command response is acquired When the response is acquired IRY is set to 0 The response is received The PLC waits for IRX to be set to 0 The PLC waits for the response reception to be checked The sequence is as follows when viewed from the MG41 NC main unit side 1 1 is set for IRY and command execution is instructed 2 The command is read from the buffer and it is executed 3 The response is written in the buffer and 1 is set for IRX The command execution is completed 4 The MG41 waits for IRY to be set to 0 The MG41 waits for the response to be received 5 0 is set for IRX The MG41 checks that the response has been received MG40 Series E 3 3 3 4 E MG40 Series 4 Command Reference 4 1 List of Commands List of operation commands Function Command Setup Measurement Ethernet CC Link Page mode mode O 4 4 O 4 4 Operation mode Preset Datum point Reference point information Master Output data Comparator group number Data request Memory data output Data transmission control MG40 Series MOD lt Operation mode gt Acquire Set Set MOD SVZ Designated axis S PSS
138. x x OIOIOIOIOIOIOIOIOIOIO O xlxlxlxlxlxlxlxlxlxlx x O user information Acquire The target equipment is specified 4 2 E Designated axis x O OQ A ww MG40 Series 4 2 How to Read the Command Tables A detailed description of each command is given in the following sections How to read the command tables is explained below Indicates the modes Indicates the interface which is which can be executed capable of executing the commands Setup Measurement z Set T ae Ethernet CC Link The command sets the numerical values in the 5 Command format PSS Designated axis lt Value gt Corresponds to output resolution Return format Execution results Indicates the command to be sent Indicates the return in response to the command sent Target Designated axis MG42 hub unit all axes Indicates the command s target range Save setting values Setting values saved This indicates whether the setting values 8 8 can be saved To save the setting values Examples of use Transmission PSS 01B 123 2315 use the SAV command Set axis B for the MG42 hub unit ID01 to 123 2315 Return OK000 Successfully completed Thi command emphasizes compatibility it existin ts Compatible command Designated axis P lt Value gt eat T NZ he there are no compatible commands Concerning the Designat

Download Pdf Manuals

image

Related Search

Related Contents

海の子・山の子が交流しました - たのSEA秋穂づくり協議会  ETS 150/3 EQ, ETS 150/3 E ETS 150/5 EQ, ETS 150/5 E  平成 23 年度第 4 回  取扱説明書 保存用  「ハイトシェルターS」取扱説明書  Fiche produit - caractéristiques générales      

Copyright © All rights reserved.
Failed to retrieve file