Home
MX Component Version 3 Programming Manual
Contents
1. o QCPU Q mode x X XXIX x x Q series compatible MELSECNET II x E71 ActQJ71E71UDP Ethernet IX x x ActMLQJ71E71UDP CC Link MELSECNETH x x x x x x et MELSECNETG x x x x x x QnACPU x uu x ActAJ71QE71UDP Eth t ActMLAJ71QE71UDP erme 4 4 3 S 2 5 uu 1 1 CC Link EX x x px x x x x x x x x APP 16 APP 16 APPENDICES MELSOFT Appendix 3 3 When time out occurs at fixed time in ACT control MX Component makes communication to check whether the personal computer and PLC system are connected correctly before the Open function is executed When making the above communication use the fixed time out period 1000ms to 4500ms within the ACT control Note that if an error occurs during the above communication an error other than the time out error may occur The following shows a communication path where a time out will occur at the fixed time within the ACT control 1 Computer link module communication a Configuration 1 2 Connected Connected Relayed station CPU module module IBM PC AT compatible Relayea Relayed Relayed station CPU module b Target non target communication path The following table indicates the communication paths
2. O Oo x J o APP 8 aides APPENDICES MELSOFT 2 CPU COM communication a Configuration 1 Connected Relayed station CPU module ET ard LI IBV PC AT compatible Rel yed 2 Relayed Relayed station CPU module b Target non target comunication path The following table indicates the communication paths to be retried at a time out error occurrence All the connected station CPUs can be the targets Target non target relayed CPUs are indicated by target or x non target 3 Relayed station CPU 2 Relayed network QCPU QCPU QnACPU Q mode A mode Motion controller CPU MELSECNETH o x x x x x MELSECNET 10 x QCPU Qmode MELSECNET N x x x x x ActQCPUQ ActMLQCPUQ Ethernet x Ethemet Computerink O x x x x IMELSECNETH __ X x x x x x MESENETPO x O x x o acPUAmde X MEsENNETU x x O x ActQCPUA ActMLQCPUA Ethernet Computerfink x x x x x x MECSECNEUH x x o p ox MELSECNEU U X Ww pO Secwe p x1 S6 QnACPU MIEESECNETQD spo sec ip xpo ActQnACPU ActMLQnACPU Ethernet Ethernet CC Link IMELSECNETH x x IMELSECNET IO x ACPU Motion controller CPU MELSECNET x ActACPU ActMLACP
3. 6 46 6 3 HRESULT Type Error Codes ao prep Ren pinnata mus 6 47 APPENDICES APP 1 to APP 20 Appendix 1 Connection System of the Callback Function essent APP 1 Appendix 2 Programming Example for Checking the Word Device Status APP 3 Appendix 3 Time Out Periods og E ede ce egeta APP 7 Appendix 3 1 When retries to be made at occurrence of time out APP 7 Appendix 3 2 When retries are to be made at occurrence of receive data APP 16 Appendix 3 3 When time out occurs at fixed time in ACT control sssssssssees APP 17 Manuals The following lists the manuals for this software package Refer to the following table when ordering manuals Related Manuals Manual Name Manual Number Model Code MX Component Version 3 Operating Manual Startup gt SH 080270 Provides procedures for installing and uninstalling MX Component and for browsing the operating 13JU31 manual Sold separetely MX Component Version 3 Operating Manual SH 080271 Gives how to perform setting and operation of each utility on MX Component Sold separetely 13JU32 Type A70BDE J71QLP23 A70BDE J71QLP23GE A70BDE J71QBR13 A70BDE J71QLR23 MELSECNET 10 Interface Board User s Manual For SW3DNF MNET10 IB 0800035 Describes the
4. PORT 10 0x0A Communication port 10 Specify the baudrate for computer link communication Property value Property value Property window input Description Property window input Description value value e e 300 BAUDRATE 9600 9600b 300bps 9600 ActBaudRate BA DOE BAUDRATE 19200 LONG 600 19200 BAUDRATE 1200 BAUDRATE 38400 12 38400b 1200 38400 ps BAUDRATE_2400 BAUDRATE_57600 24 7600b 2400 DN 57600 BAUDRATE 4800 BAUDRATE 115200 4800 1152000 4800 115200 Specify the number of bits 7 or 8 of the byte data sent and received for computer link ActDataBit LONG e communication Specify the parity system used for computer link communication Property value qa Description Property window input value pari ODD_PARITY 1 EVEN PARITY 2 3 DETAILS OF THE ACT CONTROLS MELSOFT Property Name Type Specify the number of stop bits used for computer link communication es des ActStopBit Property window input value LONG STOPAITONE 0 STOPBITS TWO Specify the control setting of the signal line Property value Description ae cee window input value ActControl 0 0 DTR 0x01 DTR LONG TRC RTS RTS control TRC DRT AND RTS nes DTR control and RTS control TRC DTR OR RTS 0x08 DTR control or RTS control ActHostAddress BSTR Pointer which indicates the connection host name IP address
5. sse tnnt nennen 4 63 4 3 13 GetCpuType PLC CPU type read 4 63 4 3 14 SetCpuStatus Remote COntrol ccecescececceeeeeceeceeeeseeeeceeceeeeaecaecaeseeesaesaeseeseaesaesaeseeeeaesaseeeeaneaes 4 63 4 3 15 EntryDeviceStatus Device status monitor registration seen 4 64 4 3 16 FreeDeviceStatus Device status monitor deregistration ssssssssese 4 64 4 3 17 OnDeviceStatus Announces event eerte nnne trennen nnns 4 64 4 3 18 ReadDeviceBlock2 Device batch read sese 4 64 4 3 19 WriteDeviceBlock2 Device batch write sesesesseeeeeeeeneeneneenenen ene 4 64 4 3 20 ReadDeviceRandome Device random read seen 4 65 4 3 21 WriteDeviceRandom2 Device random write sees 4 65 4 3 22 SetDevice2 Device data setting enne 4 65 4 3 23 GetDevice2 Device data acquisition ccecceeceeceeceeseeeceeeeeeeeecaecaeeeeeeaecaeseeseaesaesaeeeeaesaeeeneeateaes 4 65 4 3 24 Connect Telephone line connection sse ennt 4 65 4 3 25 Disconnect Disconnects telephone line sese 4 66 4 3 26 GetErrorMessage Gets error message nennen 4 66 5 1 Visual Basic Sample Programs nm neo rte gerenda n fed ag ee ea 5 3 5 1 1 Sample program for ActEasylF control and ActACPU control sene 5 3 5 1 2
6. IBM PC AT compatible 2 Property patterns Connected Station CPU elayed Station Relayed Network ee QCPU QCPU Mn Q mode A mode CPU x1 MELSECNET 10 x x Bime _ Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU 3 Property list Property Patterns 8 ActATCommand Any value specified by user ActATCommandPasswordCancelRetry T Times 3 Any value specified by user ActATCommandResponseWaitTime Any value specified by user unit s ActConnectionCDWaitTime 9 Any value specified by user unit s ActConnectionModemReportWaitTime Any value specified by user unit s 262 ActCpuType CPU ATNCPU CPU type corresponding to target station ActDialNumber Empty Telephone number of any value specified by user ActDisconnectionCDWaitTime Any value specified by user unit s ActDisconnectionDelayTime Any value specified by user unit s 1 ActLineType LINETYPE LINETYPE PULSE LINETYPE TONE LINETYPE ISDN TONE 0 Target station side ActNetworkNumber 0x00 Fixed to 0x00 Fixed to 0x00 ActOutsideLineNumber Empty Outside line access number of any value specified by user ActPassword Empty Password set to the Q6TEL and A6TEL ActPasswordCancelResponseWaitTime 5 Any value specified by user unit s 5 1 ActPortNumber PORT 1 IBM PC AT compatible side COM port number 255 Target station side Target st
7. x x axa ox Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU 2 2 Use the QnA or ACPU side CC Link module whose ROM version is S or later 3 Property list Property Patterns ig ee 9 34 ActCpuType CPU QO2CPU CPU type corresponding to target station Target station side Target station side For single CPU For single CPU OxSFF fixed Ox3FF fixed For multiple CPUs multiple CPUs ActDestinationlONumber cos Fixed to 0x00 Fixed to 0x00 Connected CPU Ox3FF Connected CPU 0x3FF No 1 0x3E0 No 1 0x3E0 No 2 0x3E1 No 2 0x3E1 No 3 Ox3E2 23 No 4 0 ActDidPropertyBit Fixed to 0x01 Fixed to 0x01 Fixed to 0x00 Fixed to 0x00 ActDisdPropertyBit Fixed to 0x01 Fixed to 0x01 Fixed to 0x00 Fixed to 0x00 0x01 target station is 0x01 target station is QCPU Q mode 0x00 QCPU Q mode 0x00 ActintelligentPreferenceBit md ne OD Fixed 100x09 target station is other target station is other than QCPU mode than QCPU mode 2 Note the following points when making access via the Ethernet module series compatible E71 QE71 For ActNetworkNumber and ActStationNumber specify the value set in the parameter setting of the target station side Q series compatible E71 or QE71 e Set the MNET 10 routing information in the parameter setting of the series compa
8. cesceececeeceeseeeeeeceeeeaecaecaeeeeeaesaesaeeeaeeaecaeseesaesaeseeeeateats 4 53 4 2 24 Connect Telephone line connection nennen nennen 4 55 4 2 25 Disconnect Disconnects telephone line seen enne 4 57 4 2 26 GetErrorMessage Gets error message nennen 4 59 4 3 Details of the Functions Custom Interface essent 4 60 4 3 1 Open Communication line opening sessi nennen nnns 4 60 4 3 2 Close Communication line closing cecceceeseeeeeeeeeeeeeeeeecaeceeeeaecaecaeseesaesaesaeseaesaesaeeneseaeeaeeeseaeeaes 4 60 4 3 3 ReadDeviceBlock Device batch read 1 4 60 4 3 4 WriteDeviceBlock Device batch write essen enne 4 60 4 3 5 ReadDeviceRandom Device 4 61 4 3 6 WriteDeviceRandom Device random qwrite sess 4 61 4 3 7 SetDevice Device data setting nennen nnne nennt 4 61 4 3 8 GetDevice Device data acquisition ceccecceseeeeeeeeeeeeseeseeeeeeeeeaecaecaeseaeeaecaesaeseaesaesaeseetaesaeeeeeeateaes 4 61 4 3 9 ReadBuffer Buffer memory read sse nnne rennen nnne 4 62 4 3 10 WriteBuffer Buffer memory write sess 4 62 4 3 11 GetClockDSata Clock data read sse nennen nnne nnns 4 62 4 3 12 SetClockData Clock data write
9. 3 Relayed station CPU UTER A wasowm o gt gt wueweme o o 9 bmw o X Xx x COSE mesecne x x x x x MevsecneTio x x o x o QoPU Amode meLseoner O x o Mer Sept ox qp Eumene npe qp wel ose poses x x x x x x x x x x To next page APP 18 APP 18 APPENDICES MELSOFT 3 Relayed station CPU 1 Connected module Motion Usable control name Bee ee ee S EXOBU Q mode A mode CPU MELSECNET H x x x x x x x x x x x x x x x x Computer link CC Link MELSECNETIH ACPU Motion controller CPU MELSECNET II ACtACPU AcIMLACPU Ethernet sss X FXCPU ActFXCPU ActMLFXCPU ocu APP 19 APP 19 APPENDICES MELSOFT 3 CC Link G4 communication a Configuration i Connected CC Link Relayed station CPU module module o Relayed network 2 3 En CC Link Relayed Relayed G module IBM PC AT compatible station CEU module b Target non target communication path The following table indicates the communication paths where a time out will occur at the fixed time within the ACT control All the connected station CPUs can be the targets
10. Property list Property Patterns ee iiic ActATCommand Any value specified by user ActATCommandPasswordCancelRetry Times 19200 ActBaudRate BAUDRATE Match to the setting of QC24N 19200 ActConnectionCDWaitTime ER CHEM Any value specified by user unit s ActConnectionModemReportWaitTime Any value specified by user unit 0 Connected station side module station Connected station side module station 0x00 number number 17 A T CPUt ding to t t stati ctCpuType CPU Q2ACPU ype corresponding to target station ActDialNumber Empty Telephone number of any value specified by user ActDisconnectionCDWaitTime mE A Any value specified by user unit s ActDisconnectionDelayTime Any value specified by user unit 1023 Connected station side relayed ActlON 4 Fi FF module address Any value specified by user ActConnectUnitNumber ActLineType E ess LINETYPE PULSE LINETYPE TONE LINETYPE ISDN TONE ActNetworkNumber ie Fixed to 0x00 Fixed to 0x00 ActOutsideLineNumber Empty Outside line access number of any value specified by user 1 As the I O address specify the value found by dividing the actual first number by 16 To next page 3 70 3 70 3 DETAILS OF THE ACT CONTROLS MELSOFT Property Patterns dicus E ActPasswordCancelResponseWaitTime Any value specified by user unit s ActPortNumber us 1 IBM PC AT compatible side COM port number ActStationNumber Fix
11. 3 Sample file By default the sample program is installed into the following folders C MELSEC Act Sample VBScript SampleHTML Sample htm HTML file C MELSEC Act Sample VBScript SampleHT ML Pics Fill gif Image file C MELSEC Act Sample VBScript SampleHTML Pics Frame gif Image file C MELSEC Act Sample VBScript SampleHTML Pics LampERR gif Image file C MELSEC Act Sample VBScript SampleHTML Pics LampOFF gif Image file C MELSEC Act Sample VBScript SampleHTML Pics Tank gif Image file 5 SAMPLE PROGRAMS MELSOFT 4 Screen The sample program screens will be explained a Tank capacity Empty b Tank capacity Full Tank status Normal Tank status Error C MELSEC Ac CAMELSEC Ac EG File Edit View EJ File Edit View EJ i N 1 m Address 7 Go Links Address 7 Go Links Iz My Computer 15 Computer Indicates the tank capacity Within the range 0 lt device value lt 200 Tank capacity Linked with device D100 Indicates the tank status Tank status Normal device value 0 Blue lamp lit Linked with device D101 Error device value lt gt 0 Red lamp lit 5 SAMPLE PROGRAMS MELSOFT 5 5 ASP Sample Program This sample program is designed to read PLC CPU data and read device values using the ActMLEasylF control 1 3 4 File structure a Sample asp data input screen Initial display screen used to set data for monitori
12. E 1 1 0 STOPBIT Match to the setting of UC24 ONE 1 SUM CHECK Match to the setting of UC24 10000 Any value specified by user in ms units 0 0x00 Target station side module station number 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 16 ActAJ71C24 ActMLAJ71C24 control The following table indicates the properties possessed by the ActAJ71C24 ActMLAJ71C24 control and their default values 1 When there is relayed module in addition to connected station side C24 a Configuration b Property patterns Connected Station CPU Station CPU Relayed Station CPU ee QnA ACPU Relayed Network QCPU QCPU QnA ACPU Relayed A FXCPU station C24 mode CPU 1 mode A mode CPU 1 e Jeep e x erm Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU 2 Operates as the one equivalent to AnACPU Connected compatible c Property list Property Patterns 19200 BAUDRATE Match to the setting of C24 _ 19200 8 TCR_DTR_OR Depending on used cable _RTS ActCpuType CPU s er CPU type corresponding to target station ActDataBits DAT TE Match to the setting of C24 1 ActParity ODD_PARITY Match to the setting of C24 1 MP ActPortNumber PORT 1 IBM PC AT compatible side COM port number 255 pl cand ActStationNum
13. M0toMi5 2 M152 L of LL of CN200 3 lt When gateway device is specified gt Example When 8 bit devices E0000 E0001 of SHARP PLC have been assigned to EGO 1 The device from where data will be read is only one point of MO and or 1 is stored as the device value 2 Lower bits are stored in device number order Data are not read from the upper 2 bytes M16 to M31 8 For CN200 and later of the FXCPU specifying 1 point for GetDevice2 reads data from the L lower 2 bytes of the specified device Data are not read from the H upper 2 bytes of the specified device 4 FUNCTIONS MELSOFT 6 Returned value Normal termination 0 is returned Abnormal termination Any value other than 0 is returned Refer to Chapter 6 ERROR CODES When a double word device is specified only the data of the lower 1 word 2 bytes are stored in GetDevice2 An error will not occur When reading data from a double word device use ReadDeviceRandom or GetDevice 4 FUNCTIONS MELSOFT 4 2 24 Connect Telephone line connection 1 Applicable ACT controls This function is available for the ActEasyIF ActA6TEL ActQ6TEL ActFXCPUTEL ActAJ71QC24TEL and ActQJ71C24TEL controls Feature Connects the telephone line Format Visual Basic Visual C VBA IRet object Connect Long IRet Returned value Output Explanation a Connects the telephone line on the basis of the property settings of the m
14. SO ActQCPUQUSB ActMLQCPUQUSB Ethernet io APP 10 APP 10 APPENDICES MELSOFT 4 CC Link G4 communication a Configuration 1 Connected CC Link Relayed station CPU module module Relayed network 2 3 CC Link Relayed Relayed G4module station CPU module IBM PC AT compatible b Target non target communication path The following table indicates the communication paths to be retried at a time out error occurrence All the connected station CPUs can be the targets Target non target relayed CPUs are indicated by target or x non target 1 When CC Link G4 S3 module is in Q mode 3 Relayed station CPU C d dul Moti 1 Comected modue 2 Relayed network E CPU em Ear wh a seem o To Po ete M RE E CC Link 3 Relayed station CPU 1 Connected module Motion Usable control name Gory eon ACPU FXCPU controller Q mode A mode x QnACPU ActCCG4QnA ActMLCCG4QnA CC Link APP 11 APP 11 APPENDICES MELSOFT 3 When CC Link G4 module is in A mode 3 Relayed station CPU 1 Connected module Motion 2 Rel k Usable control name Seven neo Gere QnACPU ACPU FXCPU controller Q mode A mode CPU x x x x x MELSECNET 10 Motion c
15. 3 38 3 38 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 19 ActCCG4QnA ActMLCCGAQnA control The following table indicates the properties possessed by the ActCCG4QnA ActMLCCG4QnA control and their default values 1 Configuration 2 Property patterns Connected 5 Relayed Station CPU Connected Relayed Relayed Network Q mode A mode CPU 1 Relayed network rece ius versene lt lt 9 S Computerin x x x x Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU 3 Property list Property Patterns wen Amin Oke qnl 39 19200 ActBaudRate BAUDRATE BAUDRATE_9600 BAUDRATE_ 19200 BAUDRATE_38400 _19200 0 ActConnectUnitNumber 0x00 Connected station side CC Link module station number 8 ActControl TCR_DTR_OR Depending on used cable _RTS 1023 Connected station ActlONumber 1 Fixed to Ox3FF Fixed to Ox3FF Fixed to Ox3FF side relayed module address 0 Target station side ActNetworkNumber 0x00 Fixed to 0x00 module network Fixed to 0x00 Fixed to 0x00 number 1 ActPortNumber PORT 1 IBM PC AT compatible side COM port number 255 Target station side Target station side ActStationNumber OxFE Fixed to OxFF module station module station Fixed to OxFF number number ActTimeOut 10000 Any value specified by user in m
16. 8 5 A a gt LogicalstationNumber nom Logging Timing Sec 4 LoggingStop OnDeviceStatus DateTime DateTime Device Data ReturnCode Record 14 4 of 1 Record 14 4 1 rne of 1 Enter the logical station number that was specified in communication settings on the communication setting utility aging Used to stop logging 5 SAMPLE PROGRAMS MELSOFT 5 4 VBScript Sample Program This section describes the VBScript sample program This sample program is designed to define the device values of the PLC CPU as the capacity and status of a tank and monitor their values using the ActMLEasylF control This sample program was created on Microsoft FrontPage 2000 1 Using method Opening the sample file opens the communication line to the PLC CPU used After that the device values of the PLC CPU are acquired at intervals of 1 second and are used to display the capacity and status of the tank If an error occurs during execution the error message and error code appear in the message box If an error has occurred refer to 6 ERROR CODES and remove the error cause Precautions for use of the sample program a Before running this sample program make communication settings on the communication setting utility to set the logical station number to 6 In this sample program device D100 is used to denote the tank capacity and device D101 to denote the tank status
17. ActCpuTimeOut Any value specified by user in 250ms units ActCpuType CPU frat CPU type corresponding to target station TONS 1280 ActDestinationPortNumber 0x500 Port number of connected station side module ActHostAddress 1 1 1 1 Host name or IP address of connected station side module 0 ActNetworkNumber 0x00 Target station side module network number 2 ActPacketType EON PACKET BINARY or PACKET ASCII PACKET ASCII 255 ener ActStationNumber OxFF OxFF Target station side module station number 10000 Any value specified by user in ms units 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 5 ActAJ71QE71UDP ActMLAJ71QE71UDP control The following table indicates the properties possessed by the ActAJ71QE71UDP ActMLAJ71QE71UDP control and their default values 1 Configuration 2 Property patterns Connected Relayed Station CPU Connected Relayed Station CRU Relayed Network station o SET module ace QCPU QCPU ana mode A mode CPU 1 feines eto x Relayed Relayed station CPU module IBM PCTAT compatible Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU 3 Property list Property Patterns ES TM 0 Connected station sid ActConnectUnitNumber k 1 Fixed to 0x00 i Fixed to 0x00 0x00 module station number 17 ActCpuType CPU_Q2ACPU CPU type corresponding to target station
18. ActDisdPropertyBit Fixed to 0x01 Fixed to 0x01 Fixed to 0x00 Fixed to 0x00 ActIntelligentPreferenceBit dd Fixed to 0x00 Fixed to 0x00 Fixed to 0x00 Fixed to 0x00 For single CPU station side Ox3FF fixed For single CPU For multiple CPUs Ox3FF fixed Connected CPU ox3F F F0 Multiple CPUs Connected station Connected station ActlONumber 1 No 1 0x3E0 Connected CPU 0x3FF side module side module I O No 2 1 No 1 0x3E0 address address No 2 OX3E1 ActMultiDropChannelNumber Fixed to 0x00 Fixed to 0x00 0x00 or 0x02 Fixed to 0x00 Target station side ActNetworkNumber FON Fixed to 0x00 module network Fixed to 0x00 Fixed to 0x00 number i f ies ible C24 ActParity T ARITY Match to the setting of Q series compatible C 1 ActPortNumber PORT 1 IBM PC AT compatible side COM port number Target station side ActStationNumber Fixed to OxFF module station Fixed to OxFF Fixed to OxFF number QCPU mode 0x00 MELSECNET H only other than QCPU mode 0x01 ActThroughNetworkType including MELSECNET 10 Note that the setting must be the same as set in the network parameter of the GPP function 10000 Any value specified by user in ms units 0 Target station side Target station side 0x00 Fixed to 0x00 Fixed to 0x00 module station module station number number 1 As the I O address specify the value found by dividing the actual first number by 16 2 Note the following points
19. Example Visual Basic VBA VBScript DO amp vbLf amp D1 amp vbLf amp D2 Visual C DO nD1 nD2 d Reserve an array of ISize varSize more for iData IpsData or IpvarData 4 FUNCTIONS MELSOFT 5 Device specifying methods Specify the devices in the following methods Example 1 When devices are specified as follows 3 points When using Visual Basic VBA VBScript MO amp vbLf amp DO amp vbLf amp 8 When using Visual C MO nDO nK8MO MO to M152 Example 2 When devices including CN200 and later of FXCPU are specified 3 points in all 3 When using Visual Basic VBA VBScript DO amp vbLf amp CN200 amp vbLf amp D1 When using Visual C DO NCN200 nD1 2 Bytes L of CN200 2 Lower Bytes Example 3 When devices including FD are specified 3 points in all When using Visual Basic VBA VBScript DO amp vbLf amp FDO amp vbLf amp D1 When using Visual DO nFDO nD1 2 Bytes LL of FDO 2 Lower Bytes Example4 When 8 bit devices including EG have been specified a total of 3 points The following example assumes that 8 bit devices E0000 E0001 of SHARP PLC have been assigned to EGO When using Visual Basic VBA VBScript DO amp vbLf amp EGO amp vbLf amp 01 When using Visual C DO nNEGO nD1 1 The device from where data will be read is only one point of MO and 0 or 1 is stored as the device value 2 Lo
20. Example 3 When devices including FD are specified 3 points in all When using Visual Basic VBA VBScript DO amp vbLf amp FDO amp vbLf amp D1 When using Visual C DO nFDO nD1 1 Example 4 When 8 bit devices including EG have been specified a total of 3 points The following example assumes that 8 bit devices E0000 E0001 of SHARP PLC have been assigned to EGO When using Visual Basic VBA VBScript DO amp vbLf amp EGO amp vbLf amp D1 When using Visual C DO nEGO nD1 2 Upper Bytes 2 Lower Bytes Pet DO 1 Not used 0 is stored 2 Lower bits are stored in device number order 3 For CN200 or later of FXCPU 2 words are read from 1 point by random read 6 Returned value Normal termination 0 is returned Abnormal termination Any value other than 0 is returned Refer to Chapter 6 ERROR CODES POINT 1 The maximum number of read points that may be specified in ISize varSize is up to OX7FFFFFFF points 2 For IData IplData or IpvarData prepare a memory area having the number of points specified in ISize varSize If there is no memory area a critical phenomenon such as an application error may occur 4 FUNCTIONS MELSOFT 4 2 6 WriteDeviceRandom Device random write 1 Applicable ACT controls This function is available for all ACT controls but the ActSupoort and ActMLSupport controls Feature Writes data randomly to devices
21. FXCPU station CPU module Q mode A mode CPU 1 MELSECNET H d IBM PC AT compatible Relayed network MELSECNET 10 See Ree D MELSECNET II x x x x x aan cell alle Ethernet OC Link Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU 3 Property list Property Patterns iind 8 TCR_DTR_OR Depending on used cable _RTS 513 x ActCpuType CPU_FXOCPU CPU type corresponding to target station 1 n ActPortNumber PORT 1 IBM PC AT compatible side COM port number 10000 Any value specified by user in ms units 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 13 ActQU71C24 ActMLQJ71C24 control The following table indicates the properties possessed by the ActQJ71C24 ActMLQJ71C24 control and their default values 1 When there is relayed module in addition to connected station side series compatible C24 a Configuration b Property patterns Connected HERE Station CPU elayed Station Connected series Relayed cpu RelavedNewor ana apu station compatible FXCPU CPU C24 module Q mode Q mode A mode CPU 1 wem e prx IBM PC AT compatible Relayed network MELSECNET 10 a Mese PP PJ Gl ae Eee 96 x x Accessible Property pattern within circle x Inaccessibl
22. Output Data text box top To write a device value enter the device where you want to write a value into the Device Name text box and the device value to be written into the Device Value text box and click the button Clicking the Close Communication button closes the communication line If an error occurs at the execution of any function an error code appears in the Return Value text box If an error has occurred refer to CHAPTER 6 ERROR CODES and eliminate the error cause Precautions for use of the sample program a When using the ActEasylF control set the Ethernet communication information to the logical station number 2 on the communication settings utility before starting the sample program running b When changing the control used click the Close Communication button to close the communication line once then change the control and open the line again 5 SAMPLE PROGRAMS 3 Sample file list MELSOFT The sample files are installed into the following folders at default installation C MELSEC Act Sample Vc SampleEng sampleEng rc C MELSEC Act Sample Vc SampleEng sampleEng dsw C MELSEC Act Sample Vc SampleEng sampleEng dsp C MELSEC Act Sample Vc SampleEng sampleEng cpp C MELSEC Act Sample Vc SampleEng sampleEngDlg cpp C MELSEC Act Sample Vc SampleEng ActDefine h C MELSEC Act Sample Vc SampleEng actaj7 1qe71udp cpp C MELSEC Act Sample Vc SampleEng actaj71qe71udp h C MELSEC Act Sample
23. sua Sample program for troubleshooting function interface P ActSupport control 1 Test program for operation checking Use it to check operation To next page 5 SAMPLE PROGRAMS MELSOFT Compatible Reference Language Section Sample ladder for modem communication AJ71QC24NTEL Sample ladder for CC Link G4 A mode communication E71 tc Sample ladder for Ethernet communication p E71 TCP IP E71 ud Sample ladder for Ethernet communication aa E71 UDP IP Fxcputel Sample ladder for modem communication S d ence FXCPU Siam Sample ladder for Ethernet communication X Devel Qe71 tcp QE71 TCP IP GX Developer Sample ladder for modem communication QJ71C24Callback series compatible C24 that uses setting 1 to specify the callback function Sample ladder for modem communication Q series compatible C24 that uses setting 3 to specify the callback function Sample ladder for modem communication 71C24TEL Q series compatible C24 QJ71C24Callback _ Number 2 Refer to the MX Component Version 3 Operating Manual 5 SAMPLE PROGRAMS MELSOFT 5 1 Visual Basic Sample Program This section explains the sample program for Visual Basic created using the Act controls This sample program was created on Visual Basic 6 0 5 1 1 Sample program for ActEasylF control and ActACPU control This sample program reads data from the PLC CPU and reads writes device values using the ActEasylF
24. which set the timings in case of program settings type and change the contents of the detailed settings that were set using the wizard in case of utility settings type There are chances that the line is not OxF2000005 Check the line disconnected Check the contents of the AT command Check the status of the modem Check the modem Confirm whether the value of the time out is too small 5000ms or more is recommended Modem does not respond properly to the line oxF2000009 PONE ISSUE Check the modem Disconnect command Target did not receive the signal The Receive settings of the modem at the OxF200000A other end may be incorrect The other end may be busy The telephone number may be incorrect Timeout reached for the call back receive OxF200000B COPA waiting time Check the Receive settings of the modem at the other end Check if the other end is busy Check the telephone number Increase the call back receive waiting time ActCallbackReveptionWaitingTimeOut and execute connect again OxF200000C Password of A6TEL QeTEL QJ71C24 units Set the password to ActPassword property and execute x could not be resolved the failed method again 6 ERROR CODES MELSOFT Error Definition OxF2010001 OxF2010002 OxF2010003 OxF2100005 OxF2100008 OxF2100006 OxF2100007 The callback line disconnect wait time is other than 0 180 Seconds The callback execution delay time is other
25. 2 Channel 2 To next page 3 64 3 64 3 DETAILS OF THE ACT CONTROLS MELSOFT DUET Biia RENS 0 Target station side ActNetworkNumber 0x00 Fixed to 0x00 module network Fixed to 0x00 Fixed to 0x00 number ActOutsideLineNumber Empty Outside line access number of any value specified by user ActPassword Empty Password set to the Q series compatible C24 ActPasswordCancelRespons eWaitTime ActPortNumber TU 1 IBM PC AT compatible side COM port number Target station side ActStationNumber nae Fixed to OxFF module station Fixed to OxFF Fixed to OxFF number QCPU mode 0x00 MELSECNET H only other than QCPU mode 0x01 ActThroughNetworkType including MELSECNET 10 Note that the setting must be the same as set in the network parameter of the GPP function ActTimeOut 10000 Any value specified by user in ms units ActTransmissionDelayTime Any value specified by user unit Target station side Target station side ER Fixed to 0x00 Fixed to 0x00 module station module station number number 2 Note the following points when making access via the Ethernet module QE71 ActNetworkNumber and ActStationNumber specify the value set in the parameter setting of the target station side QE71 Set the MNET 10 routing information in the parameter setting of the QE71 Also when making setting specify other than the automatic response system any of the IP address calculation system table conversion system and c
26. 2 When the protocol is UDP IP target module E71 QE71 The functions cannot be executed until the communication target PLC CPU is RUN once An error is returned if the PLC CPU has not been RUN once c The communication line is broken if the CPU becomes faulty or the Ethernet module is reset during Ethernet communication when the protocol is TCP IP In that case perform line close processing Close and then execute reopen processing Open d When two different communication systems protocols are used to make access from one IBM PC AT compatible to one Q series compatible E71 two station numbers i e for TCP IP and for UDP IP must be set Example When MX Component uses TCP IP and GX Developer uses UDP IP IBM PC AT compatible TCP IP station number for MX Component 2 UDP IP station number for GX Developer 3 series compatible E71 Station number 1 GX Developer UDP IP MX Component TCP IP Set different station numbers as the TCP IP station number for MX Component and UDP IP station number for GX Developer If they are set to the same station number an error will occur on the Ethernet module side 8 About switch settings of E71 and QE71 If the four lower digits of the error code that occurred during Ethernet communication using the E71 or QE71 is not indicated in the E71 or QE71 manual check t
27. 3 DETAILS OF THE ACT CONTROLS MELSOFT 2 When connected station side QC24 N is used for multidrop link with relayed module a Configuration b Property patterns Connected Connected Relayed Station CPU station ere Station CPU Relayed Network CPU Tm i QCPU QCPU ana Multidrop link mode A mode CPU 1 IBM PC AT compatible Relayed network Independent mode 2 Relayed Relayed Synchronous station CPU module 2 Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU 2 Indicates the CH2 side setting CH1 side fixed to independent mode c Property list Property Patterns A enm 19200 ActBaudRate BAUDRATE Match to the setting of QC24 N 19200 ActConnectUnitNumber Connected station side module station number ActControl ee Depending on used cable _RTS 17 CPU_Q2ACPU 1023 Connected station side ActlONumber 1 Fixed to Ox3FF Fixed to Ox3FF pent Ox3FF module I O address Penes ActNetworkNumber Fixed to 0x00 Fixed to 0x00 Fixed to 0x00 ActParity a PARITY Match to the setting of QC24 N ActPortNumber e 1 IBM PC AT compatible side COM port number ActStationNumber Fixed to OXOFF Fixed to OXOFF Fixed to OXOFF Any value specified by user in ms units Target station side module ActUnitNumber Fixed to 0x00 3 Fixed
28. Exit the program and restart the IBM PC AT compatible 0x0407440A Error in PLC Parameter Block No 4000 Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Error in PLC Parameter Block No 5000 0x0407440B m Reinstall MX Component The specified network type is not supported Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x0407440C Error in PLC Parameter Block No 5001 Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x0407440D Error in PLC Parameter Block No 5002 Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x0407440E Error in PLC Parameter Block No 5003 Reinstall MX Component Inform the telephone center of our company n Exit the program and restart the IBM PC AT compatible Error in PLC Parameter Block No 5NMO 0x0407440F Reinstall MX Component The specified network type is not supported Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x04074410 Error in PLC Parameter Block No 5NM1 Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Error in PLC Parameter Block No 5NM2 0 04074411 Reinstall MX Compone
29. Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Error in Common Parameter Block No FF42 0x04074318 Reinstall MX Component Timer processing points are not set Inform the telephone center of our company Error in Common Parameter Block No FF30 Exit the program and restart the IBM PC AT compatible 0x04074319 Setting value device for specified extended timer Reinstall MX Component does not exist Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x0407431A Error in Common Parameter Block No FF44 Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x0407431B Error in Common Parameter Block No FF45 Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Error in Common Parameter Block No FF60 0 0407431 Reinstall MX Component Terminal Settings are not set Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Error in Common Parameter Block No FF70 0x0407431D Reinstall MX Component User Release area is not set Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x04074401 Error in Conversion of PLC Parameter Block Reinstall MX Component Inform the telepho
30. Nalue set to argument of EntryDeviceStatus LONG IReturnCode Returned value to EntryDeviceStatus LONG ICount Loop counter Sets DO D1 and D2 to the checked device list szDevice DO nD1 nD2 Sets the checked device value 10 for DO IInputData 0 10 Sets the checked device value 0 for D1 IInputData 1 0 Sets the checked device value 10 for D2 IInputData 2 10 f the set value is negative stores O s into the upper 2 bytes for conversion into the value to be set to EntryDeviceStatus Loops through the number of device points for ICount 0 ICount 2 Count f the set value is negative if ImputData ICount lt 0 Masks with 65535 0000FFFF hex to store 0 5 into upper 2 bytes IEntryData ICount IInputData ICount amp OxOOOOFFFF Jelse f the set value is positive assigns the value as is to IEntryData IEntryData ICount IInputData ICount Executes EntryDeviceStatus IReturnCode m ActLLT EntryDeviceStatus szDevice 3 5 IEntryData To next page APP 5 APP 5 APPENDICES MELSOFT When 1 gt void CVCTestDlg OnOnDeviceStatusActllt1 LPCTSTR szDevice long long IReturnCode LONG ICheckData Nalue set to EntryDeviceStatus value before Os are stored into the upper 2 bytes f the device value whose condition was established is a WORD type negative value greater than 32767 7FFF Hex ifIData gt Ox7FFF Since 0 ar
31. Relayed station CPU module module Relayed network Relayed Relayed station CPU module IBM PC AT compatible b Property patterns Connected 1 re Station CPU Relayed Station CPU wn Boar elayed Networl QnACPU QCPU QCPU QnA ACPU FXCPU mode A mode CPU 1 lectin x x x x J x Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU c Property list P rty Patt Property Default Value CPU type corresponding to target station Target station side For single CPU OxSFF fixed For multiple CPUs Connected station Fixed to 0x00 Fixed to OXSFF Connected CPU oxarr side relayed module No 1 0x3E0 address No 2 0x3E1 No 3 0x3E2 No 4 0x3E3 ActMutiDropChannetNumber 0 00 Target station side Target station side Connected station ActNetworkNumber Fixed to 0x00 module network module network side module network number number number Board No of IBM PC AT compatible side MELSECNET 10 board PORT 1 to PORT 4 first to fourth boards JactPontNumber 1 255 Target station side Target station side Connected station ActStationNumber OxFF Fixed to OxFF module station module station side module station number number number Target station side ActUnitNumber Fix
32. 0x01 target station is 0x01 target station is QCPU Q mode QCPU Q mode ActintelligentPreferenceBit Fixed to 0x00 Fixed to 0x00 0x00 target station is 0 00 target station is other than QCPU Q Jother than QCPU mode mode Target station side For single CPU Ox3FF fixed For multiple CPUs Connected station Connected station Connected CPU 0x3FF side module I O side module I O No 1 0x3E0 ddress address For single CPU Ox3FF fixed For multiple CPUs Connected CPU Ox3FF No 1 OXSEO No 2 0x3E1 No 2 0x3E1 ActMultiDropChannelNumber Fixed to 0x00 Fixed to 0x00 0x00 or 0x02 Fixed to 0x02 Target station side ActNetworkNumber Fixed to 0x00 module network Fixed to 0x00 Fixed to 0x00 number ActPortNumber as 1 IBM PC AT compatible side COM port number Target station side ActStationNumber Gap Fixed to OxFF module station Fixed to OxFF Fixed to OxFF number QCPU mode 0x00 MELSECNET H only other than QCPU mode 0x01 ActThroughNetworkType including MELSECNET 10 Note that the setting must be the same as set in the network parameter of the GPP function 10000 Any value specified by user in ms units 0 Target station side Target station side 0x00 Fixed to 0x00 Fixed to 0x00 module station module station number number 1 As the I O address specify the value found by dividing the actual first number by 16 2 Note the following points when making access via the Ethernet module series c
33. 15 1 M16 to M31 1 M32 to M47 1 When CN200 and later of FXCPU are specified When FD device is specified 4 word device Example 6 points from CN200 2 Example 6 points from FDO LL of FDO L of CN200 2 Lower Bytes H of CN200 2 Upper Bytes L of CN201 2 Lower Bytes H of CN201 2 Upper Bytes L of CN202 2 Lower Bytes H of CN202 2 Upper Bytes HH of FDO mS JL lt 8 bit devices assigned to gateway devices gt Example When 8 bit devices E0000 to E0007 of SHARP PLC have been assigned to 4 points starting from EGO EGO EG3 1 Lower bits are stored in device number order 2 For CN200 or later of FXCPU 2 words are read from 2 points Read from 1 point will result in an error 6 Returned value Normal termination 0 is returned Abnormal termination Any value other than 0 is returned Refer to Chapter 6 ERROR CODES POINT 1 The maximum number of read points that may be specified in ISize varSize should satisfy the following range Read starting device number number of read points lt last device number 2 When the bit device is specified a multiple of 16 may be specified as the device number 3 For iData IpsData or lpvarData prepare a memory area having the number of points specified in ISize varSize If there is no memory area a critical phenomenon such as an application error may occur 4 FUNCTIONS MELSOFT 4 2 19 WriteDeviceBlock2
34. A mode CPU 1 E MELsECNETH x x x x x IBM PG AT compatible Relayed network MELSECNET 10 Relayed Relayed ion CPU dul station CPU module cne x x x X Ex pem cr i Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU 3 Property list Property Patterns EE mer xm 8 c3 p gt 9600 BAUDRATE Fixed to BAUDRATE 9600 1 _ 9600 8 ActControl TCR DTR OR Depending on used cable _RTS ActCpuType AIN uw CPU type corresponding to target station Target station side module ActNetworkNumber Fixed to 0x00 9 Fixed to 0x00 a network number ActPortNumber t 1 IBM PC AT compatible side COM port number Target station side module Target station side module ActStationNumber Fixed to OxFF 9 9 om station number station number lActTimeOut 1000 Any value specified by user in ms units 1 BAUDRATE 9600 may be used only when the connected station CPU is the ABUSHCPU S1 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 12 ActFXCPU ActMLFXCPU control The following table indicates the properties possessed by the ActFXCPU ActMLFXCPU control and their default values 1 Configuration 2 Property patterns Connected Station CPU e Relayed Station CPU elayed Networl Connected Relayed FXCPU QCPU
35. ACPU FXCPU mode A mode CPU 1 X X x MELSECNETH x a Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU 3 Property list Property Patterns Property Default Value ActATCommand Any value specified by user ActATCommandPasswordCancelRetry Times Any value specified by user ActATCommandResponseWaitTime Any value specified by user unit s ActConnectionCDWaitTime Any value specified by user unit ActConnectionModemReportWaitTime Any value specified by user unit s 513 ActCpuType CPU FXOCPU CPU type corresponding to target station ActDialNumber Empty Telephone number of any value specified by user ActDisconnectionCDWaitTime 5 Any value specified by user unit s ActDisconnectionDelayTime Any value specified by user unit s ActLineType LINETYPE_ LINETYPE_PULSE LINETYPE_TONE LINETYPE_ISDN TONE ActOutsideLineNumber Empty Outside line access number of any value specified by user ActPasswordCancelResponseWaitTime Any value specified by user unit s 1 7 ActPortNumber PORT 1 IBM PC AT compatible side COM port number ActTimeOut 10000 Any value specified by user in ms units ActTransmissionDelayTime aa Any value specified by user unit 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 30 ActQJ71C24TEL control The following table indicates the properties possessed by the ActQJ71C24TEL control and their defa
36. ActBaudRate BAUDRATE Match to the setting of QC24 N 19200 ActConnectUnitNumber Connected station side module station number ActControl TCR 2 OR Depending on used cable _RTS 17 ActCpuType CPU_Q2ACPU CPU type corresponding to target station 1023 Connected station Fixed to Ox3FF Fixed to Ox3FF Fixed to OX3FF side module Ox3FF address 0 Target station side ActNetworkNumber 0x00 Fixed to 0x00 module network Fixed to 0x00 Fixed to 0x00 number ActParity ODD ARITY Match to the setting of QC24 N ActPortNumber Aone 1 IBM PC AT compatible side COM port number 255 Target station side Target station side ActStationNumber OxFF Fixed to OxFF module station module station Fixed to OxFF number number 10000 Any value specified by user in ms units 0 Target station side 0x00 Fixed to 0x00 Fixed to 0x00 Fixed to 0x00 module station number 1 As the I O address specify the value found by dividing the actual first number by 16 2 Note the following points when making access via the Ethernet module QE71 For ActNetworkNumber and ActStationNumber specify the value set in the parameter setting of the target station side QE71 Setthe MNET 10 routing information in the parameter setting of the QE71 Also when making setting specify other than the automatic response System any of the IP address calculation system table conversion system and combined system as the MNET 10 routing system 3 30 3 30
37. ActConnectWay is other than auto line connect callback number specification callback connect number specification or callback request number specification Recognizes the line type is ipis Description Property window input value ActLineType LONG LINETYPE_PULSE 0x00 Pulse rotary dialing line LINETYPE_TONE 0x01 Tone pushbutton dialing line LINETYPE_ISDN 0x02 ISDN ISDN line ActATCommand BSTR ActOutsideLineNumber BSTR 1 You need not set ActPassword if a password has not been set to the A6TEL Q6TEL series compatible C24 or series compatible E71 2 If the characters entered exceed the limit of set characters the characters outside the setting range are ignored 3 Only Auto line connect can be selected for the ActA6TEL ActQ6TEL ActFXCPUTEL and ActAJ71QC24TEL controls For details of the connection system for use of the ActAJ71QC24TEL control refer to Appendix 1 About the Connection System of the Callback Function 3 8 3 8 3 DETAILS OF THE ACT CONTROLS MELSOFT Property Name Type ActConnectionCDWaitTim e LONG ActConnectionModemRe portWaitTime LONG ActDisconnectionCDWait Time LONG ActDisconnectionDelayTi me LONG ActTransmissionDelayTim e LONG ActATCommandRespons eWaitTime LONG ActPasswordCancelResp onseWaitTime LONG ActATCommandPasswor ActCallbackCancelWaitTi me LONG ActCallbackDelayTime LONG ActCallbackRe
38. ActHostAddress 1 1 1 1 Host name or IP address of connected station side module 1023 Connected station side ActlONumber 7 Fixed to OX3FF Fixed to OX3FF hi met OxSFF relayed module I O address 1 Target station side module Target station side module Connected station side QE71 0x01 network number network number network number ActPortNumber x3 6 5001 IBM PC AT compatible side port number ActNetworkNumber 2 1 ActSourceNetworkNumber 4 0x01 IBM PC AT compatible side network number 2 ActSourceStationNumber 5 0x02 IBM PC AT compatible side station number 1 Target station side module Target station side module ted stati ide QE71 ActStationNumber 2 9 9 m s 0 01 station number station number station number 0 ActHostAddress 1 1 1 1 Host name or IP address of connected station side module ActTimeOut 10000 Any value specified by user in ms units T Tum ActUnitNumbe E cw Fixed to 0x00 Fixed to 0x00 arget station side module 0x00 station number 1 For access to another station via MELSECNET 10 for the property pattern of specify the station number of the connected station side QE71 set in the Ethernet parameter of the connected station side QE71 2 For the property pattern of I or specify the value set in the target station side parameter for ActNetworkNumber and ActStationNumber 3 Specify fixed 5001 when the Ethernet parameter setting of t
39. Device batch write 1 Applicable ACT controls This function is available for all ACT controls but the ActSupoort and ActMLSupport controls Feature Batch writes 2 byte data to devices Format Visual Basic VBA IRet object WriteDeviceBlock2 szDevice ISize iData 0 Long IRet Returned value Output String szDevice Device name Input Long ISize Number of write points Input Integer iData n Device values to be written Input Visual C IRet object WriteDeviceBlock2 szDevice ISize lpsData Long IRet Returned value Output CString szDevice Device name Input Long ISize Number of write points Input Short lpsData Device values to be written Input VBScript varRet object WriteDeviceBlock2 varDevice varSize varData VARIANT varRet Returned value LONG type Output VARIANT varDevice Device name character string type Input VARIANT varSize Number of write points LONG type Input VARIANT varData Device values to be written SHORT type Input Explanation a Batch writes ISize varSize of device values to the devices starting from the one specified in szDevice varDevice b Store the device values to be written in iData IpsData or varData c Reserve an array of ISize varSize or more for iData lpsData or varData 4 FUNCTIONS MELSOFT 5 Device specifying methods Specify the devices in the following methods When bit device is specified gt When word device is specified Example Dat
40. Driver not yet started 0x01808003 y Ld The network board driver is not started Start the driver The network board driver is not started 0x01808004 Error in overlap event generation MUTEX generation error 0x01808005 Creation of MUTEX to exercise exclusive control failed Socket object could not be created Socket object generation error 0x01808007 Creation of the Socket object failed Port connection error 0x01808008 Establishment of connection failed The other end does not respond COM port handle error The handle of the COM port cannot be acquired PURUS The COM port objet cannot be copied The SOCKET object cannot be copied 0x0180800A Buffer size setting error Setting of the port buffer size failed DCB value acquisition error Acquisition of the port DCB value failed DCB setting error Setting of the COM port DCB value failed Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Check for a running application which uses the same port number Retry after changing the port number value of the property Retry after changing the port number value on the communication settings util
41. Execution of Close Telephone line being connected v Execution of Disconnect End Execution of Disconnect 1 The actual telephone line is disconnected End Disconnect of the object A does not terminate normally until after Disconnect of the object B is executed 4 FUNCTIONS MELSOFT 4 2 26 GetErrorMessage Gets error message 1 2 3 Applicable ACT controls This function is available for the ActSupport and ActMLSupport controls Feature Gets the error definition and corrective action corresponding to the error code Format Visual Basic VBA IRet object GetErrorMessage IErrorCode szErrorMessage Long IRet Returned value Output String IErrorCode Error code Input String szErrorMessage Error message Output Visual C IRet object GetErrorMessage IErrorCode 1 2 Long IRet Returned value Output Long IErrorCode Error code Input BSTR lpszErrorMessage Error message Output VBScript varRet object GetErrorMessage varErrorCode IpvarErrorMessage VARIANT varRet Returned value LONG type Output VARIANT varErrorCode Error code LONG type Input VARIANT lpvarErrorMessage Error message Output character string type Explanation a Reads the error definition and corrective action of the error code specified in IErrorCode varErrorCode b The read error definition and corrective action are stored into szErr
42. Failed in securing the memory Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible DLL read error 0x03000004 NA Reinstall MX Component Failed in reading DLL Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x03000005 PES Reinstall MX Component Failed in securing the resources Error in securing Resources Inform the telephone center of our company Check if there is enough space on the hard disk 0x03010001 File Creation Error Exit the program and restart the IBM PC AT compatible x Failed in creating the file Reinstall MX Component Inform the telephone center of our company n Exit the program and restart the IBM PC AT compatible File Open Error 0x03010002 Reinstall MX Component Failed to open the file Inform the telephone center of our company Buffer Size Error Exit the program and restart the IBM PC AT compatible 0x03010003 The buffer size specified is either incorrect or Reinstall MX Component not enough Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible SIL Sentence formation error 0x03010004 uc Reinstall MX Component SIL sentence formation is incorrect Inform the telephone center of our company Specify a shorter filename Filename Error Exit the program and restart the IBM PC AT compatible 0x03010005 en The specified filename
43. Format Visual Basic VBA IRet object WriteDeviceRandom szDeviceList ISize IData 0 Long IRet Returned value Output String szDevicelist Device name Input Long ISize Number of write points Input Long IData n Device values to be written Input Visual C IRet object WriteDeviceRandom szDeviceLlist pIData Long IRet Returned value Output CString szDevicelist Device name Input Long ISize Number of write points Input Long kIplData Device values to be written Input VBScript varRet object WriteDeviceRandom varDeviceList varSize varData VARIANT varRet Returned value LONG type Output VARIANT varDevicelist Device name character string type Input VARIANT varSize Number of write points LONG type Input VARIANT varData Device values to be written Input LONG array type Explanation a The device values for ISize varSize are written to the devices specified in szDeviceList varDeviceList b The read device values are stored in IplData or varData c Using the line feed symbol separate the devices in the character string specified in the device list The last device need not be followed by the line feed symbol Example Visual Basic VBA VBScript DO amp vbLf amp D1 amp vbLf amp D2 Visual DO nD1 nD2 d Reserve an array of ISize varSize or more for IData IplData or varData 4 FUNCTIONS MELSOFT 5 Device specifying methods Specify the devices in the f
44. Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible List Data Error 0x0404000D et Reinstall MX Component The list data to be converted is incorrect Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Comment Data Error 0 0404000 Reinstall MX Component The comment data to be converted is incorrect Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Statement Error 0x0404000F e Reinstall MX Component The statement data to be converted is incorrect Inform the telephone center of our company Other Errors Exit the program and restart the IBM PC AT compatible 0x04040010 Other errors generated during the conversion of Reinstall MX Component CAD code to Intermediate code Inform the telephone center of our company Intermediate Code Data Error Exit the program and restart the IBM PC AT compatible 0x04041001 There is no intermediate code to be converted Reinstall MX Component The format of the intermediate code is incorrect Inform the telephone center of our company CAD Data Type Error Exit the program and restart the IBM PC AT compatible 0x04041002 The input CAD data type and the output CAD Reinstall MX Component data type are not matching Inform the telephone center of our company Exit the program and restart the compatible
45. K8MO When using Visual MO nDO nK8MO0 2 Bytes DO MO to M152 Example 2 When devices including CN200 and later of FXCPU are specified points in all 3 When using Visual Basic VBA VBScript DO amp vbLf amp CN200 amp vbLf amp D1 When using Visual C DO NCN200 nD1 L of CN200 2 Lower Bytes 3 Example 3 When devices including FD are specified 3 points in all When using Visual Basic VBA VBScript 00 amp vbLf amp FDO amp vbLf amp D1 When using Visual C DO nFDO nD1 LL of FDO 2 Lower Bytes Example4 When 8 bit devices including EG have been specified a total of 3 points The following example assumes that 8 bit devices E0000 E0001 of SHARP PLC have been assigned to EGO When using Visual Basic VBA VBScript DO amp vbLf amp EGO amp vbLf amp D1 When using Visual C DO nEGO nD1 1 The device to where data will be written is only one point of MO and the lowest bit of the set 2 byte data is written as the device value 2 Lower bits are stored in device number order O s are written to the upper 2 bytes M16 to M31 3 For CN200 and later of the FXCPU specifying 1 point for WriteDeviceRandom2 writes data to the L lower 2 bytes of the specified device O s are written to the upper 2 bytes of the specified device 4 FUNCTIONS MELSOFT 6 Returned value Normal termination 0 is returned Abnormal termination Any value ot
46. VARIANT varRet Returned value LONG type Output VARIANT varDeviceList Device name character string type Input VARIANT varSize Number of read points LONG type Input Read device values VARIANT IpvarData Output LONG array type R Explanation a The device values for ISize varSize are read from the device group specified in szDeviceList varDeviceList b The read device values are stored in IplData or lpvarData c Using the line feed symbol separate the devices in the character string specified in the device list The last device need not be followed by the line feed symbol Example Visual Basic VBA VBScript DO amp vbLf amp D1 amp vbLf amp D2 Visual C DO nD1 nD2 d Reserve an array of ISize varSize or more for IData IplData or IpvarData 4 FUNCTIONS MELSOFT 5 Device specifying methods Specify the devices in the following methods Example 1 When devices are specified as follows 3 points When using Visual Basic VBA VBScript MO amp vbLf amp DO amp vbLf amp K8MO When using Visual MO nDO nK8MO 2 Upper Bytes 2 Lower Bytes ae x uu M16 to M31 2 MO to 5 2 Example 2 When devices including CN200 and later of FXCPU are specified points in all 3 When using Visual Basic VBA VBScript DO amp vbLf amp CN200 amp vbLf amp D1 When using Visual DO NCN200 nD1 2 Upper Bytes 2 Lower Bytes 1 H of CN200 L of CN200
47. bas Cancel Help Don t show this dialog in the future 3 Registering ActDefine bas adds it to Modules Project1 Project1 E Forms FL Formi Form Modules Module ActDefine bas 2 ABOUT THE ACT CONTROLS 2 Project Microsoft Visual Basic design File Edit View Project Format Debug Run Qi amp 1 Add Form x Add MDI Form 4t Add Module 49 Add Class Module 18 Add User Control 16 Add Property Page NO Add User Document Add DHTML Page Add Data Report Add WebClass Add File d General gt x 7 Ctrl D l 4 Remove Form1 References Project1 Properties i a m AA Components x Controls Designers Insertable Objects C Microsoft Winsock Control 6 0 MITSUBISHI ActBoard Controls MITSUBISHI ActCcG4 Controls MITSUBISHI ActComLk Controls MITSUBISHI ActEther Controls CI MITSUBISHI ActLIt Controls CI MITSUBISHI ActMulti Controls 1 MITSUBISHI ActPcCom Controls MITSUBISHI ActPcUsb Controls J MITSUBISHI ActWizard Control 1 MsFlexGrid Wizard Cl Outrider SpinButton Control C Package and Deployment Wizard Browse selected Items Only Active Setup Control Library C WINDOWS SYSTEM ASCTRLS OCX Location Cancel Apply amp us E E Registering
48. in the Ethernet parameter open system 5 Unlocking password when using QJ71E71 The range where the password can be unlocked by remote operation is up to the connection target station If the password is set also on the lower layer communication cannot be made with the PLC CPU on the lower layer Starting Enter password to Source unlock AAAA No Remote Password 1 With setting AAAA 2 Without setting 3 With setting AAAA 4 5 With setting BBBB Without setting Accessible x Inaccessible 1 Dr ANE E M CREDE RM RERO 1 Unlocking QJ71E71 password enables access to PLC CPUs in this range 6 About use of the Q4ARCPU When using the UDP IP protocol of Ethernet communication use the Q4ARCPU whose year and month of manufacture is 0012 or later and whose function version is B or later 7 About Ethernet communication a When access is made to the QnACPU AnUCPU QCPU A mode motion controller CPU via the E71 the device range is equivalent to that of the AnACPU b When making access to the PLC CPU through Ethernet communication the functions may not be executed depending on the PLC CPU status 1 When the protocol is TCP IP target module E71 QE71 The functions can be executed only when the communication target PLC CPU is in the RUN mode An error is returned if the PLC CPU is in other than the RUN mode
49. klplRetCode Returned value of communication function Output 4 3 23 GetDevice2 Device data acquisition hResult object GetDevice2 szDevice IplRetCode HRESULT hResult Returned value of COM Output BSTR szDevice Device name Input SHORT kIpsData Acquired data Output LONG lplRetCode Returned value of communication function Output 4 3 24 Connect Telephone line connection hResult object Connect IplRetCode HRESULT hResult Returned value of COM Output LONG klplRetCode Returned value of communication function Output 4 FUNCTIONS MELSOFT 4 3 25 Disconnect Disconnects telephone line hResult object Disconnect lplRetCode HRESULT hResult Returned value of COM Output LONG xkIplRetCode Returned value of communication function Output 4 3 26 GetErrorMessage Gets error message hResult object GetErrorMessage IErrorCode lpszErrorMessage lplRetCode HRESULT hResult Returned value of COM Output LONG lErrorCode Error code Input BSTR 1 2 Error message Output LONG kIplRetCode Returned value of communication Output function 5 SAMPLE PROGRAMS MELSOFT 5 SAMPLE PROGRAMS This chapter describes the sample program registered at installation of MX Component 1 Sample programs test programs and sample sequence programs a Sample programs test programs The sample programs are attached for your reference when creating a user program The test programs are att
50. sesssssssssssssssssseeeeneeeee netten trennen nnns 4 16 4 2 8 GetDevice Device data acquisition eccecceseeeeeeeeeeeeseeeeceeeeeeeaecaecaeeaeeaesaeseeseaesaesaeseetaesaeseeseateats 4 17 4 2 9 ReadBuffer Buffer memory read nennen rennen nnns 4 18 4 2 10 WriteBuffer Buffer memory write essent 4 21 4 2 11 GetClockData Clock data read sse nnne nennen 4 24 4 2 12 SetClockData Clock data write sesenta 4 26 4 2 13 GetCpuType PLC CPU type read tnnt nnne trennen nns 4 28 4 2 14 SetCpuStatus Remote 4 32 4 2 15 EntryDeviceStatus Device status monitor registration ssssseeeeenne 4 34 4 2 16 FreeDeviceStatus Device status monitor deregistration sse 4 38 4 2 17 OnDeviceStatus Announces event sse nnne nnne nnns 4 39 A 15 A 15 4 2 18 ReadDeviceBlock2 Device batch read seen 4 41 4 2 19 WriteDeviceBlock2 Device batch write sss 4 43 4 2 20 ReadDeviceRandom Device random read essen 4 45 4 2 21 WriteDeviceRandom2 Device random write sese 4 48 4 2 22 SetDevice2 Device data setting sssssssssssssssssssseseseen enne 4 51 4 2 23 GetDevice2 Device data acquisition
51. 0x00 Connected CPU Connected CPU 0x3FF No 1 0x3E0 No 1 0x3E0 No 2 0x3E1 No 2 0x3E1 No 3 Ox3E2 23 No 4 0 ActDidPropertyBit Fixed to 0x00 Fixed to 0x01 Fixed to 0x00 Fixed to 0x00 ActDsidPropertyBit Fixed to 0x00 Fixed to 0x01 Fixed to 0x00 Fixed to 0x00 To next page 3 DETAILS OF THE ACT CONTROLS MELSOFT Property Patterns POR iain For single CPU 0x3FF fixed For multiple CPUs C ied PULSER Connected station Connected station ActlONumber 1 Sy Fixed to 0x00 on side relayed module side relayed module No 1 0x3E0 address address No 2 OX3E1 ActMultiDropChannelNumber Fixed to 0x00 Fixed to 0x00 Fixedto 0x02 to 0x02 Fixed to 0x00 to 0x00 Target station side Connected station Connected station ActNetworkNumber m Fixed to 0x00 module network side module network side module network number number number Board No of IBM PC AT compatible side MELSECNET H board ActPonnumber gg 1 PORT 1 to PORT 4 first to fourth boards Target station side Connected station Connected station ActStationNumber Fixed to OXFF module station side module station side module station number number number ActThroughNetworkType 0x00 MELSECNET H only 0x01 including MELSECNET 10 Target station side Target station side ActUnitNumber do Fixed to 0x00 Fixed to 0x00 module station module station number number 1 As the I O address specify the value found by di
52. 0x040B100A Non SFC Program Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Abnormal Character String Specified error 0x04050001 US Reinstall MX Component Device character string specified is incorrect Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Device Points Error 0 04050002 Reinstall MX Component Device points are out of range Inform the telephone center of our company Other Errors 2 Exit the program and restart the IBM PC AT compatible The errors generated during the conversion of 4 0 04050003 Reinstall MX Component the Device Character String to Device Inform the telephone center of our company Intermediate Code Device Name Error Exit the program and restart the IBM PC AT compatible 0x04051001 The classification specified for the device Reinstall MX Component intermediate code is incorrect Inform the telephone center of our company Device Name Error DI Exit the program and restart the IBM PC AT compatible The classification specified for the extended 0 04051002 1X Reinstall MX Component specification device intermediate code is Inform the telephone center of our company incorrect Other Errors Exit the program and restart the IBM PC AT compatible The errors generated during the conversion of 0
53. 1 BZU C3 B 5 a H K T LogicalStationNumber 0 2 2 DeviceNlame D0 _LoggngTimingthhimm ss 0 01 1 Leena at 4 5 5 LoggingStop 7 Message 8 HetumCode 3 10 DateTime Daal Dat Osas Dats5 DataS Dsts 20V 00 00 i 2 3 3 5 El 7 8 3 3 12 20011 0 00 00 i 2 3 D 5 D 7 8 3 3 3 20017171 0 00 00 1 2 3 5 D 7 8 3 10 200111 0 00 00 1 2 3 4 5 8 7 8 3 1 5 2000 11 0 00 00 1 2 3 4 5 6 7 8 3 30 3 2001 0 00 00 1 2 3 4 5 8 E 8 3 10 2001 0 00 00 1 2 3 4 5 6 7 8 3 3 1 200V1 0 00 00 1 2 3 4 5 5 7 8 3 3 18 20011 0 00 00 1 2 3 D 5 D 7 8 3 3 20 20017171 0 00 00 1 2 3 5 7 8 3 10 a 22 aam EXT 25 p Data2 25 Data Datat 6 4 Datas 30 4 Data 5 Dau 32 2 4 3 E E E Datas m 0 Data X 1 2 3 4 5 6 8 3 0 Dau m 36 ES 14 4 gt M NLOGGING 1 Ready NUM Enter the logical station number that was specified in communication settings on the LogicalStationNumber 5 communication setting utility Enter the first device of the devices whose data will be read Enter the logging interval Example Logging at intervals of 1 second 0 0 1 Logging at intervals of 1 hour 30 minutes 1 30 0 Message Shows the function execution result Character string LoggingTimeing hh mm ss ReturnCode Shows the function execution
54. 10 A2USCPU 1 CPU Q25PHCPU 0x42 _ Q25PHCPU A2ASCPU S1 S1 CPU QO2CPU A 0x141 QO2 H CPU A CPU A2USHS1CPU A2USHCPU S1CPU CPU QO6CPU A 0x142 QO6HCPU A 0x10F CPU board Q2ACPU Q2ASCPU A3UCPU CPU Q2ACPU 0x11 CPU A3UCPU 0x110 ActCpuType Q2ASHCPU A2ASCPU S30 LONG Q2ACPU S1 CPU_A4UCPU 0x111 A4UCPU CPU Q2ASICPU 0x12 QPASCPU S1 Q2ASHCPU S1 CPU Q3ACPU 0x13 Q9ACPU ATSCPU S1 CPU A1SCPU 0x104 A1SCPUC24 R2 ATSJCPU CPU ANCPU 0x106 A2CCPU CPU A2CCPU 0x107 A2CCPUC24 PRF BOARD 0x401 A2CJCPU A2NCPU S1 1 Except CPU board A2SCPU S1 For own board access 1 CPU_A2NCPU 0x108 3 DETAILS OF THE ACT CONTROLS MELSOFT Property Name Type Specify the connection port number of the IBM PC AT compatible When the Ethernet module is connected set any value as the port number of the requesting source IBM PC AT compatible When 0 was specified as the port number the MELSECNET 10 routing system should be the automatic response system When the system selected is other than the automatic response system via QE71 you should set the fixed value 5001 Also when the control for network board is used specify the first board as PORT_1 and the second and subsequent boards as PORT_2 PORT_3 Property value Description ec window input value ActPortNumber _ PORT 0 0 1 0x01 Communication Communication port 1
55. 10 communication etc there will be restrictions as placed on the corresponding communication path controls 2 Feature Writes time to the clock data of the PLC CPU 3 Format Visual Basic VBA IRet object SetClockData iYear iMonth iDay iDayOfWeek iHour iMinute iSecond Long IRet Returned value Output Integer iYear Year value to be written Input Integer iManth Month value to be written Input Integer Day value to be written Input Integer iDayOfWeek Day of week value to be written Input Integer iHour Hour value to be written Input Integer Minute value to be written Input Integer iSecond Second value to be written Input Visual C IRet object SetClockData sYear sMonth sDay sDayOfWeek sHour sMinute sSecond Long IRet Returned value Output Short sYear Year value to be written Input Short sMonth Month value to be written Input Short sDay Day value to be written Input Short sDaYOfWeek Day of week value to be written Input Short sHour Hour value to be written Input Short sMinute Minute value to be written Input Short sSecond Second value to be written Input 4 26 4 26 4 FUNCTIONS MELSOFT VBScript varRet object SetClockData varYear varMonth varDay varDayOfWeek varHour varMinute varSecond VARIANT varRet Returned value LONG type Output VARIANT varYear Year value to be written SHORT type Input VARIANT varManth Month value to be written SHORT type Input VARIANT v
56. 10 communication etc there will be restrictions as placed on the corresponding communication path controls 2 Feature Writes values to the buffer memory of the special function module 3 Format Visual Basic VBA IRet object WriteBuffer IStartlO IWriteSize iData 0 Long IRet Returned value Output Long IStartlO First number of module to Input where values will be written Long Address Buffer memory address Input Long IWriteSize Write size Input Integer iData n Values written to buffer memory Input Visual IRet object WriteBuffer IStartlO Address IWriteSize lpsData Long IRet Returned value Output Long IStartlO First O number of module to Input where values will be written Long Address Buffer memory address Input Long IWriteSize Write size Input Short kIpsData Values written to buffer memory Input 4 21 4 21 4 FUNCTIONS 4 MELSOFT VBScript varRet object WriteBuffer varStartlO varAddress varWriteSize varData VARIANT varRet Returned value LONG type Output VARIANT varStartlO First O number of module to Input where values will be written LONG type VARIANT varAddress Buffer memory address Input LONG type VARIANT varWriteSize Write size LONG type Input VARIANT varData Values written to buffer memory SHORT array type Explanation a As the module I O number specified in IStartlO varStartlO specify a val
57. 2 bytes in SetDevice2 and 0 s are written to the data area of the upper 1 word 2 bytes When writing data to a double word device use WriteDeviceRandom or SetDevice 4 FUNCTIONS MELSOFT 4 2 23 GetDevice2 Device data acquisition 1 Applicable ACT controls This function is available for all ACT controls but the ActSupoort and ActMLSupport controls 2 Feature Gets 2 byte data from one device point 3 Format Visual Basic VBA object GetDevice2 szDevice iData Long IRet Returned value Output String szDevice Device name Input Integer iData Acquired data Output Visual object GetDevice2 szDevice Long IRet Returned value Output CString szDevice Device name Input Short kIpsData Acquired data Output VBScript varRet object GetDevice2 varDevice IpvarData VARIANT varRet Returned value LONG type Output VARIANT varDevice Device name Input character string type p VARIANT IpvarData Acquired data SHORT type Output 4 Explanation a Stores the data of the one device point specified in szDevice varDevice into iData lpsData or lpvarData 5 Device specifying methods Specify the devices in the following methods lt When bit device is specified gt lt When word device is specified gt Example MO Example DO eee lt When double word device is specified gt lt When CN200 or later of FXCPU is specified gt a ORE K8MO peu CN200 2 2 es 2 2 es
58. 5 SAMPLE PROGRAMS MELSOFT 5 2 3 Troubleshooting function sample program This sample program performs the troubleshooting function using the ActSupport control with the dispatch interface 1 Using method Load the form In the ErrorCode text box enter the error code of which error definition you want to know Clicking the GetErrorMessage button displays the error definition and corrective action in the error definition displaying text box The displayed error definitions and corrective actions are as indicated in 6 1 Error Codes Returned by the ACT Controls Click the button to exit from the sample program 2 Instructions for use of the sample program a Enter the error codes in the ErrorCode text box with any of the error codes given in 6 1 Error Codes Returned by the ACT Controls 0x or decimal numbers 3 Sample file list The sample files are installed into the following folders at the time of default installation C MELSEC Act Sample Vc Sample_SupportEng actsupport3 cpp Source file of ActSupport control C MELSEC Act Sample Vc Sample_SupportEng actsupport3 h Header file of ActSupport control C MELSEC Act Sample Vc Sample_SupportEng resource h Resource file C MELSEC Act Sample Vc Sample_SupportEng Sample_Support cpp Source file for class definition C MELSEC Act Sample Vc Sample_SupporEng Sample_Support dsp Project file C MELSEC Act Sample Vc Sample_SupportEng Sample_Support dsw Project work space C MELS
59. 7 ActAJ71E71UDP ActMLAJ71E71UDP 3 19 3 3 8 ActQCPUQ ActMLQCPUO control nennen 3 20 3 3 9 ActQCPUA ActMLQCPUA 3 22 3 3 10 ActQnACPU ActMLQnACPU control 3 23 So b I ACEACPU ACIMEAG RU re ront za 3 24 3 3 12 ActFXCPU ActMLFXCPU N a a a 3 25 3 3 13 ActQJU71C24 ActMLQJ710OC24 3 26 3 3 14 ActAJ71QC24 ActMLAJ71QC24 nennen enne nennen nnns 3 30 3 3 15 ActAJ71UC24 ActMLAJU71UC24 control essen nnnm nnn nnne 3 32 3 3 16 ActAJ71C24 ActMLAJ 1C24 control nnne nri 3 34 3 3 17 ActQCPUQUSB ActMLQCPUQUSB control essere nnns 3 36 3 3 18 ActCCG4Q ActMLCCQGAQ control essere rne iria ener nnn 3 38 3 3 19 ActCCG4QnA ActMLCCGAQnA control essen enne 3 39 3 3 20 ActCCG4A ActMLCCGAA control 3 40 3 3 21 ActMnet10BD ActMLMnet1 0BD 3 41 3 3 22 ActMnetHBD ActMLMnetHBD Control cccccccccsssssceeeeeeesssssseeeeeeeeessseaseeeeseecessesaeeeeeeecssaeeas 3 45 3 3 23 ActCCBD ActMLCCBD control nnne enne enne nennen nennen nin 3 52 3 3 24 ActAnUBD
60. 92H 93H 94H 5 When access to the QnACPU or QCPU A mode is made from the CPU board the type code equivalent to that of the AnACPU 92H 93H 94H is returned for the QnACPU or the type code equivalent to that of the A4UCPU 85H is returned for the QCPU A mode 6 When access to the QCPU A mode is made from the UC24 the type code equivalent to that of the A4UCPU 85H is returned 7 When access to the QCPU A mode is made from the CC Link G4 module the type code equivalent to that of the A4UCPU 85H is returned 5 Returned value Normal termination 0 is returned Normal termination Abnormal termination A value other than 0 is returned Refer to Chapter 6 ERROR CODES 4 FUNCTIONS MELSOFT 4 2 14 SetCpuStatus Remote control 1 Applicable ACT controls The applicable ACT controls are indicated below Control Name Usabilit Control Name Usabilit ActAJ71E71UDP ActMLAJ71E71UDP ActQCPUQUSB ActMLQCPUQUSB ActCCG4Q ActMLCCG4Q_ O ActCCG4QnA ActMLCCG4QnA O ActQCPUQ ActMLQCPUQ ActMLQCPUA O ActQnACPU ActMLQnACPU O ActACPU ActmLaCPU O ActFXCPU ActMLFXCPU ActQJ71C24 ActMLQJ71C24 aa A DER cae ActAJ71QC24 ActMLAJ71QC24 O ActAJ71C24 ActMLAJ71C24 O4 ActLLT ActMLLLT AcIQU71E71TCP ActMLQJ71E71TCP_ ActQCPUQBus ActMLQCPUQBus Oat O ActAJ71QC24TEL ActQ71C24TEL ActAJ71QE71UDP AcIMLAJ71QE71UDP _
61. Any value specified by user in ms units Target station side module ActUnitNumber Fixed to 0x00 9 Fixed to 0x00 uod station number 1 As the I O address specify the value found by dividing the actual first number by 16 When the connected station side Q series compatible C24 is set to the synchronous mode always set the sumcheck SW06 transmission specification software switch setting of the Q series compatible C24 parameters to Yes ON If it is set to No OFF a communication error will occur disabling proper communication 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 14 ActAJ71QC24 ActMLAJ71QC24 control The following table indicates the properties possessed by the ActAJ71QC24 ActMLAJ71QC24 control and their default values 1 When there is relayed module in addition to connected station side QC24 N a Configuration b Property patterns Connected Relaved Station CPU Station CPU i elayed Networl station Qc24 n QnACPU QERU OGRU FXCPU CPU module mode A mode CPU 1 MELSECNET H H24 4 IBM PC AT compatible Relayed network MELSECNET 10 S Ethernet 1 Computer link x x CC Link Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU Connected c Property list Property Patterns dios TO 19200
62. C24 ActPassword 1 Empty 2 series compatible E71 the connected station side 1 When you did not set the password you need not set ActPassword POINT Depending on the communication path Ethernet communication MELSECNET 10 communication etc there will be restrictions as placed on the corresponding communication path controls For restrictions refer to the corresponding communication path controls Sections 3 3 2 to 3 3 32 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 2 ActQJ71E71TCP ActMLQJ71E71TCP control The following table indicates the properties possessed by the ActQJ71E71TCP ActMLQJ71E71TCP control and their default values 1 Configuration 2 Property patterns Sonnected Relayed Station CPU Connected Q series Relayed Station CRU De Relayed Network station a compatible E71 module QORU x QCPU QCPU QnA ACPU FXCPU Q mode Q mode A mode CPU 1 AREF o X z x IBM PC AT compatible x Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU 3 Property list Property Patterns ENS poets a sl ee Connected station ActConnectUnitNumber 1 Fixed to 0x00 Side module station Fixed to 0x00 Fixed to 0x00 mo number ActCpuType CPU CPU type corresponding to target station T
63. Corresponding Serial Communication Module User s Manual Application 1 Auto line connect Select this when the callback function has not been set to the Q Series Corresponding C24 2 Auto line connect Callback fixation Connects the line without using the callback function when the callback function has been set to the Q Series Corresponding C24 It is allowed to connect to the only PC with telephone number registered in the buffer memory 2101H of Q Series Corresponding C24 3 Auto line connect Callback number specification Connects the line without using the callback function when the callback function APP has been set to the Q Series Corresponding C24 It is allowed to connect to only the PC with telephone number specified by MX Component 4 Callback connect Fixation Callbacks only the personal computer with telephone number registered in the buffer memory 2101H of the Q Series Corresponding C24 5 Callback connect Number specification Callbacks only the personal computer with telephone number specified by MX Component 6 Callback request Fixation Issues a callback request from any PC to callback the PCs with telephone numbers registered in the buffer memory 2101H of Q Series Corresponding C24 The PC that has issued the callback request will not be callbacked APP 1 APP 1 APPENDICES MELSOFT 7 Callback request Number specification Issues a callback request from any PC to callback the PCs w
64. Inform the telephone center of our company m Exit the program and restart the IBM PC AT compatible 0x040B1003 Step No Error Reinstall MX Component Inform the telephone center of our company Failed in reading the output of Exit the program and restart the IBM PC AT compatible 0x040B1004 operation Transition condition intermediate code Reinstall MX Component error Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x040B1005 Securing Internal Work Area Failed error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Error in setting the maximum value of X 0Ox040B1006 Reinstall MX Component direction for character memory Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x040B1007 Insufficient Internal Work Area error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x040B1008 Stack Overflow Abnormal Character Memory Reinstall MX Component Inform the telephone center of our company 6 ERROR CODES MELSOFT Error Definition Exit the program and restart the IBM PC AT compatible 0x040B1009 Insufficient No of Storage Blocks error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible
65. MX Component Computer link communication RS 232C Computer link module Serial communication EH Serial communication module ras Ethernet Ethernet Ethernet communication Ethernet module board Hi CPU COM communication RS 232C RS 422 conversion RS 232C frm ACPU QnACPU QCPU Q mode SOmmunieaio QCPU A mode FXCPU motion controller CPU USB CPU USB communication QCPU mode MELSECNET 10 module MELSECNET 10 communication MELSECNET 10 board EH MELSECNET H communication E lli MELSECNET H module CC Link module CC Link icati CC Link l HK eommuneadon board H a Software version or later RS 232C RS 422 conversion CC Link G4 CC Link module CC Link G4 communication CC Link module Software version N or later Software version D or later dd CPU board equivalent CPU board communication to APUSHCPU S1 GX Developer GX Simulator offline debugging GX Developer SW5D5C GPPW E or later GX Simulator SW5D5C LLT E Ver B or later Must be purchased separately GX Simulator communication Modem jg ePhone line c TTT A6TEL Q6TEL FXCPU QC24N Q series compatible C24 Modem communication s Ethernet Ethernet r Gateway function communication GOT board Loss ved On the
66. MX Component Inform the telephone center of our company Review the specified device data 0x10000032 Specified device error Exit the program and restart the IBM PC AT compatible Exit other programs and secure free memory area Review the specified device data 0x10000033 Specified device range error Exit the program and restart the IBM PC AT compatible Exit other programs and secure free memory area Exit the program and restart the IBM PC AT compatible 0x10000034 File Write Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x10000040 Server start failed Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Server Stop Error 0x10000041 Reinstall MX Component Failed while stopping the server Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x10000042 Server Started Twice error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x10000043 Server Not Started error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x10000044 Resource Timeout Error Reinstall MX Component Inform the telephone center of our company 6 ERROR CODES MELSOFT Erro
67. Q00 Q01 CPU side baud rate setting To increase the communication speed match the personal computer side baud rate with the Q00J Q00 Q01 CPU side baud rate Instructions for use of other MELSOFT products 1 About simultaneous use of MX Component and GX Developer When using GX Developer and MX Component together for the same E71 module to make Ethernet communication make the following settings a Set the protocol of the communication setting wizard screen to UDP IP b Set SW2 of the communications setting switches of the E71 module to OFF binary Precautions for GX Simulator communication Before executing the monitor utility communication setting utility or user program make sure that GX Simulator and GX Developer are operating In addition do not terminate the GX Simulator and GX Developer while the user program is running If you do so you will not be able to terminate the user program normally Instructions for use of Ethernet modules 1 Resetting PLC CPU during TCP IP connection setting If you reset the PLC CPU during TCP IP connection setting during opening using MX Component a communication or receive error will occur at the time of communication after that In that case close the application that uses MX Component and then perform open processing again About target existence check starting interval 1 of Ethernet module If close processing Close is executed from the IBM PC AT compatible the Ethe
68. Read minute value Output Short lpsSecond Read second value Output 4 24 4 24 4 FUNCTIONS MELSOFT VBScript varRet object GetClockData IpvarYear IpvarMonth IpvarDay IpvarDayOfWeek IpvarHour IpvarMinute IpSecond VARIANT varRet Returned value LONG type Output VARIANT Read year value SHORT type Output VARIANT _ IpvarManth Read month value SHORT type Output VARIANT Read day value SHORT type Output VARIANT _ lpvarDayOfWeek Read day of week value SHORT type Output VARIANT Read hour value SHORT type Output VARIANT IpvarMinute Read minute value SHORT type Output VARIANT Read second value SHORT type Output 4 Explanation a An error is returned if correct clock data is not set to the PLC CPU b As the value stored into iYear lpsYear or IpvarYear a four digit year is returned for the QCPU mode or a two digit year for any other CPU Note that the year for the QCPU mode is between 1980 and 2079 c The value stored into iDayOfWeek IpsDayOfWeek or IpvarDayOfWeek is as follows Day of Week Sunda Monday Tuesda Wednesday Thursday Friday Saturday 5 Returned value Normal termination 0 is returned Abnormal termination Any value other than 0 is returned Refer to Chapter 6 ERROR CODES 1 Clock data cannot be read from the A0J2HCPU A2CCPU and A2CJCPU as they do not have clock data 2 The QCPU A mode
69. Sample program for modem 5 5 5 2 Visual C Sample Programs ccccecceseeeeceeeeeeeeeeseceeeeaeeaecaecaeeeaesaecaesaeeaecaesaeseaesaesaeseseaeeaeeaeseeseaeeats 5 7 5 2 1 Dispatch interface 1 isis do edet Leda ete tbe ticae 5 7 5 2 2 CUSTOM interface on aco err ate o rer ep e rk ere ea iat eg xir eet Pre ech ax eed end 5 9 5 2 3 Troubleshooting function sample program sse nennen nennen 5 10 5 3 VBA Sample Programs one tento to tende hte et al aa ha t 5 12 5 3 1 Excel sample prograimi 5 5 22 2 iere titor teria tease e EE REL ER LEER REL Ee EE I ord 5 12 A 16 A 16 5 3 2 Excel sample program Device read write 5 14 5 3 3 Access sample prOgram 2 t iiti iioii eoi ttt er rr E na rtt 5 16 5 4 VBScript Sample Program c ceccescesceeeceeeeseeeeceeceeeeaesaecaeceeeeaeeeceeeeaesaecaeseeeeaesaesaeseaesaesaeseseaeeaesaeseeseaeeaees 5 18 5 5 ASP Sample Program r dod bad tea dee atate toda etam teteotutea dd 5 20 6 ERROR CODES 6 1to 6 47 6 1 Error Codes Returned by the ACT Controls ennemi 6 1 6 2 Error Codes Returned by the CPUs Modules and Network Boards
70. Target non target relayed CPUs are indicated by target or target 1 When CC Link G4 S3 module is in Q mode 3 Relayed station CPU oomo mme 2 Relayed network ae CPU weisecnetio 6 aae 563 puk e 2 When CC Link G4 module is in QnA mode 3 Relayed station CPU Usable 2 Relayed network contll CPU ae x x x x x Recon ActMLCCG4QnA 3 When CC Link G4 module is in A mode 3 Relayed station CPU 1 Connected module Motion Usable control name enc Poen QnACPU ACPU FXCPU controller 508 AcICOGAA ActMLOCG4A I b MED APP 20 APP 20 Microsoft Windows Windows NT Visual Basic and Visual C are registered trademarks of Microsoft Corporation in the United States and other countries Ethernet is the registered trademark of Xerox Corporation Other company and product names herein are either trademarks of registered trademarks of their respective owners SPREAD Copyright C 1998 Far Point Technologies Inc MX Component Version 3 Programming Manual MODEL MELS3 ACTE P E MODEL 13JF66 SH NA 080272 B 0206 MEE s MITSU
71. an abnormal value Check the clock data specified in the method Clock data error OxF1000007 Set the correct clock data to the clock data of the PLC The clock data is abnormal CPU Monitored device registration count excess The number of device points registered in the d Register the device points between 1 and 20 in the OxF1000008 EntryDeviceStatus method was 0 or less EntryDeviceStaus method The number of device points registered in the EntryDeviceStatus method was more than 20 After making deregistration in the FreeDeviceStatus 0xF1000009 Monitored device data registration error method execute the EntryDeviceStatus method again OxF1000010 Device status monitor processing failed to start Start end the device status monitor processing again in x Device status monitor processing failed to end the EntryDeviceStatus method 6 ERROR CODES MELSOFT Error Definition OxF 100001 1 OxF 1000012 OxF 1000013 OxF 1000014 OxF1000015 0xF 1000016 0xF1000017 The VARIANT argument data type is wrong The device status monitoring time interval is a value outside the range 1 second to 1 hour 1 to 3600 Already Connected error Connect was executed again after it was executed for the same object Invalid Telephone Number error Characters other than 0123456789 that are allowed for telephone numbers are included Exclusive Control Failure error There was failure i
72. and ACPU can get clock data only when the target station is in the STOP status 3 For the FXCPU clock data can be read from the FX1N FX1NC FX1S or FX2N when it has a built in clock or from the FX2 2 or FX2NC when it is fitted with the RTC cassette An error is returned if the FXCPU is other than the FX1N FX1NC FX1S FX2 FX2C FX2N and FX2NC 4 Note that an error of transfer time is produced in clock setting 4 FUNCTIONS MELSOFT 4 2 12 SetClockData Clock data write 1 Applicable ACT controls The applicable ACT controls are indicated below ActMLQCPUQ AGGCB IGUSS ActMLQCPUQUSB o ia E 6 AcQnACPU AecoG4QmA ActMLCCG4anA O ActMLACPU JActCCGAA ActmLCcG4A O ActEXCPU ActMLFXCPU O fees aom Gs sen C24 ActMLAJT1 C24 AGIMLLLT A Y VY UN haamoe aare IACtAJ71QE71TCP ActMLAU71QE71TCP ActAJ71QC24TEL ActQ71C24TEL ActAJ71QE71UDP ActMLAJ71QE71UDP _ O JActGOT ActMLGOT_ 0607 ActMLGOT a ME E ERE Usable Unusable 1 An error is returned if own board access is made 2 An error is returned if access to the QnACPU is made 8 An error is returned if access to the QnACPU is made via the MELSECNET 10 or MELSECNET lI 4 Depending on the communication path Ethernet communication MELSECNET
73. area About error at communication start A communication error may occur within the preset time out period at a communication start e g when the communication diagnostic button is pressed at a monitor start or at the execution of any function These errors are assumed to be detected before a time out error Example Connection cable not connected at PLC power off CheckDeviceString Do not use the CheckDeviceString method of each ACT control About ActUMsg control ActUWzd control ActMnet2BD control and ActAFBD control Installing MX Component registers the ActUMsg control ActUWzd control ActMnet2BD control and ActAFBD control but do not use them Precautions for use of ACt ML QJ71E71TCP Act ML AJ71QE71TCP and Act ML AJ71E71TCP controls a Provide an interval longer than the sequence scan time of the Ethernet module loaded station from when the Open method is executed until the Close method is executed b Provide an interval of at least 500ms from when the Close method is executed until the Open method is executed again Instructions for use of Disconnect If execution of Disconnect cannot disconnect the telephone line for some reason power off the modem used to make a call to forcibly disconnect the telephone line Instructions for use of Microsoft Excel 1 Precautions for starting multiple Excel files on Windows Me Note that Windows Me has been confirmed to stop if you run multiple Excel files which use
74. boot machine where two different operating systems are installed in a single IBM PC AT compatible personal computer On a dual boot machine having Windows NT Workstation 4 0 hereafter referred to as OS1 and Windows 95 or Windows 98 hereafter referred to as OS2 note the following points when MX Component was installed on OS1 first and MX Component was then installed over the same folder on OS2 a If MX Component is uninstalled first on the OS2 side uninstallation does not delete the control DLLs and ACT folders and they remain within the IBM PC AT compatible To delete the control DLLs and ACT folders perform uninstallation also on the OS1 side b If MX Component is uninstalled first on the OS1 side the control DLLs and ACT folders are deleted In this case MX Component may not operate properly or cannot be uninstalled on the OS2 side Install MX Component again on the OS2 side to operate MX Component properly or uninstall it on the OS2 side About start menu When you have uninstalled MX Component the item may remain in the start menu In that case restart the IBM PC AT compatible personal computer PLC CPU related instructions 1 About transmission speed As the transmission speed of the QCPU Q mode and QCPU A mode you can set 9600bps 19200bps 38400bps 57600bps or 11520bps For the QnACPU of version 9707B or later you can set the transmission speed of 9600bps 19200bps or 38400bps For the QnACPU o
75. cable _RTS 4 ActCpuType CPU ae CPU type corresponding to target station Target station side Target station side For single CPU For single CPU Ox3FF fixed Ox3FF fixed For multiple CPUs For multiple CPUs Connected station side relayed module I O address ActlONumber 1 Connected CPU 0x3FF Connected CPU Ox3FF No 1 Ox3E0 No 1 0x3E0 No 2 0 3 1 No 2 0 1 No 3 Ox3E2 No 4 0x3E3 Target station side module ActPortNumber poate 1 IBM PC AT compatible side COM port number ee Target station side module QCPU mode 0x00 MELSECNET H only other than QCPU mode 0x01 ActThroughNetworkType eos including MELSECNET 10 Note that the setting must be the same as set in the network parameter of the GPP function ActTimeOut 10000 Any value specified by user in ms units 0 Target station side module ActUnitNumber 0x00 0 0 Ted 10 900 1 As the I O address specify the value found by dividing the actual first number by 16 2 Note the following points when making access via the Ethernet module QE71 For ActNetworkNumber and ActStationNumber specify the value set in the parameter setting of the target station side QE71 e Set the MNET 10 routing information in the parameter setting of the QE71 Also when making setting specify other than the automatic response system any of the IP address calculation system table conversion system and combined system as the MNET 10 routing System
76. center of our company Other Errors Exit the program and restart the IBM PC AT compatible 0x04021007 Other errors generated during the conversion of Reinstall MX Component intermediate code to list Inform the telephone center of our company Not Converted error Exit the program and restart the IBM PC AT compatible 0x04030001 The storage space for converted intermediate Reinstall MX Component code is insufficient Inform the telephone center of our company Bad Circuit Creation error Exit the program and restart the IBM PC AT compatible 0x04030002 The character memory circuit is not completed Reinstall MX Component in a sequence Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Specified Circuit Size Exceeded prog P 0x04030003 E TERI Reinstall MX Component Specified circuit size is too big Inform the telephone center of our company Incorrect Return Circuit error Exit the program and restart the IBM PC AT compatible There is no consistency before and after the 0x04030004 NS Reinstall MX Component return circuit The setting for the return circuit is Inform the telephone center of our company too high Other Errors Exit the program and restart the IBM PC AT compatible 0x04030005 Other errors generated while converting from Reinstall MX Component Character Memory to Intermediate Code Inform the telephone center of our company No
77. compatible Communication parameter error 0x01808405 The data bit and stop bit combination of the properties is unauthorised The baudrate of the property is unauthorised Set it again on the communication settings utility Data length error 0x01808407 The data bit value of the property is unauthorised The parity value of the property is unauthorised Set it again on the communication settings utility Stop bit specifying error 0x01808409 The stop bit value of the property is unauthorised m Commun aHa id Review the control value of the property x0180840A The control value of the property is NR Set it again on the communication settings utility unauthorised 0 Review the time out value of the property Set it again the communication settings utility Time out error Review the system e g PLC CPU module setting and 0x0180840B Though the time out period had elapsed data could not be received status Perform Close once and execute Open again Exit the program and restart the IBM PC AT compatible 0x0180840C Exit the program and restart the IBM PC AT compatible 0x0180840D Duplex connect error Exit the program and restart the IBM PC AT compatible Attach failure 0x0180840E Exit the program and restart the IBM PC AT compatible of the socket object failed Signal line status acquisition failure 0x0180840F Acquisition of the COM port signal line
78. compatible Circuit Block Search Error 0x04031007 i ees Reinstall MX Component Data is broken off in the circuit block Inform the telephone center of our company Other Errors Exit the program and restart the IBM PC AT compatible 0x04031008 Other errors generated during the conversion of Reinstall MX Component intermediate code to character memor Inform the telephone center of our company CAD Data Error Exit the program and restart the IBM PC AT compatible 0x04040001 There is no CAD data to be converted The CAD Reinstall MX Component data format is incorrect Inform the telephone center of our company Output Data Error Exit the program and restart the IBM PC AT compatible 0x04040002 The input CAD data type and the output CAD Reinstall MX Component data type are not matching Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible d oe ERDI Reinstall MX Component Failed to load the library Inform the telephone center of our company Storage Space Secure Error Exit the program and restart the IBM PC AT compatible 0x04040004 The space secured to store the converted data Reinstall MX Component is not sufficient Inform the telephone center of our company No END Command error Exit the program and restart the IBM PC AT compatible 0x04040005 There is no END command in the CAD data Reinstall MX Component be converted Inform the telephone center of our company Ab
79. d Re age cea Roe p ase c ERR Re a de d Rae ddp Du e 2 9 2 2 Programming nnne nnns 2 10 2 2 1 When using Visual Basic dete adest eate dete tete E us 2 10 2 2 2 W hien USING Visual CPE deesse ent toe rer e eise ate ere eta te er ter Las 2 11 2 2 3 When using VBA ogee c Le ede ni ieee eed he aie eae ei e eee 2 12 2 2 4 When using 2 13 2 3 Device NATO EE 2 14 2 4 Accessible Devices and nennen enne 2 16 3 1 Details of the ACT Controls 2 2 3 dni dg eg e da deel Hu tede EL du td p 3 1 3 2 Details of the Properties 5 2 iia aede 3 3 3 3 Lists of Properties Possessed by the ACT Controls 0 cc ccscesceeceeseeeeeeeceeeeeeeaeeaeseeeeaesaesaeeeeeeeesesneeneats 3 10 3 3 1 ActEasylF ActMLEasylIF control essent nennen nnne nre nnns 3 11 3 3 2 ActQU71E71TCP ActMLQJ71E71TCP control eese nnne 3 12 3 3 3 ActQJ71E71UDP ActMLQJ71ET1UDP control essent 3 14 3 3 4 ActAJ71QE71TCP ActMLAJ71QET1TCP control cccccccccsccccccseeeceseeseesaeeeecsseeeeeeeseeeeessaeeeessanes 3 16 3 3 5 ActAJ71QE71UDP ActMLAJ71QE71UDP control esses 3 17 3 3 6 ActAJ71E71TCP ActMLAJ71E71TCP control nnne nnns 3 18 A 14 A 14 3 3
80. for ISize varSize are batch read from the devices beginning with the device specified in szDevice varDevice b The read device values are stored in IData IplData or IpvarData c Reserve an array of ISize varSize or more for IData or IpvarData 4 FUNCTIONS MELSOFT 5 Device specifying methods Specify the devices in the following methods When bit device is specified When word device is specified Example Data are read from 3 points Example 3 points from DO 8 words on a 16 point basis starting from MO 2 Upper Bytes 2 Lower Bytes MO to M1522 2 Upper Bytes 2 Lower Bytes M16 to M31 2 M32 to M47 2 When CN200 and later of FXCPU are specified When FD device is specified 4 word device Example 6 points from CN200 3 Example 6 points from FDO 2 Upper Bytes 2 Lower Bytes 2 Upper Bytes 2 Lower Bytes L of CN200 PLL of FDO H of CN200 L of CN201 1 of CN201 1 HH of FDO lt 8 bit devices assigned to gateway devices gt Example When 8 bit devices E0000 to E0007 of SHARP PLC have been assigned to 4 points starting from EGO EGO EG3 2 Upper Bytes 2 Lower Bytes E0001 E0000 E0005 E0004 E0007 E0006 1 Not used 0 is stored 2 Lower bits are stored in device number order x3 For CN200 or later of FXCPU 2 words are read from 2 points Read from 1 point will result in an error 6 Returned value Normal termination 0 is retu
81. is more than 256 bytes No Input error The input list code is insufficient Command Error Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible The command name of list code to be converted Reinstall MX Component is incorrect Device Error The device name of list code to be converted is incorrect Device Number Error The device number of the list code to be converted is out of range Conversion Error The list code to be converted conversion could not be identified Text Data Error The list code to be converted is incorrect Error in SFC Operation Output The output command of SFC operation is incorrect SFC Shift Condition Error SFC shift condition command is incorrect Error in Statements between lines The statements entered between lines are incorrect P I Statement Error The P I statement entered is incorrect Note Error The Note entered is incorrect Comment Error The comment entered is incorrect I
82. lt Act gt C AMELSEC SAchInclude gt Include at the time of installation Network 2 ABOUT THE ACT CONTROLS MELSOFT 2 Registering the ACT control LT 1 Right click the form to choose Insert ActiveX Control Cancel op Edges SP Check Mnemonics A ClassWizard Event Properties 2 Select the ACT control you want to use Activex control osse v MITSUBISHI amp ctA amp CPLI Control MITSUBISHI Act amp FBD Control Cancel MITSUBISHI Act amp J71C24 Control MITSUBISHI Act amp J71E71TCP Control MITSUBISHI Act amp J71E71UDP Control MITSUBISHI Act amp J719C24 Control 4 MITSUBISHI Act amp J719E71TCP Contre MITSUBISHI Act amp J719E71UDP Contr MITSUBISHI Act amp J71UC24 Control MITSUBISHI Act amp nUBD Control 2 Path C AMELSECSACTSCONTROLSACTPCCOM DLL 44 3 The selected ACT control is pasted to the form Cancel 2 ABOUT THE ACT CONTROLS MELSOFT 3 Adding the member variable Emm jr 1 Click the form to choose Class Wizard Cancel 2 When the left dialog box appears choose the lt lt Member Message Maps Member Variables Automation ActiveX Events Class Info Project Class name Variables gt gt tab z T 5 5 C AMyPiojects ACTAACT 1h Pret A CTACTI epp 238 Choose the member variable adding control ID and click Control IDs Type Member the Add Variabl
83. many control objects This phenomenon is not attributable to this product a Conditions on which this phenomenon has been confirmed to occur Graphic driver Matrox make MGA Mystique display driver OS Windows Me English version Number of controls pasted to Excel files A total of 150 or more controls used in the whole BOOK Other devices checked by Mitsubishi reference CPU Pentium 166MHz Memory 64MB Hard disk 8GB free space 6GB b Cause The phenomenon has been confirmed to occur when the Matrox make MGA Mystique graphic card display driver is used This is because Version 4 12 of the MGA Mystique graphic card display driver is not compatible with Windows Me c How to judge whether the phenomenon is the same or not After changing the used graphic driver for the standard VGA driver delete the temporary data emf left in the temporary folder After that try starting multiple Excel files The phenomenon seems to be the same if it does not occur by changing the driver for the standard VGA driver d Corrective action If this phenomenon occurs the temporary data emf will be left in the temporary folder of the system You have to delete the remaining temporary data emf manually The temporary folder of the system is normally in C Temp After that take either of the following actions 1 Use the graphic card and display driver which support Windows Me 2 Reduce the number of control objects pasted to
84. non target communication path The following table indicates the communication paths to be retried at a time out error occurrence All the connected station CPUs can be the targets Target non target the relayed CPUs are indicated by target or non target Connected station 3 Relayed station CPU Connected Motion 2 Rel k 1 CPU module Usable Says nator QCPU QCPU ACPU FXCPU controller Q mode A mode control name CPU MauseNETH x x x x x x MESEONETDIO x x x x x tome JMEEBEENETDE os ee x x x x x ceu S x j ox x jJ x APP 13 APP 13 APPENDICES MELSOFT c When FXCPU is used 1 Configuration 1 Connected Relayed station CPU module Modem Relayed network 2 Subscriber line 3 I Relayed Relayed Modem station CPU module IBM PC AT compatible 2 Target non target communication path The following table indicates the communication paths to be retried at a time out error occurrence All the connected station CPUs can be the targets Target non target relayed CPUs are indicated by target or x non target 3 Relayed station CPU 1 Connected module Motion Usable control name P Relayed network QCPU OCA QnACPU ACPU FXCPU controller Q mod
85. number ActUnitNumber Fixed to 0x00 0x00 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 24 ActAnUBD ActMLAnUBD control The following table indicates the properties possessed by the ActAnUBD ActMLAnUBD control and their default values 1 Configuration 2 Property patterns Connected Station CPU T Relayed Station CPU xtension base uni elayed Networl Relayed Own Board d QCPU FXCPU Q mode A mode CPU x1 IMELSECNETH x x x x x Relayed network f MELSECNET II 2 Esc Marie Ethernet Computertink x x x x IBM PC AT compatible peni cr Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU 2 Operates as the one equivalent to AnACPU 3 Property list ope t De It Val ope ty atterns au alue 271 ActCpuType CPU CPU type corresponding to target station _A2USHS1CPU Target station side module ActNetworkNumber Fixed to 0x00 9 Fixed to 0x00 m network number Target station side module Target station side module ActStationNumber Fixed to OxFF 9 9 e station number station number 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 25 ActLLT ActMLLLT control The following table indicates the properties possessed by the ActLLT ActMLLLT control and their default values P
86. operating manual Completion of user application 2 ABOUT THE ACT CONTROLS MELSOFT 2 2 3 When using VBA When using VBA create a user application in the following procedure Power on the IBM PC AT compatible and start Windows Install MX Component Refer to the operating manual startup Make settings using the utility setting type lt Utility setting type gt lt Program setting type gt Start the communication settings utility and make communication settings in accordance with the wizard Refer to the Start Excel or Access operating manual Start Visual Basic Editor and create applications Start Excel or Access Refer to ion 2 1 3 Generate the corresponding Section 3 communication control so that MX Component may be utilized on VBA YY Start Visual Basic Editor and create applications Refer to y Section 2 1 3 Generate the ActEasyIF control so that MX Component may be utilized on VBA Y Set the property of the pasted control _ Refer to the Set only the logical station number operating manual Set the properties of the pasted ACT Refer to the control operating manual Perform programming using the functions offered by the corresponding ACT control Refer to Chapters 3 4 Perform debugging using Yes the PLC monitor utility Refer
87. queue failed Perform Close once and execute Open again Review the system e g PLC CPU module setting and cable status Review the time out value of the property Receive error 0 01808301 Review the time out value on the communication settings Data receive failed utility Retry the method Exit the program and restart the IBM PC AT compatible Exit the program and restart the IBM PC AT compatible 0x01808302 Not Sent error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x01808303 Error in retrieving Overlap Event Reinstall MX Component Inform the telephone center of our company Receive buffer size shortage 0x01808304 Receive data was larger than the receive buffer Exit the program and restart the IBM PC AT compatible size prepared for the system 6 ERROR CODES MELSOFT Error Definition Control error 0x01808401 Changing of the COM port communication Exit the program and restart the IBM PC AT compatible control failed Exit the program and restart the IBM PC AT compatible 0x01808402 Signal Line Control Error Reinstall MX Component Inform the telephone center of our company Signal line specifying error 0x01808403 Changing of the COM port communication Exit the program and restart the IBM PC AT compatible control failed 0x01808404 Open not yet executed Execute oper P Exit the program and restart the IBM PC AT
88. range Device Points check absent error The device does not check the device points GPP Project Error The specified PLC type and GPP project type are not matching File Type Error The specified GPP project type and file type are not matching Insufficient GPP Data to be converted There is no data to be converted The data size specified is incorrect Insufficient Storage Space for Converted Data The space for storing converted data is insufficient Error in GPP Data to be converted The GPP data to be converted is incorrect Insufficient Data to be converted error There is no data to be converted The data size Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Com
89. result Hexadecimal value Shows the logging system time Data01 to 10 Show the logged device values Shows the past 10 logged values of 10 devices in the form of line graphs LoggingStart Used to start logging 5 SAMPLE PROGRAMS MELSOFT 5 3 2 Excel sample program Device read write This sample program performs read write the PLC CPU devices DO to D9 using the ActEasylF control Also this program displays the error code and error message in the dialog box by using ActSupport control at an error occurrence This sample program was created using Excel 2000 1 Using method 2 3 Open the sample sheet Enter the logical station number to which communication settings have been made in the communication settings utility into the LogicalStationNumber input cell Clicking the button reads the DO to D9 device values of the PLC CPU and displays them in the DeviceRead area Entering values into DO to D9 in the DeviceWrite area and clicking the button writes the values to DO D9 of the PLC CPU If read write of the DO 09 devices fails the error message corresponding to the error code is displayed in the dialog box Precautions for use of the sample program a Before executing this sample program make communication settings within the communication settings utility Sample file The sample program is installed into the following folder at the default installation C MELSEC Act Sample ExcelVBA S
90. returned value can be acquired by performing exception processing The following table indicates the HRESULT type returned values of the ACT controls Normal termination Function processing terminated normally Function processing as ActiveX control terminated normally but operation access to S_FALSE Normal termination PLC failed E POINTER Abnormal termination The pointer passed to the function is abnormal E OUTOFMEMORY Abnormal termination Memory securing or object creation failed E FAIL Abnormal termination indefinite error occurred If exception processing for acquiring the HRESULT type returned value has not been performed the dispatch interface shows the error dialog box on the OS level when E POINTER E XXXXX defined returned value or the like is returned from the ACT control APPENDICES MELSOFT APPENDICES Appendix 1 Connection System of the Callback Function This section describes the connection system of the callback function for modem communication using the Q Series Corresponding C24 The callback function enables access from MX Component to the PLC CPU by line reconnection callback made from the Q Series Corresponding C24 after line connection from MX Component For 1 to 3 telephone charges are born on the personal computer side For 4 to 8 telephone charges are born on the Q Series Corresponding C24 side Refer to the following manual for details of the callback function Q
91. s SOR Exit the program and restart the IBM PC AT compatible The specified circuit size exceeded error 0x0404100A Reinstall MX Component 1 circuit block is too big Inform the telephone center of our company Ut Exit the program and restart the IBM PC AT compatible Return Circuit Error 0x0404100B Reinstall MX Component The return circuit is incorrect Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Bad Circuit Creation error 0x0404100C eke e Reinstall MX Component The circuit data is incorrect Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x0404100D Reinstall MX Component x The SFC data to be converted is incorrect P Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible List Data Error 0 0404100 2 Reinstall MX Component The list data to be converted is incorrect Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Comment Data Error 0x0404100F Reinstall MX Component The comment data to be converted is incorrect Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Statement Error 0x04041010 E Reinstall MX Component The statement data to be converted is incorrect Inform the telephone center of our company Other E
92. same base Q series bus communication PC CPU module Q mode 1 OVERVIEW 1 2 ACT control and Function Lists MELSOFT The following sections give the lists of ACT controls and functions 1 2 1 ACT control list The following table lists the ACT controls included in each DLL offered by MX Component Included IndudedConrolName Name DLL Name For VB VC VBA For VBScript ActMulti DLL ActEasylF ActQCPUQ ActQCPUA ActQnACPU ActACPU ActFXCPU ActQJ71C24 ActAJ71QC24 ActComLk DLL ActAJ71UC24 ActAJ71C24 ActQJ71E71TCP ActQJ71E71UDP ActEther DLL ActAJ71QE71TCP ActAJ71QE71UDP ActAJ71E71TCP ActAJ71E71UDP ActA6TEL ActQ6TEL ActModem DLL ActFXCPUTEL ActAJ71QC24TEL ActQJ71C24TEL ActCCG4QnA ActCcG4 DLL ActCCG4A ActCCG4Q ActMnet10BD ActBoard DLL ActCCBD ActAnUBD ActLIT DLL ActLLT ActGOT dll ActGOT ActSupport dll ActSupport ActPcCom DLL ActMLEasyIF ActMLQCPUQ ActMLQCPUA ActMLQnACPU ActMLACPU ActMLFXCPU ActMLQJ71C24 ActMLAJ71QC24 ActMLAJ71UC24 ActMLAJ71C24 ActMLQJ71E71TCP ActMLQJ71E71UDP ActMLAJ71QE71TCP ActMLAJ71QE71UDP ActMLAJ71E71TCP ActMLAJ71E71UDP ActMLQCPUQUSB ActMLCCG4QnA ActMLCCG4A ActMLCCG4Q ActMLMnet10BD ActMLMnetHBD ActMLCCBD ActMLAnUBD ActMLLLT ActMLQCPUQBus ActMLGOT ActMLSupport Application Used to make communication settings easily on the communication settings utility to make communication Used to make communication via
93. station number as set to the series compatible E71 within the same Ethernet loop 5 If the following conditions are all satisfied change the ActMultiDropChannelNumber value to 0x00 A remote password has been set to the Q series compatible E71 connected The version of the Q series compatible E71 connected is J or earlier Connected station Connected station ActStationNumber 2 side module station side module station number number 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 3 ActQJ71E71UDP ActMLQJ71E71UDP control The following table indicates the properties possessed by the ActQJ71E71UDP ActMLQJ71E71UDP control and their default values 1 Configuration 2 Property patterns Connected Relayed Station CPU gt Station CPU Connected Q series Relayed Relayed Network station CPU compatible E71 module OGPU QCPU QCPU QnA ACPU apy Q mode Q mode A mode CPU 1 Reyes wauseemo Drac Las ode MELSECNET II Ex IBM PC AT compatible Computerin x x x x Accessible Property pattern within circle Inaccessible 1 Including motion controller CPU 3 Property list Property Patterns dic diu Ons alae SENS RENE ol 0 Connected station ActConnectUnitNumber 1 Fixed to 0x00 side module station Fixed to 0x00 Fixed to 0x00 0x00 number ActCpuT sa CPUt ding to t t stati ctCpuType CP
94. status Exit the program and restart the IBM PC AT compatible Review the data bit and stop bit values of the properties Set them again on the communication settings utility Review the data bit value of the property Set it again on the communication settings utility Review the stop bit value of the property Set it again on the communication settings utility failed CD signal line OFF Review the system e g PLC CPU module setting and 0x01808410 The CD signal on the other end of cable status communication is in the OFF status Exit the program and restart the IBM PC AT compatible 0x01808411 Password mismatch error Check the remote password of the property Exit the program and restart the IBM PC AT compatible 0x01808412 TEL Communication Error Reinstall MX Component Inform the telephone center of our company 6 ERROR CODES MELSOFT Loading of the USB driver failed Reinstall MX Component Connection of the USB driver failed Reinstall MX Component Review the system e g PLC CPU module setting and cable status USB driver send error Make USB setting on the control panel device manger of Data send failed the OS Retry the method Exit the program and restart the IBM PC AT compatible Review the system e g PLC CPU module setting and cable status USB driver receive error Make USB setting on the control panel device manger of Data receive failed the OS Retry the method Exit the program and restar
95. szCpuName amp lOpuCode MessgBox CpuName 96s CpuCode d szCpuName ICpuCode SysFreeString szCpuName Instructions for use of Visual custom interface a HRESULT type Use the SUCCEEDED or FAILED macro to check whether the HRESULT type i e returned value of COM resulted in normal or abnormal termination Example HRESULT hResult LONG IRet hResult Obj Open amp IRet if SUCCEEDE hResult if IRet SUCCESS else MessgeBox Communication Error x IRet else MessgeBox COM ERROR 4 FUNCTIONS MELSOFT 5 About Open opening the communication line Since the Open function performs processing e g establishes a communication path or gets the PLC internal information the processing time may become long An efficient program must be created to enhance the speed performance of the user application The following flowcharts provide procedures for creating efficient and inefficient user applications lt Efficient User Application gt Start Open the communication line Open Using the function e g GetDevice make access to the PLC CPU or module Do you end the user application Close the communication line Close End Inefficient User Application Start B Open the communication line Open Using the function e g GetDevice make access to th
96. telephone line is not connected Clicking the button disconnects the telephone line after closing of the communication line If an error occurs during execution of this sample program an error code appears in the ReturnValue text box If the error code is displayed in the ReturnValue text box click the GetErrorMessage button to display the error definition and corrective action corresponding to the displayed error code If an error occurs confirm the error definition and remove the error cause Instructions for use of the sample program a To use the ActEasylF control set the logical station number within the communication settings utility before execution of this sample program b When changing the logical station number monitoring interval device name and number of read points click the MonitorStop button to close the communication line once and click the MonitorStart button to resume communication Sample file list The sample program is installed into the following folders at the default installation C MELSEC Act Sample Vb ModemSample ModemSample vbp project file MELSEC Act Sample Vb ModemSample ModemSample frm Visual Basic Form file C MELSEC Act Sample Vb ModemSample ModemSample frx Visual Basic Form Binary file 5 SAMPLE PROGRAMS MELSOFT 4 Screen The sample program screen will be explained im Form lolx LogicalStationNumber D DeviceName MonitorStart Password pt Size Bo Monit
97. than 0 1800 Seconds The telephone number is more than 62 characters QJ71C24 did not receive the specified connection method Causes can be the following Incorrect Connection method Incorrect telephone number for Call back QJ71C24 does not permit the automatic connection during fixed Call back or when the number is specified There are chances that the line is not disconnected There was no response from the modem for the data sent from the PC Modem did not receive the startup command AT The PC modem does not respond to the Escape command Check whether the callback line disconnect wait time is with in 0 180 Seconds Check whether the callback execution delay time is with in 0 1800 Seconds Check whether the telephone number is less than or equal to 62 characters Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Check whether the settings of QJ71C24 and the MXComponent are matching Check the settings of QJ71C24 If there is no problem with the modem or the telephone line change the value of the properties set Properties like ActConnectionCDWaitTime etc which set the timings in case of program settings type and change the contents of the detailed settings that were set using the wizard in case of utility settings type Change the value of the properties set Properties such as ActConnectionCDWaitTime etc whi
98. the ACT controls 1 Choose the Project Components menu MELSOFT 2 Select the lt lt Controls gt gt tab and choose the DLL which includes the ACT controls you want to use 3 The ACT controls included in the selected DLL are added to the toolbox 2 ABOUT THE ACT CONTROLS MELSOFT 2 1 2 When using Microsoft Visual 6 0 Perform the following setting operation when using Visual C 1 Setting the include file aaa 1 Start Visual and choose the Tools Options menu Tools Window Help Source Browser Alt F12 L Close Source Browser File Visual Component Manager Register Control Error Lookup ActiveX Control Test Container OLE COM Object Viewer Spy MFC Tracer Customize t Macro Record Quick Macro Ctrl Shift R Play Quick Macro Ctrl Shift P 2 Choose the lt lt Directories gt gt tab and set Include files Editor Tabs Debug Compatibility Build Directories Show directories for Platform Show directories for Win32 bd Include files x Directaries OK Ft C Program Files Microsoft Visual Studio WC98 INCLUDE C Program Files Microsoft Visual Studio VC98 MFC INCLUDE C Program Files Microsoft Visual Studio WC9S ATLAINCLUDE Choose Directory 2 3 Double click the item to be set and browse the include file Directory name uem ActDefine H is stored in lt User specified folder gt
99. the interface using the interface getting function when using the ActiveX controls It also uses the object generation function when generating objects Though the custom interface is more complicated in program than the dispatch interface it can perform fine control of object generation elimination 4 1 Programming Instructions This section gives the instructions for programming 1 Instructions for multithread programming When performing multithread programming follow the rules of COM and ActiveX controls For details refer to the rules and reference books of COM and ActiveX controls 1 The ActiveX controls used on MX Component are those of the STA model 2 When passed to another apartment the interface pointer must be marshaled Provide synchronization using the CoMarshallerThreadlInterfacelnStream or CoGetlnterfaceAndReleadseStream COM function 2 Instructions for use of Visual Basic Only the dispatch interface is usable 4 FUNCTIONS 3 4 MELSOFT Instructions for use of Visual dispatch interface custom interface a Both the dispatch interface and custom interface are usable b BSTR type In the functions which acquire the methods and properties using the BSTR pointer type memory must be secured inside the ActiveX controls and released in user programs This is based on the rules of COM and ActiveX controls Example BSTR szCpuName LONG lICpuCode Obj GetCpuType amp
100. the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company 6 ERROR CODES MELSOFT Error Definition Error Code 0x0407C012 0x0407D001 0x0407D002 0x0407D101 0x0407D102 0x04080001 0x04080002 0x04080003 0x04090001 0x04090002 0x04090010 0x0409001 1 0x04090012 0x04090110 Device out of Range Error For AnA system a device out of AnA system range was specified Common Data Conversion Error Error in Conversion of SFC trace condition settings portion Common Data Conversion Error Error in Conversion of SFC trace condition data portion PLC Data Conversion Error Error in Conversion of SFC trace condition settings portion PLC Data Conversion Error Error in Conversion of SFC trace condition data portion Intermediate Code classification out of range error The intermediate code classification specified is out of range Extended specification Intermediate Code classification out of range error The extended specification intermediate code specified is out of
101. the serial port of the corresponding PLC CPU Used to make communication via the computer link module serial communication module Used to make communication via the Ethernet module Used to make communication via the USB port of the PLC CPU Used to make communication via a subscriber phone or private phone Used to make communication via the CC Link G4 module Used to make communication with or via the network board Used to make communication with the GX Simulator Used to make Q series bus communication with the PC CPU module Used to perform communication with the GOT or to read write data from to the GOT internal devices Used with the troubleshooting function 1 OVERVIEW 1 2 2 Function list MELSOFT The following table lists the features of the functions and the functions available for the ACT controls 1 Function list Refer to CHAPTER 4 FUNCTIONS for full information on the functions Connects a telephone line Open Opens a communication line ReadDeviceBlock Batch reads data from devices LONG ReadDeviceRandom Randomly reads data from LONG GetDevice2 Acquires the data of one device SHORT type INT type ReadBuffer Reads data from buffer memory WriteBuffer Writes data to buffer memory GetClockData Reads clock data from PLC CPU SetClockData Writes clock data to PLC CPU GetCpuType Reads PLC CPU type Reads PLC CPU type Registers device status moni
102. to OX3FF side module address 0 Target station side ActNetworkNumber 0x00 Fixed to 0x00 module network Fixed to 0x00 Fixed to 0x00 number 255 Target station side Target station side ActStationNumber OxFF Fixed to OxFF module station module station Fixed to OxFF number number 10000 Any value specified by user in ms units 0 Target station side 0x00 Fixed to 0x00 Fixed to 0x00 Fixed to 0x00 module station number 1 As the I O address specify the value found by dividing the actual first number by 16 2 Note the following points when making access via the Ethernet module QE71 ActNetworkNumber and ActStationNumber specify the value set in the parameter setting of the target station side QE71 Set the MNET 10 routing information in the parameter setting of the QE71 Also when making setting specify other than the automatic response system any of the IP address calculation system table conversion system and combined system as the MNET 10 routing system 3 Usable for only the QnACPU version 9707B or later 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 11 ActACPU ActMLACPU control The following table indicates the properties possessed by the ActACPU ActMLACPU control and their default values 1 Configuration 2 Property patterns Connected Station CPU elayed Station Relayed Network Connected Relayed ACPU x 1 FXCPU station CPU module Q mode
103. unit s 2 Note the following points when making access via the Ethernet module QE71 For ActNetworkNumber and ActStationNumber specify the value set in the parameter setting of the target station side QE71 Setthe MNET 10 routing information in the parameter setting of the QE71 Also when making setting specify other than the automatic response system any of the IP address calculation system table conversion system and combined system as the MNET 10 routing System To next page 3 DETAILS OF THE ACT CONTROLS MELSOFT CD mer eport Any value specified by user unit ActConnectUnitNumber Connected station side module station number TEL_AUTO_CONNECT TEL_AUTO_CALLBACK TEL AUTO CALLBACK NUMBER TEL CALLBACK TEL CALLBACK NUMBER TEL CALLBACK REQUEST TEL CALLBACK REQUEST NUMBER TEL CALLBACK WAIT Depending on callback function setting CONNECT 34 CPU Q02CPU CPU type corresponding to target station Target station side Target station side For single CPU For single CPU Ox3FF fixed Ox3FF fixed For multiple CPUs For multiple CPUs ActDestinationlONumber TUN Fixed to 0x00 Fixed to 0x00 Connected CPU Ox3FF Connected CPU Ox3FF No 1 0x3E0 No 1 0x3E0 No 2 OX3E1 No 2 0x3E1 No 3 Ox3E2 3 No 4 0x3E3 ActDialNumber I Telephone number of any value specified by user ActDid rtyBit 0x01 0x01 0x00 0x00 oe ActDisconnectionCDWaitTim 5 Any value sp
104. where a time out will occur at the fixed time within the ACT control All the connected station CPUs can be the targets Target non target relayed CPUs are indicated by target or x non target Connected station 4 Relayed station CPU 2 Connected Motion nedulsiUsable 777 oer OCR s CPU ontoller Q mode A mode control name Q series Esai compatible C24 ex To ActQU71C24 ActMLQJ71C24 Multidrop ERES Independent mode Synchronous mode To next page APP 17 APP 17 APPENDICES MELSOFT Connected station 4 Relayed station CPU 2 Connected Motion CBU m duled sable 277 vAGPU EXCRU controller Q mode A mode control name MELSECNEMAG 2 ox oe ee x E ee ee x QC24 N ActAJ71QC24 ActMLAJ71QC24 2 CPU COM communication a Configuration 1 Connected Relayed station CPU OS EI Ut Relayed network IBM PC AT compatible 3 Relayed Relayed station CPU module b Target non target communication path The following table indicates the communication paths where a time out will occur at the fixed time within the ACT control All the connected station CPUs can be the targets Target non target relayed CPUs are indicated by target or x non target
105. will operate safely In addition predetermine corrective actions for the system so that you can take measures against any communication error caused by a cable connection fault or the like in online operations performed from the peripheral device to the PLC N CAUTION Read the manual carefully before performing the online operations especially forced output and operating status change which will be executed with the personal computer connected to the running CPU module Not doing so can damage the machine or cause an accident due to misoperation REVISIONS The manual number is given on the bottom left of the back cover Print Date Manual Number Apr 2002 NA 080272 A F Jun 2002 SH NA 080272 B CC _ CC _ Instructions Japanese Manual Version SH 080275 B This manual confers no industrial property rights or any rights of any other kind nor does it confer any patent licenses Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual 2002 MITSUBISHI ELECTRIC CORPORATION Operating Instructions This section gives explanation of instructions in the following order 1 Instructions for used OS and personal computer 2 Instructions for installation and uninstallation PLC CPU related instructions Instructions for use of othe
106. you paste the ACT control and display the properties the property names displayed may be broken As this phenomenon occurs for only the property indication there will be no problem in the property functions Instructions for use of VBScript and ASP function 1 Security of the Internet intranet when using VBScript MX Component does not have the Internet intranet security function When you need the security function make setting on the user side Precautions for making CPU COM communication computer link communication CC Link G4 communication or Ethernet TCP IP communication on ASP page and application 1 when Windows 2000 Professional is used If the ASP page opens CPU COM computer link CC Link G4 or Ethernet TCP IP communication earlier than the application communication in the same path cannot be made on the application until the ASP page is closed Therefore note the following points a CPU COM computer link CC Link G4 or Ethernet TCP IP communication should be opened on the application earlier After it has been opened on the application communication can be made on both the application and ASP page until it is closed b When CPU COM computer link CC Link G4 or Ethernet TCP IP communication has been opened on the ASP page always close the communication 1 The application indicates any of the user applications created using the MX series and MELSOFT products INTRODUCTION Thank you for choosing the
107. 0 Fixed to 0x00 module station number 1 As the I O address specify the value found by dividing the actual first number by 16 2 Note the following points when making access via the Ethernet module QE71 For ActNetworkNumber and ActStationNumber specify the value set in the parameter setting of the target station side QE71 Setthe MNET 10 routing information in the parameter setting of the QE71 Also when making setting specify other than the automatic response system any of the IP address calculation system table conversion system and combined system as the MNET 10 routing System 3 DETAILS OF THE ACT CONTROLS MELSOFT 2 When connected station side QC24 is used for multidrop link with relayed module a Configuration Connected station CPU QGAN Modem I Subscriber line Relayed Relayed cu station CPU module Multidrop link IBM PC AT compatible b Property patterns Connected Station CPU Relayed Station CPU QCPU Q mode Relayed Network QCPU QCPU QnA ACPU Q mode A mode CPU 1 Ind mode 2 Accessible Property pattern within circle Inaccessible a Including motion controller CPU 2 The independent mode indicates that the module switch have been set as indicated below CH1 side Mode setting switch 5 SW01 of operation setting switch OFF
108. 0004 Reinstall MX Component DBProduct is not extracted Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Parameter Error 4 0 03020010 Reinstall MX Component The parameters of DBProduct are incorrect Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Language Error 0x0302001 1 ks Reinstall MX Component The language parameter is incorrect Inform the telephone center of our company 2 Exit the program and restart the IBM PC AT compatible Error in specifying Maker 0x03020012 a Reinstall MX Component The maker parameter is incorrect Inform the telephone center of our company PM Exit the program and restart the IBM PC AT compatible Error in specifying Unit 0x03020013 2 Reinstall MX Component The unit parameter is incorrect Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible SQL Parameter Error 0x03020014 Reinstall MX Component SIL SQL Parameter of DBProduct is incorrect Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible SIL Sentence formation error 0x03020015 OE Reinstall MX Component SIL sentence formation is incorrect Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Field Key Input Error 0x03020016 m Reinstall MX Component The fi
109. 074309 The settings for the annunciator display mode is Reinstall MX Component incorrect Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Error in Common Parameter Block No 4000 0 0407430 Reinstall MX Component I O Allotment Data is not created Inform the telephone center of our company Exit the program and restart the compatible Error in Common Parameter Block No 5000 0x0407430B Reinstall MX Component The specified network is not supported Inform the telephone center of our company Error in Common Parameter Block No 5001 Exit the program and restart the IBM PC AT compatible 0x0407430C Valid unit No is not set while accessing other Reinstall MX Component exchange Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x0407430D Error in Common Parameter Block No 5002 Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x0407430E Error in Common Parameter Block No Reinstall MX Component Inform the telephone center of our company owe Exit the program and restart the IBM PC AT compatible 0x0407430F Error in Common Parameter Block No Reinstall MX Component Inform the telephone center of our company m Exit the program and restart the IBM PC AT compatible 0x04074310 Error in Common Parameter Block No Reinstall MX Compo
110. 1 When using Microsoft Excel 2000 or Microsoft Excel 2002 xcel Book1 View Insert Format Tools Data Window Help BB Normal Page Break Preview Toolbars Standard Formatting Zoom Chart Y Clipboard Control Toolbox Drawing m MITSUBISHI AcEACPLI Control MITSUBISHI AcEAFBD Control MITSUBISHI ActAJ71C24 Control MITSUBISHI ActAJ71E71TCP Control MITSUBISHI AcEAJ71E71UDP Control MITSUBISHI ActAJ71QC24 Control MITSUBISHI AcEAJ71QE71TCP Control MITSUBISHI ActAJ71QE71UDP Control a B 1 2 3 5 6 7 lolx it View Insert Format Debug Run Tools Add Ins Window Help 181 y n KATEA Tj amt 1 Boot Excel and choose the View Toolbars Control Toolbox menu 2 Click the R button of the displayed Control Toolbox As this displays a menu choose the ACT control you want to use 3 Paste the selected ACT control to a sheet 4 Choose the Tools Macro Visual Basic Editor menu to start Visual Basic Editor 5 Perform programming on Visual Basic Editor 2 ABOUT THE ACT CONTROLS MELSOFT 2 When using Microsoft Access 2000 or Microsoft Access 2002 wv Microsoft TabStrip Control version 6 0 Microsoft Toolbar Control version 6 0 Microsoft Treeview Control version 6 0
111. 100F Method cannot be executed because of Execute again after some time exclusive control in progress Device error The device character string specified in the 0x01802001 lt Review the device name method is an unauthorised device character string 0x0180100C Registry search failure 6 ERROR CODES MELSOFT Error Definition 0x01802002 0x01802003 0x01802004 0x01802005 0x01802006 0x0180200B 0x0180200C 0x0180200D Device number error The device character string number specified in the method is an unauthorised device number Program Type Error Sumcheck error The sumcheck value of the received data is abnormal Size error The number of points specified in the method is unauthorised Block number error The block specifying number in the device character string specified in the method is unauthorised Receive data error The data received is abnormal Write Protect Error Reading Parameters error Writing Parameters error PLC type mismatch The CPU type set to the property and the CPU type set on the communication settings utility do not match the CPU type on the other end of communication Request Cancel Error The request was cancelled while being processed Drive Name Error The specified drive name is incorrect Review the device number Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Check
112. 1E71TCP ActMLQJ71E71TCP_ ActQCPUQBus ActMLQCPUQBus_ IAcIQJ71E71UDP ActMLQJ71E71UDP ActA6TEL ActQ6TEL ActFXCPUTEL om ActAJ71QE71TCP ActMLAJ71QE71TCP ActAJ71QC24TEL ActQ71C24TEL ActAJ71QE71UDP ActMLAJ71QE71UDP ActGOT ActMLGOT ActAJ71E71TCP ActMLAJ71E71TCP ActSupport ActMLSupport Usable x Unusable An error is returned if access to the ANUCPU QCPU A mode A1 73UHCPU S1 or A273UH S3 is made 2 An error is returned if access to the QnACPU is made 3 An error is returned if own board access is made 4 An error is returned if the CPU is other than FX2N and FX2NC 5 An error is returned if the CPU is other than FXoN FX2 FX2c FX2N and FX2NC 6 An error is returned if access to the QnACPU is made via the MELSECNET 10 or MELSECNET lI Depending on the communication path Ethernet communication MELSECNET 10 communication etc there will be restrictions as placed on the corresponding communication path controls 2 Feature Reads the buffer memory values of the special function module 3 Format Visual Basic VBA IRet object ReadBuffer IStartlO IReadSize iData 0 Long IRet Returned value Output Long IStartlO First number of module from Input where values will be read Long Address Buffer memory address Input Long IReadSize Read size Input Integer iData n Values read from buffer memory Output Visual IRet
113. 1QE71TCP ActMLAJ71QE71TCP ActAJ71QC24TEL ActQ71C24TEL JActAJ71QE71UDP ActMLAJ71QE71UDP O Usable Unusable 1 An error is returned if own board access is made 2 An error is returned if access to the QnACPU is made 8 An error is returned if access to the QnACPU is made via the MELSECNET 10 or MELSECNET lI 4 Depending on the communication path Ethernet communication MELSECNET 10 communication etc there will be restrictions as placed on the corresponding communication path controls 2 Feature Reads time from the clock data of the PLC CPU 3 Format Visual Basic VBA IRet object GetClockData iYear iMonth iDay iDayOfWeek iHour iMinute iSecond Long IRet Returned value Output Integer iYear Read year value Output Integer iManth Read month value Output Integer iDay Read day value Output Integer iDayOfWeek Read day of week value Output Integer Read hour value Output Integer iMinute Read minute value Output Integer iSecond Read second value Output Visual C object GetClockData klpsYear lpsDay lpsDayOfWeek Long IRet Returned value Output Short kIpsYear Read year value Output Short kIpsMonth Read month value Output Short lpsDay Read day value Output Short lpsDaYOfWeek Read day of week value Output Short kIpsHour Read hour value Output Short kIpsMinute
114. 3 Offset Error Reinstall MX Component Inform the telephone center of our company Error in Specifying Network Type Exit the program and restart the IBM PC AT compatible 0x04074201 The PLC specified does not support the network Reinstall MX Component type Inform the telephone center of our company Parameter Block Number Error Exit the program and restart the IBM PC AT compatible 0x04074202 The Block corresponding to the parameter block Reinstall MX Component number specified does not exist Inform the telephone center of our company Parameter Block Content Error Exit the program and restart the IBM PC AT compatible 0x04074203 It is different from the content supported by the Reinstall MX Component specified Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Parameter Block Information Error 0x04074204 e Reinstall MX Component The specified block number does not exist Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Default Parameter Block is Abnormal 0x04074205 H Reinstall MX Component The specified block number does not exist Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Error in Conversion of the Common Parameter 0x04074301 Reinstall MX Component Block Inform the telephone center of our company Error in Common Parameter Block No 1001 Exit th
115. 7 CPU_Q2ACPU CPU type corresponding to target station ActDiaINumber SY Empty Telephone number of any value specified by user ActDisconnectionCDWaitTime 1 Any value specified by user unit s ActDisconnectionDelayTime 8 Any value specified by user unit s Connected station Fixed to Ox3FF Fixed to OX3FF Fixed to Ox3FF side module I O address ActLineType LINETYPE LINETYPE PULSE LINETYPE TONE LINETYPE ISDN TONE 1 As the I O address specify the value found by dividing the actual first number by 16 2 Note the following points when making access via the Ethernet module QE71 For ActNetworkNumber and ActStationNumber specify the value set in the parameter setting of the target station side QE71 Setthe MNET 10 routing information in the parameter setting of the QE71 Also when making setting specify other than the automatic response system any of the IP address calculation system table conversion system and combined system as the MNET 10 routing System To next page 3 60 3 60 3 DETAILS OF THE ACT CONTROLS MELSOFT Property Patterns Cyr Target station side ActNetworkNumber T Fixed to 0x00 module network Fixed to 0x00 Fixed to 0x00 number ActOutsideLineNumber Empty Outside line access number of any value specified by user ActPassword Password set to the Q6TEL ActPasswordCancelResponseWaitTime Any value specified by user unit s ActPortNumber BOR
116. ANT varDevice Device name character string type Input VARIANT varSize Number of write points LONG type Input Device values to be written VARIANT Dat Input d p LONG array type P Explanation a The device values for ISize varSize are batch written to the devices beginning with the device specified in szDevice varDevice b Store the device values to be written in IData IplData or varData c Reserve an array of ISize varSize or more for IData IplData or varData 4 FUNCTIONS MELSOFT 5 Device specifying methods Specify the devices in the following methods When bit device is specified When word device is specified Example Data are written to 3 points 3 words Example 3 points from DO on a 16 point basis starting from MO 2 Upper Bytes 2 Lower Bytes 2 Upper Bytes 2 Lower Bytes MO to M15 2 BRI m M31 2 When CN200 and later of FXCPU are specified gt lt When FD device is specified 4 word device gt Example 6 points from CN200 3 Example 6 points from FDO H of CN200 LH of FDO lt 8 bit devices assigned to gateway devices gt Example When 8 bit devices E0000 to E0007 of SHARP PLC have been assigned to 4 points starting from EGO EGO EG3 2 Upper Bytes 2 Lower Bytes 1 Not used 0 is stored 2 Lower bits are stored in device number order 3 For CN200 or later of FXCPU 2 words are written from 2 points Write from 1 point will result in
117. ActControl TCR A OR Depending on used cable _RTS ActCpuType CPU pom CPU type corresponding to target station Target station side For single CPU Ox3FF fixed 0 For multiple CPUs ActDestinationlONumber Fixed to 0x00 Connected CPU Ox3FF Fixed to 0x00 0x00 No 1 0x3E0 No 2 0x3E1 No 3 OX3E2 No 4 1 ActDidPropertyBit 0x01 Fixed to 0x01 Fixed to 0x00 Fixed to 0x01 1 ActDsidPropertyBit 0x01 Fixed to 0x01 Fixed to 0x00 Fixed to 0x01 0 ActIntelligentPreferenceBit 0x00 Fixed to 0x00 Fixed to 0x00 Fixed to 0x00 To next page 3 DETAILS OF THE ACT CONTROLS MELSOFT Propert Default Val Property Patterns rope efault Value iid For single CPU Ox3FF fixed For multiple CPUs ActioNumber 1 Connected CPU 0x3FF Connected station side Fixed to 0x3FF No 1 0x3E0 module I O address No 2 OX3E1 No 3 Ox3E2 No 4 Ox3E3 0 ActMultiDropChannelNumber 0x00 Fixed to 0x00 0x00 or 0x02 Fixed to 0x00 0 ActNetworkNumber 0x00 Fixed to 0x00 Fixed to 0x00 Fixed to 0x00 1 ODD_PARITY Match to the setting of Q series compatible C24 1 nies ActPortNumber PORT 1 IBM PC AT compatible side COM port number ActStationNumber Fixed to OXOFF Fixed to OXOFF Fixed to OXOFF QCPU Q mode 0x00 MELSECNET H only other than QCPU Q mode 0x01 ActThroughNetworkType including MELSECNET 10 Note that the setting must be the same as set in the network parameter of the GPP function ActTimeOut 10000
118. ActMLAnUBD aa 3 56 3 39 29 A CIEL T ACIMEBET GODEO D isis diete a p ehem 3 57 3 3 26 ActQCPUQBus ActMLQCPUQBUS 1 3 58 3 39 27 ACLAB TEE a t tte dta tete degentes ts 3 59 2 9 28 ACIOGTEL COnDLtOL ter ent e Ese n M 3 60 3 39 29 ActEXCPUTEL control 1 e oe ee 3 62 3 3 30 ActQJU71C24TEL control esses enne 3 63 3 3 91 ActAJ71QG24TEL COntrOl 2 cet agen ena neni ari ace readied dare Wee acd e 3 68 3 39 02 AAGOT ACME GO T auti e ned t dT rx ra UA EE eL En CX ON 3 72 4 FUNCTIONS 4 1to 4 66 4 1 Programming IMStrUCHOnS Hecron 4 1 4 2 Details of the Functions Dispatch Interface esseeeeeeeneeneneennenen nnns 4 6 4 2 1 Open Communication line opening tnnt nenne nns 4 6 4 2 2 Close Communication line closing esssssssssssseeeeeeeee ennt 4 7 4 2 3 ReadDeviceBlock Device batch read sse eene 4 8 4 2 4 WriteDeviceBlock Device batch write 4 10 4 2 5 ReadDeviceRandom Device 4 12 4 2 6 WriteDeviceRandom Device random qwrite eese 4 14 4 2 7 SetDevice Device data setting
119. BISHI ELECTRIC CORPORATION HEAD OFFICE 1 8 12 OFFICE TOWER Z 14F HARUMI CHUO KU 104 6212 JAPAN NAGOYA WORKS 1 14 YADA MINAMI 5 HIGASHI KU NAGOYA JAPAN When exported from Japan this manual does not require application to the Ministry of Economy Trade and Industry for service transaction permission Specifications subject to change without notice
120. CPU Generic term of the A171SHCPU A172SHCPU A173UHCPU A173UHCPU S1 A273UHCPU and A273UHCPU S3 PLC CPU Generic term of the QCPU Q mode QCPU A mode QnACPU ACPU FXCPU and motion controller CPU Generic term of the A1SCPUC24 R2 A1SJ71C24 PRF A1SJ71C24 R2 A1SJ71024 R4 A2CCPUC24 A2CCPUC24 PRF AJ71C24 S6 and AJ71C24 S8 Generic term of the AJ71UC24 A1SJ71UC24 R2 A1SJ71UC24 R4 and A1SJ71UC24 PRF Generic term of the AJ71QC24 AJ71QC24 R2 AJ71QC24 R4 A1SJ71QC24 R2 and A1SJ71QC24 R2 Generic term of the AJ71QC24N AJ71QC24N R2 AJ71QC24N R4 A1SJ71QC24N and A1SJ71QC24N R2 QC24 N Generic term of the QC24 and QC24N Q series compatible C24 Generic term of the QJ71C24 and QU71C24 R2 Generic Term Abbreviation Description Computer link module Serial communication module Generic term of the C24 UC24 QC24 N and Q series compatible C24 Described as the serial communication module especially to indicate the QC24 N or Q series compatible C24 Generic term of the AJ71E71 AJ71E71 S3 A1SJ71E71 B2 A1SJ71E71 B5 E71 A1SJ71E71 B2 S3 A1SJ71E71 B5 S3 AJ71E71N B2 AJ71E71N B5T A1SJ71E71N B2 and A1SJ71E71N B5T QE71 Generic term of the AJ71QE71 AJ71QE71 B5 A1SJ71QE71 B2 A1SJ71QE71 B5 AJ71QE71N B2 AJ71QE71N B5T A1SJ71QE71N B2 and A1SJ71QE71N B5T Q series compatible E71 Generic term of the QJ71E71 QU71E71 B2 and QJ71E71 100 Ethernet module Generic term of the
121. CPU does not have the PAUSE switch as the PLC CPU an error is returned if remote pause is specified in SetCpuStatus MELSOFT 4 FUNCTIONS MELSOFT 4 2 15 EntryDeviceStatus Device status monitor registration 1 Applicable ACT controls This function is available for all ACT controls but the ActSupoort and ActMLSupport controls 2 Feature Registers devices whose statuses will be monitored 3 Format Visual Basic VBA object EntryDeviceStatus szDeviceList ISize IMonitorCycle IData 0 Long IRet Returned value Output String szDeviceList Registered device name list Input Long ISize Number of registered device points Input Long IMonitorCycle Status monitor time interval Input Long IData n Registered device value list Input Visual C IRet object EntryDeviceStatus szDeviceList ISize IMonitorCycle plData Long IRet Returned value Output CString szDeviceList Registered device name list Input Long ISize Number of registered device points Input Long IMonitorCycle Status monitor time interval Input Long IplData Registered device value list Input VBScript varRet object EntryDeviceStatus varDeviceList varSize varMonitorCycle varData VARIANT varRet Returned value LONG type Output VARIANT varDeviceList BSTR pe name Input VARIANT varSize LONG type device points VARIANT varMonitorCycle time interval Input VARIANT varData Toca Input 4 Explanation a Check
122. Connected station Connected station side Q series side Q series compatible E71 compatible E71 network number network number Network number of Network number of ActNetworkNumber k 2 target station side target station side module module ActPassword Empty Password set to the Q series compatible E71 on the connected station side 1 ActSourceNetworkNumber 0 01 IBM PC AT compatible side network number 2 ActSourceStationNumber 4 0x02 IBM PC AT compatible side station number Connected station Connected station side Q series side Q series compatible E71 compatible E71 station number station number QCPU mode 0x00 MELSECNET H only other than QCPU mode 0x01 ActThroughNetworkType including MELSECNET 10 Note that the setting must be the same as set in the network parameter of the GPP function ActTimeOut 10000 Any value specified by user in ms units 0 Target station side Target station side 0x00 Fixed to 0x00 Fixed to 0x00 module station module station number number valid 2 For the property pattern of 1 or 5 specify the value set in the target station side parameter for ActNetworkNumber and ActStationNumber 3 Specify the same network number as the MELSECNET 10 network number set to the series compatible E71 in the Ethernet parameter setting of the target station side Q series compatible E71 4 Specify the station number on the IBM PC AT compatible side to avoid setting the same
123. E71 QE71 and Q series compatible E71 CC Link G4 module Generic term of the AJ65BT G4 GPP function peripheral connection module and the AJ65BT G4 S3 GPP function peripheral connection module A6TEL Abbreviation of AGTEL modem interface module Q6TEL Abbreviation of Q6TEL modem interface module GOT Abbreviation of Graphic Operation Terminal Computer link communication Serial communication Abbreviation of communication made with the PLC CPU using the computer link module Described as serial communication especially in communication that uses the QC24 N or Q series compatible C24 Ethernet communication Abbreviation of communication made with the PLC CPU using the Ethernet module CPU COM communication Abbreviation of communication made by connecting the IBM PC AT compatible to the RS 232 or RS 422 connector of the PLC CPU CPU USB communication Abbreviation of communication made by connecting the IBM PC AT compatible to the USB connector of the QCPU mode MELSECNET 10 Abbreviation of communication made with the PLC CPU using the MELSECNET 10 communication board MELSECNET H Abbreviation of communication made with the PLC CPU using the MELSECNET H communication CC Link communication board Abbreviation of communication made with the PLC CPU using the CC Link board CC Link G4 communication Abbreviation of communication made with the PLC CPU using the CC Link G4 module CPU boa
124. EC Act Sample Vc Sample_SupportEng Sample_Support h Header file for class definition C MELSEC Act Sample Vc Sample_SupportEng Sample_Support rc Resource file C MELSEC Act Sample Vc Sample_SupportEng Sample_SupportDlg cpp Source file for dialog implementation C MELSEC Act Sample Vc Sample_SupportEng Sample_SupportDlg h Header file for dialog implementation 5 SAMPLE PROGRAMS MELSOFT 4 Screen The sample program screen will be explained dfe Sample Support E3 ErrorCode GetErrorMessage Exit Used to read the error definition and corrective action of the error code entered in the GetErrorMessage ErrorCode text box Exit Used to exit from the sample program Error definition Displays the error definition and corrective action of the error code entered in the ErrorCode displaying text box text box 5 SAMPLE PROGRAMS MELSOFT 5 3 VBA Sample Programs This section explains the sample programs for Excel and Access 5 3 1 Excel sample program This sample program is designed to log and graph the device values of the PLC CPU using the ActEasylF control This sample program was created on Excel 2000 1 Using method Open the sample sheet Type the logical station number which was specified in communication settings on the communication setting utility in the LogicalStationNumber input cell Type the first device of the devices whose data you want to read in the DeviceName input cell Type t
125. F 0x00 No 1 OX3EO No 1 OX3EO No 2 OX3E1 No 2 OX3E1 No 3 OX3E2 No 3 OX3E2 No 4 4 0 ActlONumber 0x00 Fixed to 0x00 Fixed to OX3FF Fixed to OX3FF 0 Target station side module ActNetworkNumber Fixed to 0x00 Fixed to 0x00 9 0 00 network number 1 Board No of IBM PC AT compatible side CC Link board PORT_1 PORT 1 to PORT 4 first to fourth boards 255 Target station side CC Link Target station side module ActStationNumber Fixed to OxFF 3 9 OxFF module station number station number 0 Connected station side ActUnitNumber Fixed to 0x00 Fixed to 0x00 0x00 module station number 3 DETAILS OF THE ACT CONTROLS MELSOFT 2 When connected station CPU is QCPU A mode a Configuration Connected Relayed station CO Link module module Relayed network Relayed Relayed station CPU module IBM PC AT compatible b Property patterns CPU elayed Station Own Board aceu 188789 Network ana AcPu nme A mode mode A mode CPU x1 MELSECNETH x x P x x x MELSECNETAO x x x x x MeSEONET 1 gt fx x x pue coe Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU c Property list eT Patterns Property Default Value ActCpuT 1025 CPUt ding to t t stati ctCpu
126. Fixed to 0x00 Fixed to 0x00 Connected CPU Connected CPU 0x3FF No 1 OX3EO No 1 OX3EO No 2 OX3E1 No 2 OX3E1 No 3 Ox3E2 wane No 4 0x3E3 ActDidPropertyBit Fixed to 0x00 Fixed to 0x01 Fixed to 0x00 Fixed to 0x00 ActDsidPropertyBit Fixed to 0x00 Fixed to 0x01 Fixed to 0x00 Fixed to 0x00 To next page 3 DETAILS OF THE ACT CONTROLS MELSOFT Property Patterns POR iain For single CPU 0x3FF fixed For multiple CPUs C ted CPU Ox3FF Connected station Connected station ActlONumber 1 Sy Fixed to 0x00 bacs UE side relayed module side relayed module No 1 0x3E0 address address No 2 0x3E1 ActMultiDropChannelNumber Fixed to 0x00 Fixed to 0x00 e or 0x02 Fixed to 0x00 to 0x00 Target station side Connected station Connected station ActNetworkNumber m Fixed to 0x00 module network side module network side module network number number number Board No of IBM PC AT compatible side MELSECNET 10 board ActPonnumber gg 1 PORT 1 to PORT 4 first to fourth boards Target station side Connected station Connected station ActStationNumber Fixed to OXFF module station side module station side module station number number number Target station side Target station side ActUnitNumber eon Fixed to 0x00 Fixed to 0x00 module station module station number number 1 As the I O address specify the value found by dividing the actual first number by 16 3 DE
127. HORT SHORT SHORT SHORT SHORT SHORT SHORT LONG hResult Returned value of COM Output kIpsYear Read year value Output gt lpsMonth Read month value Output lpsDay Read day value Output k IlpsDayOfWeek Read day of week value Output kIpsHour Read hour value Output kIpsMinute Read minute value Output lpsSecond Read second value Output klplRetCode Returned value of communication function Output 4 FUNCTIONS MELSOFT 4 3 12 SetClockData Clock data write hResult object SetClockData sYear sMonth sDay sDayOfWeek sHour sMinute sSecond s IplRetCode HRESULT hResult Returned value of COM Output SHORT sYear Year value to be written Input SHORT sMonth Month value to be written Input SHORT sDay Day value to be written Input SHORT sDayOfWeek Day of week value to be written Input SHORT sHour Hour value to be written Input SHORT sMinute Minute value to be written Input SHORT sSecond Second value to be written Input LONG lplRetCode Returned value of communication function Output 4 3 13 GetCpuType PLC CPU type read hResult object GetDevice szDevicelist IplRetCode HRESULT hResult Returned value of COM Output BSTR szCpuName PLC CPU type character string Output LONG lplICpuType CPU type code Output LONG klplRetCode Returned value of communication function Output 4 3 14 SetCpuStatus Remote control hResult object SetCpuStatus lOperation HRESULT hResu
128. LSOFT 4 When access is made via MELSECNET 10 mode using QnACPU as connected station CPU Operates when the MELSECNET H board is in the MELSECNET 10 mode a Configuration Connected MELSECNET H Relayed station CPU module module Relayed network Relayed Relayed station CPU module IBM PC AT compatible b Property patterns sane AU Relayed Station CPU Own Board Relayed Network QCPU acPu QnA JACPU amp 9 gt iege esc ose Computer Tink L5 81 x Accessible pattern within x Inaccessible 1 Including motion controller CPU c Property list Property Patterns o9 e 1025 CPU BOARD CPU type corresponding to target station 0 0x00 Fixed to 0x00 0 ActDidPropertyBit 0x00 Fixed to 0x00 Fixed to 0x01 Fixed to 0x00 Property ActCpuType ActDestinationlONumber 0 ActDsidPropertyBit 0x00 Fixed to 0x00 Fixed to 0x01 Fixed to 0x00 Target station side For single CPU Ox3FF fixed For multiple CPUs Connected station Fixed to 0x00 Fixed to Ox3FF Connected CPU Ox3FF side relayed module No 1 OXSEO No 2 OX3E1 No 3 OX3E2 No 4 0x3E3 address 1 Note the following for access to be made via the Ethernet module series compatible E71 QE71 Specify ActNetworkNumber and ActStationNumber using the values set
129. Library Error 0x04041003 Reinstall MX Component Failed to load the library Inform the telephone center of our company 2 Exit the program and restart the IBM PC AT compatible Insufficient Inout Data error 0 04041004 a Reinstall MX Component Data to be converted is insufficient Inform the telephone center of our company Insufficient Storage Space error Exit the program and restart the IBM PC AT compatible 0x04041005 There is not enough space to store the CAD Reinstall MX Component data to be converted Inform the telephone center of our company No END Command error Exit the program and restart the IBM PC AT compatible 0x04041006 There is no END command in the CAD data to Reinstall MX Component be converted Inform the telephone center of our company Abnormal Command Code Exit the program and restart the IBM PC AT compatible 0x04041007 There is abnormal command code in the CAD Reinstall MX Component data to be converted Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Device No Error 0x04041008 Reinstall MX Component The device number is out of range Inform the telephone center of our company 6 ERROR CODES MELSOFT Error Definition Exit the program and restart the IBM PC AT compatible Step No Error 0x04041009 Reinstall MX Component The step number is out of range Inform the telephone center of our company
130. MX Component Version 3 MITSUBI SHI MELSOFT Wi Oe jvL M MELSOFT Integrated FA Software SW3D5C ACT E e SAFETY PRECAUTIONS e Always read these instructions before using this equipment Before using this product please read this manual and the relevant manuals introduced in this manual carefully and pay full attention to safety to handle the product correctly The instructions given in this manual are concerned with this product For the safety instructions of the programmable controller system please read the CPU module user s manual In this manual the safety instructions are ranked as DANGER and CAUTION Indicates that incorrect handling may cause hazardous conditions D DANGER resulting in death or severe injury CAUTION Indicates that incorrect handling may cause hazardous conditions resulting in medium or slight personal injury or physical damage M Note that the NCAUTION level may lead to a serious consequence according to the circumstances Always follow the instructions of both levels because they are important to personal safety Please save this manual to make it accessible when required and always forward it to the end user Design Instructions 4 DANGER When performing data changes or status control from the personal computer to the running PLC configure up an interlock circuit outside the PLC system to ensure that the whole system
131. Microsoft Web Browser Microsoft Windows Report Control MITSUBISHI ActACPLU Control MITSUBISHI ActAFBD Control MITSUBISHI ctAJ71C24 Control MITSUBISHI AcEAJ71E71TCP Control Formi Form 7 Microsoft Visual Basic 1 Module1 lolx A Edt View Insert Debug Run Tools Add Ins Window Help A81 xl Aa W s B AO n a E UNIS TS 7 C mectarations lt 8 dbi abt 5 69 Modules A Modulet Alphabetic Categorized Modulet lu Boot Access and make the database form active 2 Click the button of the toolbox As this displays menu choose the ACT control you want to use 3 Paste the selected ACT control to a sheet 4 Choose the Tools Macro Visual Basic Editor menu to start Visual Basic Editor 5 Perform programming on Visual Basic Editor 2 ABOUT THE ACT CONTROLS MELSOFT 2 1 4 When using VBScript Create HTML or ASP using the notepad commercially available text editor HTML creation tool or like Refer to the commercially available references and so on for the grammars of HTML and ASP Also refer to the HTML and ASP sample programs installed in MX Component 2 ABOUT THE ACT CONTROLS 2 2 Programming Procedures This section gives the procedures of creating a user application 2 2 1 When using Visual Basic utilit
132. Mitsubishi MELSOFT series comprehensive Factory Automation software Read this manual and make sure you understand the functions and performance of MELSOFT series thoroughly in advance to ensure correct use CONTENTS SAFETY PRECAUTIONS 2 2 22 12 068 13 e rine ita cr A 1 REVISIONS tia Sasi C EE A 2 Operating Instructions ico doe t aae a in ea set A 3 CGONILENES 2i Satin oet a dS e inna e A 14 Manuals ere ere reale e e E per ee A 18 How to Use This Manual sess nne nnne nnne nnne nnne rni nnns nn nnne nnne nnns A 19 Generic Terms and 5 A 20 1 OVERVIEW 1 1to1 3 1 1 Outline of ACT stet nnns 1 1 T 2 AC T control and Function Elstsss cit ette teo tete o a tn ede 1 2 IA WAND 1 2 1 2 2 F nctlon list 1L ee er e a er ie ven den ve atus 1 3 2 1 Settings Made for Use of the ACT Controls sss 2 1 2 1 1 When using Microsoft Visual Basic 6 0 enne ennt nnns 2 1 2 1 2 When using Microsoft Visual 6 0 nnn nnns 2 3 24 3 When using rna e Led nd nee ed eae CER d eed 2 7 2 1 4MW herr sing VBSGrIpE 1d oi ase cadere
133. N 1 IBM PC AT compatible side COM port number 255 Target station side Target station side ActStationNumber OxFF Fixed to OXFF module station module station Fixed to OxFF number number 10000 Any value specified by user in ms units ActTransmissionDelayTime 0 Any value specified by user unit s Target station side ActUnitNumber Fixed to 0x00 Fixed to 0x00 Fixed to 0x00 module station number 2 Note the following points when making access via the Ethernet module QE71 For ActNetworkNumber and ActStationNumber specify the value set in the parameter setting of the target station side QE71 Setthe MNET 10 routing information in the parameter setting of the QE71 Also when making setting specify other than the automatic response system any of the IP address calculation system table conversion system and combined system as the MNET 10 routing System 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 29 ActFXCPUTEL control The following table indicates the properties possessed by the ActFXCPUTEL control and their default values 1 Configuration Connected Relayed station CPU module Modem Relayed network Subscriber line 7 Relayed Relayed Modem station CPU module IBM PC AT compatible 2 Property patterns Connected Station CPU Relayed Station CPU Relayed Network FXCPU QCPU QCPU QnA
134. NG ISize Number of read points Input SHORT lpsData Read device values Output LONG klplRetCode Returned value of communication function Output 4 3 19 WriteDeviceBlock2 Device batch write hResult object WriteDeviceBlock2 szDevice ISize IpsData IplRetCode HRESULT hResult Returned value of COM Output BSTR szDevice Device name Input LONG ISize Number of write points Input SHORT kIpsData Written device values Input LONG klplRetCode Returned value of communication function Output 4 FUNCTIONS MELSOFT 4 3 20 ReadDeviceRandom2 Device random read hResult object ReadDeviceRandom2 szDeviceList ISize lpsData lplRetCode HRESULT hResult Returned value of COM Output BSTR szDeviceList Device name Input LONG ISize Number of read points Input SHORT kIpsData Read device values Output LONG klplRetCode Returned value of communication function Output 4 3 21 WriteDeviceRandom2 Device random write hResult object WriteDeviceRandom2 szDeviceList ISize IpsData lplRetCode HRESULT hResult Returned value of COM Output BSTR szDeviceList Device name Input LONG ISize Number of write points Input SHORT kIpsData Written device values Input LONG klplRetCode Returned value of communication function Output 4 3 22 SetDevice2 Device data setting hResult object SetDevice2 szDevice sData IplRetCode HRESULT hResult Returned value of COM Output BSTR szDevice Device name Input SHORT sData Set data Input LONG
135. Normal termination 0 is returned Abnormal termination Any value other than 0 is returned Refer to Chapter 6 ERROR CODES 6 Instructions for read write of data from to buffer memory in multiple PLC system configuration The following phenomena will occur when the function is executed if the actually configured multiple PLC system differs from the I O assignment set using GX Developer Execute the function after checking the I O assignment on GX Developer and checking the I O numbers of the module from to where the value will be read written a An error occurs if the function is executed after the correct I O numbers have been specified b When the specific numbers I O numbers whose assignment is actually wrong are specified read from buffer memory can be performed properly but write to buffer memory results in an error error code 0x010A4030 0x010A4042 etc c Though a PLC CPU error parameter error SP UNIT LAY ERR etc does not occur in the multiple PLC system execution of the function results in an error in the user application 4 FUNCTIONS MELSOFT 1 An error is returned if access to the motion controller CPU is made 2 For iData IpsData or IpvarData prepare a memory area having the number of points specified in IReadSize varReadSize If there is no memory area a critical phenomenon such as an application error may occur 8 When buffer memory read ReadBuffer is performed for t
136. Number of write points Input Integer iData n Device values to be written Input Visual C IRet object WriteDeviceRandom 2 szDeviceList ISize Long IRet Returned value Output CString szDeviceList Device name Input Long ISize Number of write points Input Short lpsData Device values to be written Input VBScript varRet object WriteDeviceRandom2 varDeviceList varSize varData VARIANT varRet Returned value LONG type Output VARIANT varDeviceList Device name character string type Input VARIANT varSize Number of write points LONG type Input VARIANT varData Device values to be written SHORT type Input Explanation a Randomly writes only ISize varSize of device values to the device group specified in szDeviceList varDeviceList b The read device values are stored in iData IpsData or varData c Using the line feed symbol separate the devices in the character string specified in the device list The last device need not be followed by the line feed symbol Example Visual Basic VBA VBScript DO amp vbLf amp D1 amp vbLf amp D2 Visual C DO nD1 nD2 d Reserve an array of ISize varSize more for iData IpsData or varData 4 FUNCTIONS MELSOFT 5 Device specifying methods Specify the devices in the following methods Example 1 When devices are specified as follows 3 points When using Visual Basic VBA VBScript MO amp vbLf amp DO amp vbLf amp
137. O O Usable x Unusable 1 An error is returned when remote operation is performed for the own station 2 An error is returned when own board access is made 3 When access to the QnACPU is made via the MELSECNET 10 or MELSECNET lI making PAUSE specification for the QnACPU results in an error 4 An error is returned if PAUSE specification is made 5 Depending on the communication path Ethernet communication MELSECNET 10 communication etc there will be restrictions as placed on the corresponding communication path controls 2 Feature Performs remote operation of the PLC CPU 3 Format Visual Basic VBA IRet object SetCpuStatus lOperation Long IRet Returned value Output Long lOperation Remote RUN STOP PAUSE Input Visual C IRet object SetCpuStatus lOperation Long IRet Returned value Output Long lOperation Remote RUN STOP PAUSE Input VBScript varRet object SetCpuStatus varOperation VARIANT varRet Returned value LONG type Output VARIANT varOperation Remote RUN STOP PAUSE Input LONG type 4 FUNCTIONS 4 Explanation The operation specified in Operation varOperation is performed Specifying any value other than the following will result in an error Remote RUN Remote STOP Remote PAUSE 5 Returned value Normal termination 0 is returned Abnormal termination A value other than 0 is returned Refer to Chapter 6 ERROR CODES POINT Since the FX
138. OBDE J61BT11 CC Link system master local interface board and Type A80BDE J61BT13 CC Link interface board CPU board Abbreviation of Type ABOBDE A2USH S1 PLC CPU board AnNCPU Generic term of the AOJA2HCPU A1SCPU A1SCPU S1 A1SCPUC24 R2 A1SHCPU A1SJCPU A1SJHCPU A1NCPU A2CCPU A2CCPUC24 A2CCPUC24 A2CJCPU A2NCPU A2NCPU S1 A2SCPU A2SCPU S1 A2SHCPU A2SHCPU S1 ASNCPU and A1FXCPU AnACPU Generic term of the A2ZACPU A2ACPU S1 A2ACPUP21 R21 A2ACPUP 21 S1 A3ACPU and 21 21 AnUCPU Generic term of the A2UCPU A2UCPU S1 A2USCPU A2USCPU S1 A2ASCPU A2ASCPU S1 AZASCPU S30 AZUSHCPU S1 ASUCPU and A4UCPU Generic term of the Q2ACPU Q2ACPU S1 Q2ASCPU Q2ASCPU S1 Q2ASHCPU Q2ASHCPU S1 Q3ACPU Q4ACPU and Q4ARCPU Generic term of the ANNCPU AnACPU and AnUCPU QCPU A mode Generic term of the QO2CPU A Q02HCPU A and QO6HCPU A QCPU Q mode Generic term for QOOCPU Q01CPU Q02CPU Q02HCPU Q06HCPU Q12HCPU Q25HCPU Q12PHCPU and Q25PHCPU Note that especially when the CPU is indicated as a different model QOOJCPU QOOCPU and Q01CPU are described as the Q00J Q00 Q01 CPU and Q02CPU QO02HCPU Q06HCPU Q12HCPU and Q25HCPU as Q02 Q02H Q06H Q12H Q25HCPU In addition Q12PHCPU and Q25PHCPU are described as the Process CPU FXCPU Generic term of the FXo FXos FXoN FX1 FX1N FX1NC 1 FX2 FX2c FX2N and FX2NC series Motion controller
139. OLS MELSOFT Remote register write area for CC Link ia ee pera ro Random access buffer in buffer memory Automatic refresh buffer of own station 3 For gateway function communication only This section gives how to specify the device name used for gateway function communication For the way to specify the devices used in the methods of the other controls refer to the MX Component Operating Manual Gateway device 1 EG wwa 1 If data is read from the gateway device where the PLC CPU device has not been assigned the read data is 0 4 About device extension representation The device extension representation usability table is given below They cannot be used with ReadDeviceBlock and WriteDeviceBlock When the ActAJ71E71TCP ActMLAJ71E71TCP ActAJ71QE71TCP or ActMLAJ71QE71TCP control is used device expansion representation is unusable Target CPU Device Extension Motion QCPU QCPU Representation QnACPU ACPU FXCPU controller Q mode A mode Digit specification example KAMO 2 Bit specification example DO 1 example M100Z0 Usable Unusable 1 Unusable when QE71 is relayed 2 FX FX DX DY and T C ST contact coil cannot be specified 8 Z V T C ST present value cannot be specified 4 FX FX DX DY T C ST contact coil Z and S cannot be specified 2 4 Accessible Devices and Ranges Refer to the MX Component operating manual for the
140. OR CODES POINT 1 The maximum number of write points that may be specified in ISize varSize is up to OX7FFFFFFF points 2 For IData IplData or varData prepare a memory area having the number of points specified in ISize varSize If there is no memory area a critical phenomenon such as an application error may occur 4 FUNCTIONS MELSOFT 4 2 7 SetDevice Device data setting 1 Applicable ACT controls This function is available for all ACT controls but the ActSupoort and ActMLSupport controls 2 Feature Sets one point of device 3 Format Visual Basic VBA IRet object SetDevice Device Long IRet Returned value Output String szDevice Device name Input Long IData Set data Input Visual C IRet object SetDevice szDevice IData Long IRet Returned value Output CString szDevice Device name Input Long IData Set data Input VBScript varRet object SetDevice varDevice IpvarData VARIANT varRet Returned value LONG type Output VARIANT varDevice Device name character string type VARIANT varData Set data LONG type Input Input 4 Explanation a The operation specified in IData varData is performed for one point of device specified in szDevice varDevice b When the bit device is specified the least significant bit of the IData value varData value becomes valid 5 Device specifying methods Specify the devices in the following methods When bit device is specified When w
141. PE PULSE LINETYPE TONE LINETYPE ISDN TONE 0 0x00 0 0x00 Empty Fixed to 0x00 Multidrop channel number Fixed to 0x00 Fixed to 0x00 Outside line access number of any value specified by user Password set to the Q series compatible C24 Any value specified by user unit s ActOutsideLineNumber Empty PORT 1 IBM PC AT compatible side COM port number ES Fixed to OXFF Fixed to OXFF 0 QCPU Q mode 0x00 MELSECNET H only other than QCPU Q mode 0x01 including MELSECNET 10 Note that the setting must be the same as 0x00 set in the network parameter of the GPP function 10000 Any value specified by user in ms units 0 ActTransmissionDelayTime Any value specified by user unit s 0 Target station side module station 1 As the I O address specify the value found by dividing the actual first number by 16 2 Specify the following as the channel No to be multidrop linked 0 Use default channel of module 1 Channel 1 2 Channel 2 gt gt gt gt gt gt E o U 0 0 2 lt r 5 Ex p o 5 s a o o z o c 2 2 0 5 5 5 c lt 5 2 3 S 9 z 5 9 5 2 5 Q 3 o S Q o 3 a a c 5 S E 5 a 5 lt 2 3 3 9 o p 3 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 31 ActAJ71QC24TEL control The following ta
142. PLC monitor utility Refer to the operating manual Completion of user application 2 ABOUT THE ACT CONTROLS MELSOFT 2 3 Device Types This section explains the devices that may be specified for the functions 1 To specify the device with any of the following functions specify device name device number For the device numbers note the differences between octal decimal and hexadecimal numbers Target functions ReadDeviceBlock ReadDeviceBlock2 WriteDeviceBlock WriteDeviceBlock2 ReadDeviceRandom ReadDeviceRandom2 WriteDeviceRandom WriteDeviceRandom2 SetDevice SetDevice2 GetDevice GetDevice2 2 When specifying bit devices for ReadDeviceBlock ReadDeviceBlock2 WriteDeviceBlock or WriteDeviceBlock2 specify the device number as a multiple of 16 3 Only the devices indicated in this section are supported Do not use unsupported devices 1 Common except for gateway function communication The following device types are common to all communication paths but gateway function communication Decimal o Funcionouput ey w Decimal Decimal Hexadecimal Octal for FXCPU Octal for FXCPU Decimal Latch relay Decimal Edge relay ink relay L w TS TN cs i CC Counter Decima CN For FXCPU 200 or more is 32 bit data Bit Bit device Word Word device m 1 For batch operation operation is performed continuously in units of one word Fo
143. PU control is used this sample program is designed to use the PLC CPU as A1N and the COM port as COM1 exclusively c When changing the control to be used click the button to close the communication line once then change the control and click the button to reopen the communication line 5 SAMPLE PROGRAMS MELSOFT 3 Sample file list By default the sample program is installed in the following folders C MELSEC Act Sample Vb Sample vbp Project file C MELSEC Act Sample Vb SampleForm frm Visual Basic Form file C MELSEC Act Sample Vb SampleForm frx Visual Basic Form Binary file C MELSEC Act Sample Vb ActDefine bas Header file 4 Screen The sample program screen will be explained Sample Control ACtACPU control for ACPU connection Input Method LogicalStationNumber 0 EIN DeviceName 00 a D1 Close D2 D3 GetCpuType DeviceSize 5 ReadDeviceRandom DeviceData z WriteDeviceRandom f 0 1 2 3 Output ReturnCode 0 Description Choose the control to be used Enter the logical station number that was specified in communication settings on the communication setting utility Enter the device names from to where values will be read written Enter the number of points of the devices from to where values will be read written DiviceData Enter the device values to be written Used to open the communication line Used to close th
144. RTS 262 ActCpuType CPU ATNCPU CPU type corresponding to target station 1 EER ActPortNumber PORT 1 IBM PC AT compatible side COM port number 0 ActStationNumber 0x00 Target station side module station number ActTimeOut 10000 Any value specified by user in ms units 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 21 ActMnet10BD ActMLMnet10BD control The following table indicates the properties possessed by the ActMnet10BD ActMLMnet10BD control and their default values 1 When connected station CPU is QCPU Q mode a Configuration Connected MELSECNET 10 Relayed station CPU module module Relayed network Relayed Relayed station CPU module IBM PC AT compatible b Property patterns Connected OM Station CPU Relayed Station CPU wn Boar acpu 88769 Nework aceu ana Q mode mode A mode CPU 1 5 5 cctink d x x x J x Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU c Property list Default Value o o 1025 ActCpuType CPU_BOARD CPU type corresponding to target station Target station side Target station side For single CPU For single CPU 0x3FF fixed 0x3FF fixed For multiple CPUs For multiple CPUs ActDestinationlONumber ol
145. Reinstall MX Component Exit the program and restart the IBM PC AT compatible 0x01801006 Specified module error Reinstall MX Component Check the CPU type set to ActCpuType Check that the system configuration is not an unsupported ze configuration 0x01801007 Specified CPU error Exit the program and restart the IBM PC AT compatible Reinstall MX Component Check the packet type set to ActPacketType 0x01801008 Target station access error Review the target station Exit the program and restart the IBM PC AT compatible Registry open failure 0 01801009 Reinstall MX Component Failed while opening data key of the registry i 4 JAX Inform the telephone center of our company Recheck the ActPacketType Packet Type Error 7 0 0180100 Exit the program and restart the IBM PC AT compatible The packet type specified is incorrect Reinstall MX Component Exit the program and restart the IBM PC AT compatible Protocol Type Error 0x0180100B SM Reinstall MX Component The protocol specified is incorrect Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Exit the program and restart the IBM PC AT compatible 0x0180100D GetProcAddress failure Reinstall MX Component Exit the program and restart the IBM PC AT compatible 0x0180100E DLL non load error Reinstall MX Component Another Object in execution 0x0180
146. SAMPLE PROGRAMS MELSOFT c Data display screen SampleMon E asp AB http 10 97 29 49 ActTest Eng SampleMon E asp Microsoft Internet Explorer File Edit View Favorites Help Kal amp Stop Refresh Search Favorites Histo Mal Prit Edt Address htip 10 97 29 49 ActT es Eng SampleMon E Links MonitorTiming 5 S LogicalStationNumber 0 DeviceName SD400 DeviceSize 10 Message Return Code 0 CpuType Q25HCPU ReadData Hex 40 1 2 3 4 5 6 7 0 00000000 0 0000 0 0000 0 0000 0 0000 0 0000 0 0000 0 0000 0 0000 gt 0 00000008 0 0000 0 0000 amp l Back zi amp Done x Local intranet 6 ERROR CODES MELSOFT 6 ERROR CODES This chapter describes the error codes returned by the ACT controls and the error codes returned by the CPUs modules and network boards 6 1 Error Codes Returned by the ACT Controls The following table gives the error codes returned by the ACT controls Error Definition 0x00000000 Normalend PT Check the property timeout value Check the settings in the communication settings utility 0x01010002 Timeout error Check the PLC Unit settings state of the cable etc Close and Open again Exit the program and restart the IBM PC AT compatible Check the system noise Check the property timeout value Check the settings in the co
147. Step Not Used No Output error Reinstall MX Component Inform the telephone center of our company m Exit the program and restart the IBM PC AT compatible 0x040A1004 Transition No out of range Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x040A1005 Maximum Number Exceeded error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x040A1006 Microcontroller Program space Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x040A1007 Non SFC Program Error Reinstall MX Component Inform the telephone center of our company Insufficient Intermediate Code Storage Space Exit the program and restart the IBM PC AT compatible 0x040B0001 The space to store the data after conversion Reinstall MX Component insufficient Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x040B0002 Conversion Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x040B1001 Failed in creating Step Start position table Reinstall MX Component Inform the telephone center of our company m Exit the program and restart the IBM PC AT compatible 0x040B1002 Error Reading Step Information Reinstall MX Component
148. T compatible 0x01802051 Remote Password Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x01802052 IP Address Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x01802053 Timeout value out of range error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0 01802054 not detected error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x01802055 Trace execution type error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x01802056 Version error Reinstall MX Component Inform the telephone center of our company 0x01808001 Multiple Open Error Exit the program and restart the IBM PC AT compatible X Open method was executed while it was open any method other than Open 6 ERROR CODES MELSOFT Error Definition Channel number specifying error The port number set to the property and the port 0x01808002 number set on the communication settings utility are unauthorised values Set the correct value to the port number of the property Make communication settings again on the communication settings utility
149. TAILS OF THE ACT CONTROLS MELSOFT 2 When connected station CPU is QCPU A mode or ACPU a Configuration Connected MELSECNET 10 Relayed station CPU module module Relayed network Relayed Relayed station CPU module IBM PC AT compatible b Property patterns Own Board QCPU Relayed Network QCPU QCPU QnA JACPU MELSECNET H x x x x x CC Link Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU c Property list Property Patterns m o ___ P L Target station side For single CPU Ox3FF fixed For multiple CPUs 0x00 Fixed to 0x00 Connected CPU Ox3FF Fixed to OXGFF No 1 OXSEO No 2 Ox3E1 No 3 0x3E2 No 4 0x3E3 0 0x00 2 0 ActMultiDropChannelNumber 0x00 Fixed to 0x00 ActNetworkNumber Fixed to 0x00 Target station side module network number ActPortNumber 1 Board No of IBM PC AT compatible side MELSECNET 10 board e PORT 1 PORT 1 to PORT 4 first to fourth boards ActStationNumber wen Fixed to OxFF Target station side module station number 0 ActUnitNumber 0x00 Fixed to 0x00 1 As the I O address specify the value found by dividing the actual first number by 16 3 43 3 43 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 When connected station CPU is QnACPU a Configuration Connected MELSECNET 10
150. The operation specified in iData sData or varData is performed for one point of device specified in szDevice varDevice 6 When the bit device is specified the least significant bit of the value sData value or varData value becomes valid 5 Device specifying methods Specify the devices in the following methods lt When bit device is specified gt lt When word device is specified gt Example MO Example DO 2 Bytes PG lt When double word device is specified gt lt When CN200 or later of FXCPU is specified gt Example K8MO Example CN200 2 Bytes 2 Bytes L of CN200 2 Lower Bytes 3 When gateway device is specified Example When 8 bit devices E0000 E0001 of SHARP PLO have been assigned to EGO 1 The device to where data will be written is only one point of MO and the lowest bit of the set 2 byte data is written as the device value 2 Lower bits are stored in device number order O s are written to the upper 2 bytes M16 to M31 3 For CN200 and later of the FXCPU specifying 1 point for SetDevice2 writes data to the L lower 2 bytes of the specified device O s are written to the upper 2 bytes of the specified device 4 FUNCTIONS MELSOFT 6 Returned value Normal termination 0 is returned Abnormal termination Any value other than 0 is returned Refer to Chapter 6 ERROR CODES When a double word device is specified data are written to the data area of the lower 1 word
151. Type CPU_BOARD ype corresponding to target station ActDestinationlONumber Fixed to 0x00 d ActlONumb Fixed to 0x00 umber m ActNetworkNumber Fixed to 0x00 iod ActPortNumber Board No of IBM PC AT compatible side CC Link board mo 1 PORT 1 to PORT 4 first to fourth boards Target station side CC Link module station ActStationNumber Fixed to OXFF 9 number ActUnitNumber Fixed to 0x00 SN D do 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 When connected station CPU is QnACPU a Configuration Connected Relayed station CPU CC Link module module Relayed network Relayed Relayed station CPU module IBM PC AT compatible b Property patterns Connected Station CPU Relayed Station CPU QnACPU QCPU QCPU QnA ACPU FXCPU Q mode A mode CPU x1 Ethemet x x Computerin x x x x x Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU MELSECNETH x x x x x MevseoneTio x x x x g weusecnerp x x x x x c Property list Propert Default Val Property Patterns rope efault Value 2 ation 1025 ActCpuType CPU BOARD CPU type corresponding to target st 0 ActDestinationlONumber Fixed to 0x00 ctDestination 0x00 ActlONumber Fixed to OX3FF 0x00 0 Target station side module ActNet
152. U Ethernet MELSECNETH X x x P x P x X MELSECNET 10 x x FXCPU IMELSECNET s X cn x poo px ox x x x x x 5 gt x x u XIXI X xX x x u u Ti il ui J u ii x x x x X x x x x ActFXCPU ActMLFXCPU Ethernet Ethernet Xx x XX x x CC Link x x x x x APP 9 APP 9 APPENDICES MELSOFT 3 CPU USB communication a Configuration 1 Connected Relayed station CPU module ET ard LI IBV PC AT compatible Rel yed 2 Relayed Relayed station CPU module b Target non target communication path The following table indicates the communication paths to be retried at a time out error occurrence All the connected station CPUs all become targets Target non target relayed CPUs are indicated by target or x non target 3 Relayed station CPU 1 Connected module Motion Usable control name eee I QEPE EEPO cahitraller Q mode A mode CPU mesecne x x x x x o o o
153. U_Q02CPU ype corresponding to target station Target station side Target station side For single CPU For single CPU OxSFF fixed Ox3FF fixed For multiple CPUs For multiple CPUs ActDestinationlONumber Fixed to 0x00 Fixed to 0x00 Connected CPU OX3FF Connected CPU OX3FF No 1 OX3EO No 1 OXSEO No 2 0x3E1 No 2 0x3E1 No 3 OX3E2 No 4 0 ActDidPropertyBit Fixed to 0x01 Fixed to 0x01 Fixed to 0x00 Fixed to 0x00 ActDsidPropertyBit Fixed to 0x01 Fixed to 0x01 Fixed to 0x00 Fixed to 0x00 ActHostAddress uS 1 1 Host name or IP address or IP address of connected station side module sid connected station side module Target station side For single CPU Ox3FF fixed For multiple CPUs Connected station Connected station For single CPU Ox3FF fixed For multiple CPUs Connected CPU Ox3FF No 1 OXSEO No 2 Ox3E1 Connected CPU Ox3FF Side relayed module side relayed module No 1 0 address address No 2 0x3E1 1 For access to another station via MELSECNET 10 for the property pattern of specify the station number of the connected station side Q series compatible E71 set in the Ethernet parameter of the connected station side Q series compatible E71 7 As the I O address specify the value found by dividing the actual first number by 16 To next page 3 14 3 14 3 DETAILS OF THE ACT CONTROLS a DE el Patterns Property Default Value e ActMultiDropChanne
154. Vc SampleEng acteasyif cpp C MELSEC Act Sample Vc SampleEng acteasyif h 4 Screen Resource file Project work space Project file Class define file Dialog Implementation source file MX Component common Header file ActAJ71QE71UDP Control source file ActAJ71QE71UDP Control header file ActEasylF Control source file ActEasylF Control header file The sample program screen will be explained fe CustomS ampleE ng Open Communication GetCpuType Device Name GetDevice Device Value 0 SetDevice Close Communication Control ActEasylf Method Result Return Output Close Control Open Communication Used to open the communication line GetCpuType Used to read the PLC CPU type Enter the device from to where a value will be read written Enter the device value to be written Used to choose the control to be used Close Communication Used to close the communication line Used to read the data of the device entered into the Device Name text box Used to write the data of the device entered into the Device Name text box Shows the result of executing the function Shows the CPU type code and read device value Shows the CPU type Return Output 5 SAMPLE PROGRAMS MELSOFT 5 2 2 Custom interface This sample program is designed to read the type of the connection destination CPU and read write device values using the ActAJ71QE71UDP control or ActEasylF contr
155. When the port numbers and telephone numbers of the controls are the same When the control types port numbers and telephone numbers set to multiple controls are the same the termination status changes depending on the connection system of the callback function The following table indicates the relations between the callback function connection system and the termination status Connection System of Control That Executes Connect Second or Later Auto line connect Auto line connect Callback fixation Auto line connect Callback number specification Connection System of Control That has Executed Connect First Auto line connect Auto line connect Callback fixation Auto line connect Callback number specification Callback connect Fixation Callback connect Number specification Callback request Fixation Callback request Number specification Callback connect Callback request Fixation Fixation Callback reception Callback connect Callback request Number specification Number specification Normal termination Abnormal termination Error occurrence 4 FUNCTIONS MELSOFT 4 2 25 Disconnect Disconnects telephone line 1 Applicable ACT controls This function is available for the ActEasyIF ActA6TEL ActQ6TEL ActFXCPUTEL ActAJ71QC24TEL and ActQJ71C24TEL controls 2 Feature Disconnects the telephone line 3 Format Visual Basic Visual VBA IRet object Disconnec
156. a are written to 3 points Example 3 points from DO 8 words on a 16 point basis starting from MO MO to M15 1 M16 to M31 1 D1 M32 to M47 1 D2 When CN200 and later of FXCPU are specified When FD device is specified 4 word device Example 6 points from CN200 2 Example 6 points from FDO H of CN200 2 Upper Bytes LH of FDO H of CN201 2 Upper Bytes L of CN202 2 Lower Bytes H of CN202 2 Upper Bytes 8 bit devices assigned to gateway devices Example When 8 bit devices E0000 to E0007 of SHARP PLC have been assigned to 4 points starting from EGO EGO EG3 2 Bytes HH of FDO LL of FD1 LH of FD1 1 Lower bits are stored in device number order 2 For CN200 or later of FXCPU 2 words are written from 2 points Write from 1 point will result in an error 6 Returned value Normal termination 0 is returned Abnormal termination Any value other than 0 is returned Refer to Chapter 6 ERROR CODES POINT 1 The maximum number of write points that may be specified in ISize varSize should satisfy the following range Write starting device number number of write points lt last device number 2 When the bit device is specified a multiple of 16 may be specified as the device number 3 For iData IpsData or varData prepare a memory area having the number of points specified in ISize varSize If there is no memory area a critical phenomenon
157. accessible devices and ranges for corresponding communication 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 DETAILS OF THE ACT CONTROLS This chapter describes the details of the ACT controls the details of the properties and the possessed property list 3 1 Details of the ACT Controls The following table lists the definitions and usable setting types of the ACT controls Control Name Usable Definition Setting For VB VC VBA For VBScript Type ActEasylF ActMLEasylF Can communicate with any communication path 75 Use the communication settings utility to set the information for communication ActQJ71E71TCP ActMLQJ71E71TCP Used for Ethernet communication where the connected module is the Q series compatible E71 TCP IP communication ActQJ71E71UDP ActMLQJ71E71UDP Used for Ethernet communication where the connected module is the Q series compatible E71 UDP IP communication ActAJ71QE71TCP ActMLAJ71QE71TCP Used for Ethernet communication where the connected module is the QE71 TCP IP communication ActAJ71QE71UDP ActMLAJ71QE71UDP Used for Ethernet communication where the connected module is the QE71 UDP IP communication ActAJZ1E71TCP ActMLAJ71E71TCP Used for Ethernet communication where the connected module is the E71 TCP IP communication ActAJ71E71UDP ActMLAJ71E71UDP Used for Ethernet communication where the connected module is the E71 UDP IP communication ActQCPUQ ActMLQCPUQ Used for CPU COM communication where the connec
158. ached for conducting communication tests Please use these programs on the customer s own responsibility b Sample sequence programs The sample sequence programs attached to MX Component must be modified depending on the system configuration and parameter settings Modify them to be best for the system Please note that it is user s responsibility to use the same sequence programs 2 Sample program test program sample sequence program list The following table gives a sample program list that is registered to User specified folder Act Sample when MX Component Version 3 is installed Compatible Reference Folder name Sample Program Details Language Section AccessVBA for ActEasylF control Sample Sample program for a asy contro VBA Access 5 3 3 TestPro Test program compatible with each control Sample program for ActEasylF control Sample program using the ActEasylF control to read write values from to DO D9 Sample_DeviceRW ITesPro Test program compatible with each control ModemSample Sample program for modem communication Visual Basic Sample Sample program for ActEasylF control and ActACPU control SampleASP Sample program for ActMLEasyIF control SampleHTML Sample program for ActMLEasylF control TestPro Test program for all controls compatible with VBScript Sample program for ActEasylF control and ae ActAJ71QE71UDP control interface Sample program for ActEasyIF control and
159. ailed during the conversion of sampling trace Reinstall MX Component settings portion Inform the telephone center of our company Common Data Conversion Error Exit the program and restart the IBM PC AT compatible 0x04077002 Failed during the conversion of sampling trace Reinstall MX Component data portion Inform the telephone center of our company PLC Data Conversion Error Exit the program and restart the IBM PC AT compatible 0x04077101 Failed during the conversion of sampling trace Reinstall MX Component settings portion Inform the telephone center of our company PLC Data Conversion Error Exit the program and restart the IBM PC AT compatible 0x04077102 Failed during the conversion of sampling trace Reinstall MX Component data portion Inform the telephone center of our company Common Data Conversion Error Exit the program and restart the IBM PC AT compatible 0x04078001 Failed in the conversion of the status latch Reinstall MX Component settings portion Inform the telephone center of our company Common Data Conversion Error Exit the program and restart the IBM PC AT compatible 0x04078002 Failed in the conversion of the status latch data Reinstall MX Component portion Inform the telephone center of our company PLC Data Conversion Error Exit the program and restart the IBM PC AT compatible 0x04078101 Failed in the conversion of the status latch Reinstall MX Component settings portion Inform the tele
160. ample Sample_DeviceRW xls Excel file 5 SAMPLE PROGRAMS 4 Screen The sample program screen will be explained 187 Eile Edit view Insert Format Tools Data Window Help la x 02 587 x A 51M G gt ava u 7 C1 S z Value Value DeviceRead DeviceWrite _20 I4 4 gt WiNDeviceRead Write I L 3 1 mei Item Description Enter the logical station number to which communication settings have been made in the communication settings utility LogicalStationNumber DeviceRead area Displays the DO to D9 device values of the PLC CPU DeviceWrite area Enter the values to be written to DO D9 of the PLC CPU Used to read the DO to D9 device values of the PLC CPU and display them in the DeviceRead area Used to write the device values entered into DO D9 of the DeviceWrite area to DO D9 of the PLC CPU 5 SAMPLE PROGRAMS MELSOFT 5 3 3 Access sample program This sample program is designed to log and monitor the device values of the PLC CPU using the ActEasylF control This sample program was created on Access 2000 1 3 Using method Open the database Type the logical station number which was specified in communication settings on the communication setting utility in the LogicalStationNumber text box Type the logging interval in the LoggingTiming text box C
161. an error 6 Returned value Normal termination 0 is returned Abnormal termination Any value other than 0 is returned Refer to Chapter 6 ERROR CODES 1 The maximum number of write points that may be specified in ISize varSize should satisfy the following range Write starting device number number of write points lt last device number 2 When the bit device is specified a multiple of 16 may be specified as the device number 3 For IData IplData or varData prepare a memory area having the number of points specified in ISize varSize If there is no memory area a critical phenomenon such as an application error may occur 4 FUNCTIONS MELSOFT 4 2 5 ReadDeviceRandom Device random read 1 Applicable ACT controls This function is available for all ACT controls but the ActSupoort and ActMLSupport controls Feature Reads data randomly from devices Format Visual Basic VBA IRet object ReadDeviceRandom szDeviceList ISize IData 0 Long IRet Returned value Output String szDevicelist Device name Input Long ISize Number of read points Input Long IData n Read device values Output Visual C IRet object ReadDeviceRandom szDeviceList ISize IplData Long IRet Returned value Output CString szDevicelist Device name Input Long ISize Number of read points Input Long kIplData Read device values Output VBScript varRet object ReadDeviceRandom varDeviceList varSize IpvarData
162. arDay Day value to be written SHORT type Input VARIANT varDayOfWeek a to pewritten Input VARIANT varHour Hour value to be written SHORT type Input VARIANT varMinute Minute value to be written SHORT type Input VARIANT Second value to be written SHORT type Input 4 Explanation a An error is returned if the clock data to be set are not correct values b As to the value specified in iYear sYear or varYear a four digit year is valid for the QCPU Q mode or a two digit year for any other CPU Note that the year valid for the QCPU Q mode is between 1980 and 2079 An error will occur if a four digit year is set to any CPU other than the QCPU Q mode c The value to be specified in iDayOfWeek sDayOfWeek or varDayOfWeek is as follows Day of Week Sunda Monday Tuesday Wednesda Thursday Friday 5 Returned value Normal termination 0 is returned Abnormal termination Any value other than 0 is returned Refer to Chapter 6 ERROR CODES POINT 1 Clock data cannot be read from the A0J2HCPU A2CCPU A2CJCPU as they do not have clock data 2 For the QCPU A mode and ACPU clock data can be set only when the target station is in the STOP status 3 For the QCPU A mode and ACPU the clock setting special relay M9028 changes to OFF after clock data setting 4 For the FXCPU clock setting can be made to the FX1N FX1NC FX1S or FX2N when it has a built in clock o
163. arget station side Target station side For single CPU For single CPU Ox3FF fixed Ox3FF fixed 0 For multiple CPUs For multiple CPUs ActDestinationlONumber 0x00 Fixed to 0x00 Fixed to 0x00 Connected CPU OX3FF Connected CPU OX3FF No 1 0x3E0 No 1 0x3E0 No 2 0x3E1 No 2 0x3E1 No 3 Ox3E2 23 4 0x3E3 4 ActDidPropertyBit Fixed to 0x01 Fixed to 0x01 Fixed to 0x00 Fixed to 0x00 ActDsidPropertyBit Fixed to 0x01 Fixed to 0x01 Fixed to 0x00 Fixed to 0x00 lActHostAddress 11 Host name or IP address of connected station side module Target station side For single CPU For multiple CPUs P For multiple CPUs Connected station Connected station Connected CPU 0x3FF ActlONumber 6 Connected CPU 0x3FF side relayed module side relayed module No 1 0x3E0 No 1 0x3E0 address address No 2 0x3E1 For single CPU Ox3FF fixed No 2 0x3E1 1 For access to another station MELSECNET 10 for the property pattern of 2 specify the station number of the connected station side series compatible E71 set in the Ethernet parameter of the connected station side Q series compatible E71 6 As the I O address specify the value found by dividing the actual first number by 16 To next page 3 12 3 12 3 DETAILS OF THE ACT CONTROLS MELSOFT P Property Default Value o ActMultiDropChannelNumber Fixed to 0x00 Fixed to 0x00 0x00 or 0x02 5 Fixed to 0x00
164. ation side peo OOM 7597 OxFF ADI module station number module station number ActTimeOut 10000 Any value specified by user in ms units ActTransmissionDelayTime Any value specified by user unit s Property Default Value 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 28 ActQ6TEL control The following table indicates the properties possessed by the ActQ6TEL control and their default values 1 Configuration Connected Relayed station CPU module Modem Relayed network Subscriber line Relayed Relayed HRE Modem station module IBM PC AT compatible 2 Property patterns Connected Station CPU elayed Station elayed Networ QnACPU QCPU QCPU B mode A mode CPU 1 messo MELSECNET 10 x x E E Ee CC Link Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU 3 Property list Propert Default Val Property Patterns 2 5 OO Empty Any value specified by user ActATCommandPasswordCancelRetry 3 Any value specified by user ActATCommandResponseWaitTime Any value specified by user unit s ActConnectionCDWaitTime 9 Any value specified by user unit s ActConnectionModemReportWaitTime 5 Any value specified by user unit s 1
165. ation unit according to the cellular phone used For details contact the company of your cellular phone b Cellular phone without auto answer function For the cellular phone without auto answer function use a cellular phone communication unit that has the ANS ORG TEL select switch If the cellular phone communication unit does not have the ANS ORG TEL select switch it is impossible to connect the line The line connection procedure is different depending on the cellular phone company and cellular phone model For details contact the maker of your cellular phone Instructions for programming 1 About sample programs test programs and sample sequence programs a Sample programs test programs The sample programs are attached for your reference to create user programs The test programs are attached to conduct communication tests Use these programs on your own responsibility b Sample sequence programs The sample sequence programs attached to MX Component must be modified depending on the system configuration and parameter settings Modify them to be best for the system Please note that it is user s responsibility to use the same sequence programs About forced termination of processes during communication If communication is being made with the same type of control open for multiple processes forcing one process to be terminated by Task Manager or the like may stop the other processes at the communication function execution
166. ber 1 Fixed to OxFF Target station side module station number 0 STOPBIT Match to the setting of C24 _ONE ActSumCheck SUM M Match to the setting of C24 ActTimeOut 10000 Any value specified by user in ms units 0 Connected station side module station ActUnitNumebr Target station side module station number 0x00 number 1 Note the following points depending on whether the connected station side MELSECNET 10 module is the control station or ordinary station When the connected station side MELSECNET 10 module is the control station Specify the actual station number of the target station side MELSECNET 10 module in ActStationNumber When the connected station side MELSECNET 10 module is the ordinary station Always set the target station side MELSECNET 10 module as the control station and specify 0x00 in ActStationNumber 2 Access via network is enabled only to the network on the side specified in valid module for another station access in the connected station Side network parameters 3 34 3 34 3 DETAILS OF THE ACT CONTROLS MELSOFT 2 When connected station side C24 is used for multidrop link with relayed module a Configuration b Property patterns Connected Relaved Station CPU C24 Station CPU Rel N k QCPU A mode Relayed Networl ana lacpu QnACPU 3 FXCPU 9 Multidrop link ACPU x 1 Q mode A mode CPU 1 IBM PC AT compati
167. ble Relayed network R Independent elayed Relayed is Computer link x x station CPU module 2 Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU 2 Use the mode setting switch and main channel setting to make setting 3 Operates as the one equivalent to AnACPU Connected station CPU c Property list Property Patterns Property Default Value D 19200 ActBaudRate BAUDRATE Match to the setting of C24 8 ActControl TCR_DTR_OR Depending on used cable _RTS 0 STOPBIT Match to the setting of C24 _ONE SUM_CHECK Match to the setting of C24 10000 Any value specified by user in ms units 1 0 oe 1 0x00 Target station side module station number 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 17 ActQCPUQUSB ActMLQCPUQUSB control The following table indicates the properties possessed by the ACIQCPUQUSB ActMLQCPUQUSB is and their default values 1 Configuration 2 Property patterns Connected ere Station CPU elayed Station Connected station Relayed acpu Relayed Network ana mem CPU Q mode mode A mode CPU 1 EE o MELSECNET H IBM PC AT compatible Relayed network MELSECNET 10 Il ol cxx x Relayed Relayed Ethernet Lo Ex oO x
168. ble devices and ranges The MX Component operating manual contains the accessible devices and ranges Refer to the MX Component operating manual Generic Terms and Abbreviations Unless otherwise started this manual uses the following abbreviations and terms for the explanation of MX Component Generic Term Abbreviation Description MX Component Generic product name of the product types SWnD5C ACT E and SWnD5C ACT EA n denotes any versions 0 or later EA means a volume license product IBM PC AT compatible Abbreviation of the IBM PC AT or its compatible personal computer PC CPU module Abbreviation of the MELSEC Q series compatible PC CPU module CONTEC CO LTD make GX Developer Generic product name of the product types SWnD5C GPPW E SWnD5C GPPW EA SWnD5C GPPW EV and SWnD5C GPPW EVA n denotes any of versions 0 or later EA means a volume license product and EV an updated product GX Simulator Generic product name of the product types SWnD5C LLT E SWnD5C LLT EA SWnD5C LLT EV and SWnD5C LLT EVA n denotes any of versions 0 or later EA means a volume license product and EV an updated product MELSECNET 10 board Abbreviation of Type A7OBDE J71 QLP23 A70BDE J71QLP23GE A70BDE J71QBR13 A70BDE J71QLR23 MELSECNET 10 interface board MELSECNET H board Abbreviation of Type Q80BD J71LP21 25 Q80BD J71LP21G Q80BD J71BR1 1 MELSECNET H board CC Link board Abbreviation of Type AB
169. ble indicates the properties possessed by the ActAJ71QC24TEL control and their default values 1 When there is relayed module in addition to connected station side QC24 a Configuration Connected Relayed station CPU RSEN module Modem Relayed network ubscriber line Relayed Relayed Modem station CPU module IBM PC AT compatible b Property patterns Connected E Station CPU ae elayed Station CPU elayed Networ QnACPU QCPU QCPU QnA ACPU Bean mode A mode CPU 1 MELSECNET H MELSECNET 10 MELSECNET I bmw x Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU c Property list Property Patterns PS meena ActATCommand Empty Any value specified by user ActATCommandPasswordCancelRetry Times 3 Any value specified by user ActATCommandResponseWaitTime Any value specified by user unit s 19200 ActBaudRate _ Match to the setting of QC24N 19200 ActConnectionCDWaitTime Any value specified by user unit s ActConnectionModemReportWaitTime Any value specified by user unit s 0 ActConnectUnitNumber 0x00 Connected station side module station number 7 ActCpuType CPU_Q2ACPU CPU type corresponding to target station ActDialNumber Empty Telephone number of any value specified by user k 2 Note the following points wh
170. cation settings on the communication setting utility Sample file list By default the sample program is installed in the following folders C MELSEC Act Sample VBScript SampleASP Sample E asp ASP file C MELSEC Act Sample VBScript SampleASP SampleControl E asp ASP file C MELSEC Act Sample VBScript SampleASP SampleMon E asp ASP file 5 SAMPLE PROGRAMS MELSOFT 5 Screen The sample program screens will be explained a Data input screen Sample E asp AY http 10 97 29 49 ActTest Eng Sample E asp Microsoft Internet Explorer File Edit View Favorites Help Kal Gs mao mu omn amp s Back Stop Refresh Search Favorites History Print Address http 10 97 29 49 ActT est Eng S ample E asp 7 Links MonitorTiming LogicalStationNumber 0 DeviceName 50400 DeviceSize 10 MonitorStart E Done x Local intranet MonitorTiming Enter the monitoring intervals LogicalStationNumber Enter the logical station number Enter the device name from where data will be read Enter the number of points of the devices from where data will be read MonitorStart Used to start monitor processing b Data getting screen SampleControl asp The data getting screen is a page used to store the data entered on the data input screen into the global variables and check them for errors This screen is not displayed on the Internet Explorer screen 5
171. ce of receive data error If a receive data error occurs during communication send receive retry processing may be repeated a maximum of three times within the ACT control At that time it will take a maximum of three times longer period than the set time out value until normal or abnormal termination of the function The following shows a communication path to be retried at a time out error occurrence 1 Ethernet communication a Configuration 1 2 Connected Connected Relayed station CPU module module Ethernet Relayed network 3 4 Relayed Relayed station CPU module IBM PC AT compatible b Target non target communication path The following table indicates the communication paths to be retried at a time out error occurrence All the connected station CPUs can be the targets Target non target the relayed CPUs are indicated by target or non target Connected station 4 Relayed station CPU 2 Connected Motion Rel k module Usable EOE ACPU EXCEL controller Q mode A mode control name CPU MESECNETH x x x x P x QCPU Q mode x MELSECNET 10 seis compatble Mese wer lt lt 1 x E71 ActQJ71E71TCP Ethernet 1 1 I ActMLQJ71E71TCP 3 o S 2 8 u e cotink x mersecnerm x x
172. ceptionWai tingTimeOut LONG Line connection CD signal confirmation time Set the time for watching the ON OFF of the CD signal line when the line is connected Setting range 1 to 999 unit s Increase the set time if the CD signal does not turn ON within the preset time depending on the line connected region example overseas Line connection modem waiting time Set the waiting time for a result code response from the modem after line connection Setting range 1 to 999 unit s Increase the set time if the response speed of the modem is low Line disconnection CD signal confirmation time Set the time for watching the ON OFF of the CD signal line when the line is disconnected Setting range 1 to 999 unit s Increase the set time if the CD signal does not turn OFF within the preset time depending on the line connected region example overseas Line disconnection delay time Set the guard time no communication time of the escape command sent to the modem Setting range 1 to 999 unit s Increase the set time if the response speed of the modem is low Data send delay time Set the time to be provided before the AT command is sent Setting range 0 to 999 unit s Increase the set time if the error code OxF2100008 is returned though the correct AT command has been set Increase the set time if the response speed of the modem is low AT command send response waiting time Setting range 1 to 999 unit s Increase the se
173. ch set the timings in case of program settings type and change the contents of the detailed settings that were set using the wizard in case of utility settings type Change the settings of the property ActATCommand in case of program settings type and change the command AT that were set using the wizard in case of utility settings type If there is no problem with the modem or the telephone line change the value of the properties set Properties like ActConnectionCDWaitTime etc which set the timings in case of program settings type and change the contents of the detailed settings that were set using the wizard in case of utility settings type 6 ERROR CODES MELSOFT Error Definition OxF21000 OxF21001 OxF202 There is no response from the modem Causes can be the following Abnormality in the modem Telephone number setting mistake There is no response from A Q 6TEL C24 Causes can be the following Setting mistake w r t A Q 6TEL C24 A Q 6TEL C24 got connected to a non existant modem There was a communication failure Following causes can be considered depending on the status Communication time over Break in cable the specified port not supported mistake in specifying the COM port Modem s power is switched OFF Check the status of the modem Check the telephone number If the problem persists even after checking the above points change the value of the properties s
174. compatible own station intelligent special function module intelligent special function module load on the own station CPU making the following setting invalid makes it unnecessary to specify ActUnitNumber Only ActlONumber is used to specify the module number Property value Module number is made valid Module number is made invalid For multidrop connection via Q series compatible C24 CC Link making the following setting invalid makes it unnecessary to specify ActDestinationlONumber However when the following setting is made invalid ActDidPropertyBit must be made valid Use ActUnitNumber to specify Property value number of the last access target station is made valid number of the last access target station is made invalid Specify the packet type for communication with the A series or QnA series Ethernet module Property value dAd Description Property window input value PACKET ASCII 2 ASCII packet PACKET BINARY 3 Binary packet 3 DETAILS OF THE ACT CONTROLS MELSOFT Property Name Type Specify the set password to free the password lock set to the AGTEL Q6TEL series compatible C24 or series compatible E71 1 You can set up to four characters 2 ActPassword BSTR When ActEasylF or ActMLEasylF control is used this setting is ignored if the communication target is other than the AGTEL Q6TEL Q series compatible C24 or Q series compatible E71 If the chara
175. control and ActACPU control 1 Using method Load the form and choose the control to be used Click the button to open the communication line When you selected the ActEasylF control type the logical number which was specified in communication settings on the communication setting utility in the LogicalStationNumber text box before clicking the button Click the button to close the communication line When you click the button the type and type code of the PLC CPU to which the line is currently connected appear in the Data list box Typing the device names from where you want to read data and the number of points in the DeviceName and DeviceSize text boxes respectively and clicking the button displays the device data in the Data list box Typing the device names to where you want to write data and the number of points in the DeviceName and DeviceSize text boxes respectively and the device values to be written in the DeviceData text box and clicking the WriteDeviceRandom button writes the device values to the PLC CPU If an error occurs during execution the error code appears in the ReturnCode text box If an error has occurred refer to 6 ERROR CODES and remove the error cause Precautions for use of the sample program a When using the ActEasylF control make communication settings on the communication setting utility before running this sample program b When the ActAC
176. ctCpuType CPU CPU type corresponding to target station QO2CPU A Target station side module ActNetworkNumber Fixed to 0x00 9 Fixed to 0x00 cod network number ActPortNumber 1 IBM PC AT compatible side COM port number Target station side module Target station side module ActStationNumber Fixed to OxFF 9 9 om station number station number ActTimeout 10000 Any value specified by user in ms units 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 10 ActQnACPU ActMLQnACPU control The following table indicates the properties possessed by the ActQnACPU ActMLQnACPU control and their default values 1 Configuration 2 Property patterns Connected Station CPU Relayed Station CPU Relayed Network Connected Relayed QnACPU QCPU QCPU station module mode A mode CPU 1 D MELSECNETH x IBM PC AT compatible Relaved network MELSECNET 10 MELSECNET II Relayed Relayed i Ethernet station CPU module ox RH OTT SERES UN 228712 E O Accessible Property pattern within circle Inaccessible 1 Including motion controller CPU 3 Property list Property Patterns TE oa wor 19200 ActBaudRate BAUDRATE BAUDRATE_9600 BAUDRATE 19200 BAUDRATE 38400 19200 8 ActControl TCR DTR OR Depending on used cable _RTS 17 1023 Connected station Fixed to Ox3FF Fixed to 0x3FF Fixed
177. cters specified are other than alphanumeric a character code conversion error 0xF1000001 occurs at execution of Open Set the connection system Property value y Connection system 3 Property window input value TEL AUTO CONNECT 0x00 TEL AUTO CALLBACK 0x01 Auto line connect Callback fixation TEL AUTO CALLBACK NUMBER Auto line connect Callback number 0x02 specification ActConnectWay LONG TEL CALLBACK 0x03 Callback connect Fixation TEL CALLBACKNUMBER 0x04 Callback connect Number specification TEL CALLBACK REQUEST 0x05 Callback request Fixation TEL CALLBACK REQUEST NUMBER 0x06 Callback request Number specification TEL CALLBACK WAIT 0x07 Callback reception waiting Specify the AT command that initializes the modem If you set no value do not enter the property value the modem standard AT command is used You can set up to 70 characters 2 Specify the telephone number ActDialNumber BSTR You can set up to 50 characters 2 Characters that can be set 0 1 2 3 4 5 6 7 8 9 Specify the number to access the outside line You can set up to 10 characters 2 Characters that can be set 0 1 2 3 4 5 6 7 8 9 Specify the callback telephone number You can set to 62 characters 2 Characters that can be set 0 1 2 3 4 5 6 7 8 9 ActCallbackNumber BSTR You need not set any value when the connection system
178. d is in the MELSECNET 10 mode a Configuration Connected MELSECNET H Relayed station CPU module module Relayed network Relayed Relayed station CPU module IBM PC AT compatible b Property patterns Connected Station CPU Station CPU Relayed Station CPU Own Board CPU Relayed Network CPU CPU A ACPU ACPU x 1 9 s FXCPU A mode Q mode A mode CPU 1 8 R 5 eae eae DES po pe Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU c Property list P P Property Default Value eng D CPU type corresponding to target station Target station side For single CPU 0x3FF fixed 0 For multiple CPUs ActlONumber 0x00 Fixed to 0x00 Connected CPU 0x3FF Fixed to Ox3FF No 1 OXSEO No 2 OX3E1 No 3 OX3E2 No 4 0x3E3 1 0 ActMultiDropChannelNumber 0x00 Fixed to 0x00 ActNetworkNumber 000 Fixed to 0x00 Target station side module network number ActPortNumber Board No of IBM PC AT compatible side MELSECNET H board PORE 1 PORT 1 to PORT 4 first to fourth boards ActStationNumber OFP Fixed to OxFF Target station side module station number ActThroughNetworkType on Fixed to 0x01 0 ActUnitNumber 0x00 Fixed to 0x00 3 DETAILS OF THE ACT CONTROLS ME
179. d restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company 6 ERROR CODES MELSOFT Error Definition Network Parameter Common Data Error Exit the program and restart the IBM PC AT compatible 0x04074002 The parameter block exists but the data inside Reinstall MX Component is not set Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x04074101 Parameter PLC Data Error Reinstall MX Component Inform the telephone center of our company Network Parameter PLC Data Error Exit the program and restart the IBM PC AT compatible 0x04074102 The parameter block exists but the data inside Reinstall MX Component is not set Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x0407410
180. de b The PLC CPU type character string is returned in UNICODE 4 FUNCTIONS MELSOFT 5 CPU type character string and type code The following table lists the CPU Network Board and GOT type character strings and type codes read using GetCpuT ype a Type character string list Type Character String Type Character String CPU Network Board GOT Type CPU Network Board GOT CPU Network When GX Simulator CPU Network When GX Simulator Type Board Type is connected d Board Type is connected QO6HCPU QO6HCPU QO6HCPU A2ASCPU A 2U A2U Q12HCPU Q12HCPU Qi2HCPU _ A2ASCPU S1 2091 Q2ACPU Q2ACPU amoru 4 exw _ a e Q4ACPU Q4ACPU A173UHCPU S1 A173UHCPU S1 A173UH CCPUCAA PRE ac AOBDE J710LP29 GE A7OBDE710LP23 _ McjcPU ac Ae JavoeDEJziQeRIS _ ANNCPU AN woBDEJzIQURES _ ANNCPU S an Az 361 AeoBDEJeiBTH _ ascu as Az asoepEJeieTis AeoBDEJeiBTIS _ A2SCPU S1 A2S A2N A80BDE A2USH S1 A2USH S1 a2sHcpru ASH AesH 7 2125 asoBD 71LP2t 25 _ A2SHCPUS asm asn JosoepJzuPeiG _ A2CPU A2AS __ _ Ames lor i 0 5 A2ACPUP21 R21 A2AS1 A2AS1 1 Displa
181. e 1 Including motion controller CPU c Property list Property Patterns si eae 19200 ActBaudRate BAUDRATE Match to the setting of Q series compatible C24 _19200 ActConnectUnitNumber Connected station side module station number ActControl ms DTR OR Depending on used cable _RTS ActCpuType CPU oe CPU CPU type corresponding to target station Target station side Target station side For single CPU For single CPU OxSFF fixed Ox3FF fixed For multiple CPUs multiple CPUs ActDestinationlONumber d Fixed to 0x00 Fixed to 0x00 Connected CPU OX3FF Connected CPU 0x3FF No 1 0x3E0 No 1 0x3E0 No 2 0x3E1 No 2 0x3E1 No 3 Ox3E2 23 No 4 0x3E3 ActDidPropertyBit Fixed to 0x01 Fixed to 0x01 Fixed to 0x00 Fixed to 0x00 2 Note the following points when mu access via the Ethernet module Q series compatible E71 QE71 For ActNetworkNumber and ActStationNumber specify the value set in the parameter setting of the target station side Q series compatible E71 or QE71 Set the MNET 10 routing information in the parameter setting of the Q series compatible E71 or QE71 Also when making setting specify other than the automatic response system any of the IP address calculation system table conversion system and combined system as the MNET 10 routing system To next page 3 DETAILS OF THE ACT CONTROLS MELSOFT Property Patterns coe meee o oe T o
182. e A mode CPU merseonerm x x x x x x MELseCNETIo x x x x x x FXCPU ActFXCPUTEL ESAE MM MA ae Computerin x x x x x x CC Link APP 14 APP 14 APPENDICES MELSOFT d When series compatible C24 and QC24N is used 1 Configuration 1 2 Connected Connected Relayed station CPU module module m Modem Relayed network 3 I Subscriber line 4 TEL I Relayed Relayed station CPU module IBM PC AT compatible 2 Target non target communication path The following table indicates the communication paths to be retried at a time out error occurrence All the connected station CPUs can be the targets Target non target the relayed CPUs are indicated by target or x non target Connected station 4 Relayed station CPU 2 Connected Motion 1 CPU module Usable 4X ACPU controller control name MELSECNET H MELSECNET 10 MELSECNET II x Q mode aciqu7ice4TeL CC Link 11 Computer link Multidrop Independent mode Multidrop Synchronous mode MELSECNET H MELSECNET 10 MELSECNET Ethernet QC24N Computer link Multidrop x Independent mode Multidrop Synchronous mode x APP 15 APP 15 APPENDICES MELSOFT Appendix 3 2 When retries are to be made at occurren
183. e button IDCANCEL IDOK Description Microsoft Visual C x 7 3 When the left screen appears read the information and A The Aniya ak has not been inserted into the project Developer Studio will do T k th OK b tt OK n Cancel ene Confirm Classes 2 4 Check the class checkbox and click the button The checked class es will be generated from the Activex Control Click on a class name to browse or edit its attributes Cancel Class name Base class CActACPU Cwnd Header file ActACPU ch Implementation file ActACPU cpp To the next page 2 ABOUT THE ACT CONTROLS MELSOFT From the previous page l Add Member Variable 213 5 Enter the member variable name and click the button Member variable name _ Cancel Category Control Variable type CActACPU z Description map to CActACPU member Ged 6 Make sure that the member variable has been registered Message Maps Member Variables Automation ActiveX Events Class Info Project Class name Add Class v v fact ad le CA MyProjects ACTSACT 1h CA MyProjects ACTSACT1 cpp Aa Variable Control IDs Delete Variable Description Cancel 2 ABOUT THE ACT CONTROLS 2 1 3 When using VBA MELSOFT Perform the following setting operation when using VBA
184. e COM port number Target station side module Target station side module ActStationNumber Fixed to OxFF 9 s 9 station number station number 0 STOPBIT Match to the setting of UC24 _ ActSumCheck SUM ee CK Match to the setting of UC24 10000 Any value specified by user in ms units 0 Target station side module Connected station side Connected station side ActUnitNumber 0 00 station number module station number module station number 3 DETAILS OF THE ACT CONTROLS MELSOFT 2 When connected station side UC24 is used for multidrop link with relayed module a Configuration 6 Property patterns Connected Connected Station CPU Relayed Station CPU station UC24 CPU PU A Rel N k QCPU A mode Relayed Networl ana lacpu LLL QnACPU 3 FXCPU Multidrop link mode A mode CPU x1 ACPU x 1 IBM PC AT compatible Relayed network Relayed Relayed Computer link x ID 3 x station CPU module Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU 2 Use the mode setting switch and main channel setting to make setting 3 Operates as the one equivalent to AnACPU c Property list Property Patterns Property Default Value D 19200 BAUDRATE Match to the setting of UC24 _ 19200 8 TCR_DTR_OR Depending on used cable _RTS
185. e PLC CPU or module Close the communication line Close Do you end the user application 4 FUNCTIONS MELSOFT 6 Differences between LONG type functions and SHORT type INT type functions As functions for performing device batch read device batch write device random read device random write device data setting and device data acquisition MX Component has two different functions LONG type functions and SHORT type INT type functions The following describes the differences between the LONG type functions and SHORT type INT type functions a LONG type functions Reference sections Section 4 2 3 to Section 4 2 8 When writing reading a negative device value by using the LONG type function the data must be converted into the SHORT type INT type data within the user application Write read negative device values using the SHORT type INT type functions indicated in b Target functions ReadDeviceBlock WriteDeviceBlock ReadDeviceRandom WriteDeviceRandom SetDevice GetDevice Example When reading device data that include negative value by using ReadDeviceBlock IpIData 65535 0x0000FFFF DO 1 OxFFFF Stored as LONG type 4 byte Conversion operation data within user application SHORT IplData IpsData 1 OXFFFF EX Data must be converted into DO data is read using Conversion
186. e communication line GetCpuType GetCpuType Used to read the PLC CPU type ReadDeviceRandom Used to read the data of the devices entered in the DeviceName text box WriteDeviceRandom Used to write the data of the devices entered in the DeviceName text box ReturnCode Shows the result of executing the corresponding method Shows the CPU type CPU type code and read device values LogicalStationNumber 5 SAMPLE PROGRAMS MELSOFT 5 1 2 Sample program for modem communication This sample program monitors the devices of the PLC CPU corresponding to the specified logical station number using the ActEasylF control 1 3 Using method Enter the value of the logical station number to which modem communication settings have been made within the communication settings utility into the LogicalStationNumber text box If the password has been set to the module to be connected enter the password into the Password text box Enter the monitoring interval into the MonitorInterval text box Enter the device name to be monitored into the DeviceName text box and the number of device points into the Size text box Clicking the button opens the communication line after connection of the telephone line and reads the device values at the intervals specified with the RedDeviceBlock function For the logical station number that does not need connection of the telephone line only the communication line is opened and the
187. e program and restart the IBM PC AT compatible 0x04074302 The value of the RUN PAUSE settings Reinstall MX Component existence flag is incorrect Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x04074303 Error in Common Parameter Block No 1003 Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x04074304 Error in Common Parameter Block No 1008 Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x04074305 Error in Common Parameter Block No 1100 Reinstall MX Component Inform the telephone center of our company Error in Common Parameter Block No 2001 Exit the program and restart the IBM PC AT compatible 0x04074306 The device intermediate code specified does not Reinstall MX Component exist Inform the telephone center of our company 6 ERROR CODES MELSOFT Error Definition Exit the program and restart the IBM PC AT compatible 0x04074307 Error in Common Parameter Block No 3000 Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x04074308 Error in Common Parameter Block No 3002 Reinstall MX Component Inform the telephone center of our company Error in Common Parameter Block No 3004 Exit the program and restart the IBM PC AT compatible 0x04
188. e stored in the upper 2 bytes the device value is ORed with FFFFOOOO Hex to convert it into a LONG type negative value ICheckData IData OXFFFF0000 Jelse f the device value whose condition was established is positive assigns the value as is to ICheckData ICheckData IData APP 6 APP 6 APPENDICES MELSOFT Appendix 3 Time Out Periods On MX Component a time out may occur for the period different from the value set to the ActTimeOut property within the ACT Control This section explains the time out periods in various status Appendix 3 1 When retries are to be made at occurrence of time out error If a time out error occurs during communication time out processing may be repeated a maximum of three times within the ACT control At that time it will take a maximum of three times longer period than the set time out value until a time out occurs The following shows a communication path to be retried at a time out of error occurrence 1 Computer link module communication a Configuration 1 2 Connected Connected Relayed station CPU module module IBM PC AT compatible Helayedinenork s 4 Relayed Relayed station CPU module 6 Target non target communication path The following table indicates the communication paths to be retried at a time out error occurrence All the connected station CPUs can be the targets Ta
189. e the manual alone it is optionally available as the printed matter of the manual number Model code in the above table How to Use This Manual How to Use This Manual is given purpose by purpose for use of MX Component Refer to the following outlines and use this manual 1 To know the feature and ACT control lists Chapter 1 Chapter 1 gives the ACT control outline and ACT control lists 2 To use the ACT controls on Visual Basic or Visual Section 2 1 Section 2 1 provides how to make settings on Visual Basic and Visual C to use the ACT controls 3 To know the programming procedure Section 2 2 Section 2 2 contains programming procedures 4 To know the device types to be specified in the functions Section 2 3 Section 2 3 lists the device types b To know the details of the ACT controls Chapter 3 Chapter 3 provides the details of the ACT controls Read this chapter when creating a program 6 To know the details of the functions Chapter 4 Chapter 4 gives the details of the functions Read this chapter when creating a program 7 To know how to use the sample programs Chapter 5 Chapter 5 provides the sample programs and how to use them Use them as reference when creating a program 8 To know the definitions of the error codes Chapter 6 Chapter 6 lists the error codes returned by the ACT controls and the error codes returned by the CPUs modules and network boards 9 To know the accessi
190. ecified by user unit s Any value specified by user unit ActIntelligentPreferenceBit Fixed to 0x00 Fixed to 0x00 Fixed to 0x00 Fixed to 0x00 Target station side Target station side For single CPU For single CPU Ox3FF fixed Ox3FF fixed For multiple CPUs For multiple CPUs Connected station Connected station ActlONumber 1 Connected CPU Ox3FF Connected CPU Ox3FF side relayed module side relayed module No 1 0x3E0 No 1 0x3E0 address address No 2 OX3E1 No 2 OX3E1 No 3 OX3E2 No 3 OX3E2 No 4 OX3E3 No 4 OX3E3 1 ActLineType LINETYPE PULSE LINETYPE TONE LINETYPE ISDN LINETYPE TONE ActMultiDropChannelNumber 0 Multidrop channel Fixed to 0x00 Fixed to 0x00 P Fixed to 0x00 3 0x00 number 1 As the I O address specify the value found by dividing the actual first number by 16 2 Note the following points when making access via the Ethernet module QE71 For ActNetworkNumber and ActStationNumber specify the value set in the parameter setting of the target station side QE71 Setthe MNET 10 routing information in the parameter setting of the QE71 Also when making setting specify other than the automatic response system any of the IP address calculation system table conversion system and combined system as the MNET 10 routing System 3 Specify the following as the channel No to be multidrop linked 0 Use default channel of module 1 Channel 1
191. ect Inform the telephone center of our company Device Representation Error Exit the program and restart the IBM PC AT compatible 0x04067003 The rectification part specified for the device is Reinstall MX Component incorrect Inform the telephone center of our company Device Representation Error Exit the program and restart the IBM PC AT compatible 0x04067004 The rectification part specified for the extended Reinstall MX Component device is incorrect Inform the telephone center of our company 6 ERROR CODES Error Code 0x04067005 0x04070001 0x04070002 0x04070003 0x04071001 0x04071002 0x04071003 0x04072001 0x04072002 0x04072003 0x04072004 0x04073001 0x04073002 0x04073101 0x04074001 MELSOFT Error Definition Other Errors Other errors generated during the conversion of device representation code to the device intermediate code Common Data Conversion Error The input data of the device comment conversion is incorrect Insufficient Common Data The data to be converted is insufficient Insufficient Storage Area The area where the conversion data is stored is insufficient Error in PLC Data Conversion The input data of the device comment conversion is incorrect Insufficient PLC Data error The data to be converted is insufficient Insufficient Storage Area The area where the conversion data is stored is insufficient Open Error Failed in creating conver
192. ected station ActConnectUnitNumber x 1 Fixed to 0x00 side module station Fixed to 0x00 Fixed to 0x00 number ActCpuType CPU type corresponding to target station Target station side Target station side For single CPU For single CPU Ox3FF fixed fixed For multiple CPUs For multiple CPUs ActDestinationlONumber Fixed to 0x00 Fixed to 0x00 Connected CPU 0x3FF Connected CPU Ox3FF Property list 1 Property Gives the property name 2 Default value Gives the default value of the property The default values used when the properties are changed in the program are given within the parentheses 3 Property pattern Gives the property settings necessary to make communication settings Refer to the property pattern table for the property pattern numbers The default values indicated are the property values shown in the property window of Visual Basic or Visual C4 The default values of the properties whose values must be changed in other than decimal when changed in a program are indicated in parentheses 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 1 ActEasyIF ActMLEasylF control The following table indicates the property possessed by the ActEasylF ActMLEasylF control and its default value Default Value Property Pattern ActLogicalStationNumber Logical station number set on the communication settings utilit Password set to the AGTEL Q6TEL series compatible
193. ed device character string type is incorrect Device Error 0x0407C010 The specified device is not supported by the specified PLC PLC Type Error 0x0407C011 re The specified PLC is not supported Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit
194. ed to 0x00 Fixed to 0x00 Fixed to 0x00 module station x00 number 1 As the I O address specify the value found by dividing the actual first number by 16 3 44 3 44 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 22 ActMnetHBD ActMLMnetHBD control The following table indicates the properties possessed by the ActMnetHBD ActMLMnetHBD control and their default values 1 When access is made MELSECNET H mode using QCPU Q mode as connected station CPU a Configuration Connected MELSECNET H Relayed station CPU module module ayed network Relayed Relayed station CPU module BES IBM PC AT compatible b Property patterns Connected Station CPU Relayed Station CPU 2 Own Board Rel N k elayed Network pur acpu m Q mode A mode CPU 1 M amp sEONETH Q x x x x merseonerio x MELSECNET II x OC Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU 2 Operates only when QCPU Q mode is used c Property list ee Property Default Value ees ae eee 1025 ActCpuType CPU_BOARD CPU type corresponding to target station Target station side Target station side For single CPU For single CPU OxSFF fixed Ox3FF fixed For multiple CPUs multiple CPUs ActDestinationlONumber 60 Fixed to 0x00 Fixed to
195. ed to OXFF Fixed to OXFF ActTimeOut Lm 08 Any value specified by user in ms units ActTransmissionDelayTime Any value specified by user unit s Target station side module station ActUnitNumber Fixed to OxFF 9 ios number 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 32 ActGOT ActMLGOT control The following table indicates the properties possessed by the ActGOT ActMLGOT control and their default values 1 Configuration co mn IBM PC AT compatible 2 Property patterns Property patterns SUM iid ActHostAddress 1 1 1 1 Host name or IP address of connected GOT ActPortNumber 5011 IBM PC AT compatible side COM port number ActTimeOut 10000 Any value specified by user in ms units 4 FUNCTIONS MELSOFT 4 FUNCTIONS This chapter provides the programming instructions and function details dispatch interface 1 custom interface 2 1 The dispatch interface is a method in which the ActiveX controls are pasted onto Visual Basic Visual or VBA Excel Access to use the ActiveX controls You need not program interface acquirement and object generation You can also create a program that will create an object without pasting the Activex control to a form The dispatch interface is easier in programming than the customer interface For MX Component it is recommended to use the dispatch interface to create user applications 2 The custom interface gets
196. elayed um IMELSECNETH x x x x x 2 x 2 3 Property list Property Patterns vee PRAES ActCpuTimeOut Any value specified by user in 250ms units 262 CPU A1NCPU 1280 ActDestinationPortNumber 0x500 Port number of connected station side module ActHostAddress 1 1 1 1 Host name or IP address of connected station side module 2 ActPacketType nm PACKET BINARY or PACKET ASCII PACKET ASCII 4 255 ActStationNumber 1 OxFF Fixed to OxFF Target station side module station number 10000 Any value specified by user in ms units 1 Note the following points depending on whether the connected station side MELSECNET 10 module is the control station or ordinary station When the connected station side MELSECNET 10 module is the control station Specify the actual station number of the target station side MELSECNET 10 module in ActStationNumber When the connected station side MELSECNET 10 module is the ordinary station Always set the target station side MELSECNET 10 module as the control station and specify Ox00 in ActStationNumber ActCpuType CPU type corresponding to target station 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 7 ActAJ71E71UDP ActMLAJ71E71UDP control The following table indicates the properties possessed by the ActAJ71E71UDP ActMLAJ71E71UDP control and their default values 1 Configuration 2 Pr
197. eld key entered is incorrect Inform the telephone center of our company Record Data Construction Error Exit the program and restart the IBM PC AT compatible 0x03020050 Failed in reconstructing the record data of Reinstall MX Component DBProduct Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Error Retreiving Record Data 0 03020060 eae Reinstall MX Component Failed while retrieving DBProduct record data Inform the telephone center of our company 6 ERROR CODES MELSOFT Error Definition Last Record error Exit the program and restart the IBM PC AT compatible 0x03020061 Cannot retrieve the next record since the current Reinstall MX Component record is the last record Inform the telephone center of our company sro Exit the program and restart the IBM PC AT compatible OxOSFFO0000 JInitialization error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible OxOSFFO0001 Not Initialized error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible OxOSFFO0002 Multiple Initialization error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible OxOSFF0003 Workspace Initialization Error Reinstall MX Component Inform the telephone center of our company m Exit
198. en making access via the Ethernet module QE71 For ActNetworkNumber and ActStationNumber specify the value set in the parameter setting of the target station side QE71 Setthe MNET 10 routing information in the parameter setting of the QE71 Also when making setting specify other than the automatic response system any of the IP address calculation system table conversion system and combined system as the MNET 10 routing System To next page 3 DETAILS OF THE ACT CONTROLS MELSOFT P Default Val Property Patterns scene ActDisconnectionCDWaitTime 2 Any value specified by user unit s ActDisconnectionDelayTime Any value specified by user unit s Connected station 1023 side relayed Ox3FF Fixed to Ox3FF Fixed to OXGFF Fixed to Ox3FF module VO address ActLineType NET ES LINETYPE PULSE LINETYPE TONE LINETYPE ISDN TONE Target station side ActNetworkNumber Fixed to 0x00 module network Fixed to 0x00 Fixed to 0x00 number ActOutsideLineNumber Outside line access number of any value specified by user ActPasswordCancelResponseWaitTime Any value specified by user unit s IBM PC AT compatible side COM port number 255 Target station side Target station side ActStationNumber OxFF Fixed to OXFF module station module station Fixed to OXFF number number 10000 Any value specified by user in ms units ActTransmissionDelayTime Any value specified by user unit s Target station side Fixed to 0x00 Fixed to 0x0
199. estart the IBM PC AT compatible 0x04010008 Other errors generated during the conversion of Reinstall MX Component Intermediate code to machine code Inform the telephone center of our company Machine Code Not Converted error Exit the program and restart the IBM PC AT compatible 0x04011001 The converted intermediate code for one Reinstall MX Component command is more than 256 bytes Inform the telephone center of our company Machine Code Completion Error Exit the program and restart the IBM PC AT compatible 0x04011002 The machine code area to be converted ended _ Reinstall MX Component abruptly Inform the telephone center of our company Abnormal Machine Code Exit the program and restart the IBM PC AT compatible 0x04011003 Could not convert since the machine code to be Reinstall MX Component converted was abnormal Inform the telephone center of our company 6 18 6 18 6 ERROR CODES Error Code 0x0401 1004 0x04011005 0x04020001 0x04020002 0x04020003 0x04020004 0x04020005 0x04020006 0x04020007 0x04020008 0x04020009 0x0402000A 0x0402000B 0x0402000C 0x0402000D MELSOFT Error Definition Insufficient Storage Space for Intermediate Code error The storage area for intermediate code is insufficient Other Errors Other errors generated while converting machine code to Intermediate code Text Code Not Converted error The converted intermediate code for one command
200. et Properties such as ActConnectionCDWaitTime etc which set the timings in case of program settings type and change the contents of the detailed settings that were set using the wizard in case of utility settings type Re examine the settings of A Q 6TEL C24 Confirm whether the modem exists If the problem persists even after checking the above points change the value of the properties set Properties such as ActConnectionCDWaitTime etc which set the timings in case of program settings type and change the contents of the detailed settings that were set using the wizard in case of utility settings type Check whether the cable is broken Check whether the specified port is not supported Check whether correct COM port is set Check if the modem power is switched OFF For detailed troubleshooting please refer to the details of the error code got after replacing the first four digits with 0 0180 eg In case of OxF202480B please refer to the code 0x0180480B 6 ERROR CODES MELSOFT 6 2 Error Codes Returned by the CPUs Modules and Network Boards This section explains the error codes returned by the CPUs modules and network boards Error codes may not be returned as 1 Error code list describes At the beginning confirm 2 Precautions for confirming error code and then refer to 1 Error code list 1 Error code list If the CPU module or network board has detected an error any of the e
201. f other versions you can set 9600bps or 19200bps The transmission speeds of the ACPU except A2USHCPU S1 FXCPU and motion controller CPU are fixed to 9600bps The A2USHCPU S1 may be set to 19200bps Precautions for USB communication Frequently disconnecting reconnecting the USB cable or resetting or powering ON OFF the PLC CPU during communications with the PLC CPU may cause a communications error which cannot be recovered If itis not recovered completely disconnect the USB cable once and then reconnect it after 5 or more seconds have elapsed If this error occurs at the initial communication after the above operation the function will be performed properly in and after the second communications A 4 3 About clock data of the PLC CPU a For the ACPU including the motion controller CPU clock data setting may be made only when the PLC CPU is in the STOP status For the QCPU mode QCPU A mode QnACPU and FXCPU clock data setting may be made if the PLC CPU is in the RUN status b For the AOJ2HCPU A2CCPU and A2CJCPU setting cannot be made as they do not have the clock function c For the ACPU setting can be made independently of whether the clock setting special relay M9028 is ON or OFF Note that the special relay M9028 turns OFF after execution For the QCPU Q mode QCPU A mode and QnACPU setting can be made independently of whether the clock setting device SM1028 is ON or OFF d Amon
202. f our company Exit the program and restart the IBM PC AT compatible 0x1000004E Shared Memory Not Started error Reinstall MX Component Inform the telephone center of our company No license error 0xF0000001 The license is not given to the IBM PC AT compatible Set data read error Specify the correct logical station number OxF0000002 Reading of the set data of the logical station Set the logical station number on the communication number failed settings utility Already open error ti When changing the communication target CPU execute OxF0000003 The Open method was executed in the open the Open method after performing Close status Not yet open error After executing the Open method execute the OxF0000004 The Open method is not yet executed corresponding method Using the license FD give the license to the IBM PC AT compatible Initialisation error PRU Exit the program and restart the IBM PC AT compatible OxF0000005 Initialisation of the object possessed internally in Reinstall MX Component MX Component failed Memory securing error 3 Exit the program and restart the IBM PC AT compatible OxF0000006 Securing of MX Component internal memory failed Exit other programs and secure free memory area ailed 6 39 6 39 6 ERROR CODES MELSOFT Error Definition Function non support error Can not use because the corresponding method is not OxF0000007 The method does not su
203. features specifications part names and setting of the MELSECNET 10 board and the 13JL93 installation uninstallation and others of the driver Sold separetely Type A80BDE J61BT11 Control amp Communication Link System Master Local Interface Board User s Manual For SW4DNF CCLINK B IB 0800175 Describes the features specifications part names and setting of the CC Link master board and the 13JR28 installation uninstallation and others of the driver Sold separetely Type A80BDE J61BT13 Control amp Communication Link System Local Interface Board User s Manual For SW4DNF CCLINK B IB 0800176 Describes the features specifications part names and setting of the CC Link local board and the 13JR29 installation uninstallation and others of the driver Sold separetely Type A80BDE A2USH S1 PLC CPU Board User s Manual For SW1DNF ANU B Describes the features specifications part names and setting of the CPU board and the installation pg uninstallation and others of the driver Sold separetely MELSECNET AH Interface Board User s Manual For SWODNC MNETH B Describes the features specifications part names and setting of the MELSECNET H board and the MISURA D installation uninstallation and others of the driver Sold separetely Note The MX Component Version 3 Operating Manual Startup and MX Component Version 3 Operating Manual are contained in the CD ROM together with the software package as a set When you want to purchas
204. for Ethernet communication ActCpuTimeOut LONG Specify the CPU watchdog timer for Ethernet communication Unit x 250ms Set the time out value of communication between the IBM PC AT compatible and PLC Unit ms ActTimeOut LONG MX Component may perform time out processing internally depending on the communication path For details refer to Appendix 3 About Time Out Periods Specify whether sumcheck is made or not Valid only via computer link module P ActSumCheck value Description Property window input value LONG Qoo No CHECK 0 Specify the requesting network number when the QE71 series compatible E71 is ActSourceNetworkNumber specified LONG Specify the same network number as for the connected QE71 or Q series compatible E71 network number specified in the network parameter Specify the requesting station number IBM PC AT compatible side station number when the ActSourceStationNumber QE71 or Q series compatible E71 is specified LONG Make setting to avoid setting the same station number as that of the QE71 set within the same Ethernet loop Specify the port number of the target when Ethernet communication is specified For access to another network specify the relay destination port number For other than the automatic response system make setting as indicated in the following table ActDestinationPort Mia ee QE71 UDP IP Fixed to 5001 ixed to LONG Q se
205. g the own station Specify as follows for multidrop connection via series compatible C24 QJ61BT1 1 ActintelligentPreferenceBit value LONG Specify the own network Specify another network of multidrop destination Specify the station number for MELSECNET 10 H or CC Link Specify 0x00 when specifying the own station Handled as the own station when access to the CPU of the CPU board is made ActStationNumber Specify as follows for multidrop connection via Q series compatible C24 QJ61BT11 LONG ActintelligentPreferenceBit value Specify the own network Specify another network of multidrop destination Specify the module number of the computer link module or the station number when the target is the Q series compatible intelligent special function module However specify 00x0 when setting ActUnitNumber the QnA series own station module loaded to the own station CPU LONG Invalid when the target is not the computer link communication or Q series compatible intelligent special function module For multidrop link specify the module number of the target computer link module Specify the module number of the computer link module QE71 or Q series compatible E71 For multidrop link specify the module number of the requesting computer link module For multidrop link via CPU COM communication however the module number of the requesting Across RN E station is not needed specify 00 0 Specify 0x00 for other t
206. g the FXCPUS setting may be made for only the FX1N clock built in FX1NC clock built in FX1S clock built in FX2N clock built in FX2NC when RTC cassette is fitted FX2 when RTC cassette is fitted and FX2C when RTC cassette is fitted e Note that an error for transfer time will be produced in clock setting Precautions for use of Q4ARCPU The duplexing function cannot be used Restrictions on use of the FXCPU a When the FXCPU is used access to the TN devices timer present values or CN devices counter present values is not permitted if the device numbers specified are split across 199 or earlier and 200 or later b As the FXCPU does not have a PAUSE switch as the PLC CPU an error is returned if remote pause is specified in SetCpuStatus c Note that specifying the first number of a nonexisting module and executing the WriteBuffer method will not return an error d For the index registers Z V of the FXCPU data cannot be written to 2 or more consecutive points using WriteDeviceBlock Data may be written to only one point Serial communication function of Q00J Q00 Q01 CPU When the following conditions are all satisfied communication between the personal computer and the Q00J Q00 Q01CPU is made at 9600bps speed 1 The connected CPU is the QOOCPU or Q01CPU 2 The serial communication function of the connected CPU is valid 3 The personal computer side baud rate setting differs from the Q00J
207. gram and restart the IBM PC AT compatible Moving Record error OxOSFFO0100 Reinstall MX Component Failed while moving the record Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Retreiving Record Count Error OxO3FFO0101 Reinstall MX Component Failed to retrieve the record count Inform the telephone center of our company we Exit the program and restart the IBM PC AT compatible Retreiving Field Value Error OxOSFFO0110 DM x ri Reinstall MX Component Failed in retrieving the field value Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Setting Field Value Error OxO3FFO 1 11 mes Reinstall MX Component Failed in setting the field value Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible OxO3FFFFFF Other Errors Reinstall MX Component Inform the telephone center of our company Check the CPU type set to ActCpuType No command error Check whether the system configuration is supported or 0x04000001 The specified CPU type cannot be used to not perform processing Exist the program and restart the IBM PC AT compatible Reinstall MX Component Exit the program and restart the IBM PC AT compatible Memory lock error 0x04000002 hu Reinstall MX Component Failed in locking memory Inform the telephone center of our company Exit the program and re
208. han multidrop link LONG For the QE71 and Q series compatible E71 specify the relay target station number fixed to 0x00 for access within the own network For access to another network via MELSECNET 10 specify the station number set in the parameter of the connected Ethernet module Specify the module I O number For multidrop link or intelligent special function module access specify the actual I O number ActlONumber LONG first number 16 of the target computer link module or intelligent special function module specify the number of the relayed or requesting station for multidrop link Specify OX3FF when making access to another station via the own station CPU or network 3 DETAILS OF THE ACT CONTROLS MELSOFT Property Name Type Description Specify the target CPU to communicate with In the parameter specify any of the CPU types in the following table Property value Property window input Target CPU value Property value Property window input Target CPU value CPU A2SHCPU 0x109 A2SHCPU S1 CPU 0x10A CPU QO01CPU 0x32 Q01CPU A2ACPU S1 CPU QOOJCPU 0x30 Q00JCPU CPU QOOCPU 0x81 QOOCPU CPU A2ACPU 0x10C CPU QO2CPU 0x22 QO2 H CPU A2ACPUP21 R21 S1 CPU_QO6CPU 0 23 _ QO6HCPU A3ACPU CPU A3ACPU 0x10D CPU Q12CPU 0x24 A3ACPUP21 R21 CPU_Q25CPU 0x25 _ Q25HCPU A2UCPU 51 CPU_Q12PHCPU 0x41 Q12PHCPU CPU A2UCPU 0
209. he DIP switch SW2 setting of the E71 or QE71 If the DIP switch is not set correctly a difference has occurred in the packet format ASCIl binary and therefore the error code returned from the module cannot be recognized correctly Instructions for use of CC Link modules 1 Software version of CC Link master local module As the CC Link master local module used in CC Link communication or CC Link G4 communication only when the AJ65BT G4 is used use the module of software version N or later The module of software version M or earlier will not operate properly 2 Software version of CC Link G4 module As the CC Link G4 module used in CC Link G4 communication only when the AJ65BT G4 is used use the module of software version D or later The module of software version C or earlier will not operate properly Instructions for use of MELSECNET II MELSECNET 10 and MELSECNET H 1 About relaying from the MELSECNET 10 loaded station When the module is loaded to the ANNCPU or AnACPU it is recognized as a MELSECNET II module When the connected station is the ANNCPU or AnACPU set the relayed network as MELSECNET II In addition set the station number to 0 when making access to the control station 2 Instructions for relaying the MELSECNET II When access is made to the QnACPU AnUCPU QCPU A mode or motion controller CPU via the MELSECNET the device range is equivalent to that of the AnACPU Instruc
210. he QCPU Q mode read operation may be performed for only the Q series dedicated module Read from the shared memory of the QCPU Q mode cannot be performed either 4 FUNCTIONS MELSOFT 4 2 10 WriteBuffer Buffer memory write 1 Applicable ACT controls The applicable ACT controls are indicated below ActQCPUG JActQCPUQUSB ActMLQCPUA JActCCG4Q ActeccG4Q O JActQnACPU JActCCG4QnA ActMLCCG4anA O JActCCG4A ActMLCcG4A O ActFXCPU ActMLFXCPU 4 ActMnet10BD ActMLMnet10BD ActQJ71C24 ActMLQU71C24 ActMnetHBD ActMLMnetHBD ActAJ71QC24 ActMLAJ71QC24 O ActCCBD ActMLCCBD A ActQU71E71TCP ActMLQU71E71TCP_ O adQcPUGBus ActMLQCPUQBus O O ActAJ71QC24TEL ActQ71C24TEL Usable x Unusable An error is returned if access to the ANUCPU QCPU A mode A173UHCPU S1 or A273UH S3 is made 2 An error is returned if access to the QnACPU is made 3 An error is returned if own board access is made 4 An error is returned if the CPU is other than FX2N and FX2NC 5 An error is returned if the CPU is other than FXoN FX2 FX2c FX2N and FX2NC 6 An error is returned if access to the QnACPU is made via the MELSECNET 10 or Depending on the communication path Ethernet communication MELSECNET
211. he connected station side QE71 is other than the automatic response system Specify fixed when the Ethernet parameter setting of the connected station side QE71 is the automatic response system 4 Specify the same network number as the MELSECNET 10 network number set to the QE71 in the Ethernet parameter setting of the target station side QE71 5 Specify the station number on the IBM PC AT compatible side to avoid setting the same station number as set to the QE71 within the same Ethernet loop 6 Do not use 1 to 1024 of ActPortNumber 7 As the I O address specify the value found by dividing the actual first number by 16 3 17 3 17 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 6 ActAJ71E71TCP ActMLAJ71E71TCP control The following table indicates the properties possessed by the ActAJ71E71TCP ActMLAJ71E71TCP control and their default values 1 Configuration 2 Property patterns Connected Station CPU Relayed Station CPU pei E71 Relayed anA Relayed Network QCPU QCPU QnA ACPU ae Station SRY module A mode cpu 1 Q mode A mode CPU xt Relayed Relayed IMELSECNET 2 x station CPU module Ethernet Se ie x x x x Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU 2 Operates as the one equivalent to AnACPU IBM PC AT compatible R
212. he logging interval in the LoggingTiming input cell Clicking the LoggingStart button starts logging When logging starts the past 10 device values and line graphs appear on the graph Clicking the button stops logging Note that the logging data on the screen are not cleared If an error occurs during execution the error message appears in the Message output cell and the error code appears in the Return Code output cell If an error has occurred refer to 6 ERROR CODES and remove the error cause Precautions for use of the sample program a Before running this sample program make communication settings on the communication setting utility b When changing the input value click the LoggingStop button to stop logging once then change the input value and click the LoggingStart button to start logging c In this sample program the number of device points to be logged is preset to 10 and the number of logging times to 10 Sample file By default the sample program is installed into the following folder C MELSEC Act Sample ExcelVBA Sample Sample xls Excel file 5 SAMPLE PROGRAMS MELSOFT Microsoft Excel Sample xls 1 xl Edit View Insert Format Tools Data Window Help 181 4 gt A 21 es Bara
213. he program and restart the IBM PC AT compatible server Reinstall MX Component Inform the telephone center of our company Register the monitor in the monitoring server Device Not Registered error Exit the program and restart the IBM PC AT compatible 0x02000005 Monitor has not been registered Reinstall MX Component Inform the telephone center of our company 6 ERROR CODES MELSOFT Error Definition Start the Monitoring Server 0x02000006 Monitoring Server Startup Error Exit the program and restart the IBM PC AT compatible x Monitoring Server is not started Reinstall MX Component Inform the telephone center of our company Try to retrieve the value again after waiting for a fixed Yet to retri Device Val amount of time et to retrieve Device Value error 0x02000010 Ore Exit the program and restart the IBM PC AT compatible Monitoring is not yet completed Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Command not Supported 0x03000001 Reinstall MX Component Command is not supported Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Memory Lock Error 0x03000002 Reinstall MX Component Failed while locking memory Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Error Securing Memory 0x03000003 n Reinstall MX Component
214. her than 0 is returned Refer to Chapter 6 ERROR CODES 1 The maximum number of write points that may be specified in ISize varSize is up to OX7FFFFFFF points 2 For iData IpsData or varData prepare a memory area having the number of points specified in ISize varSize If there is no memory area a critical phenomenon such as an application error may occur 3 When a double word device is specified data are written to the data area of the lower 1 word 2 bytes in WriteDeviceRandom2 and 0 s are written to the data area of the upper 1 word 2 bytes When writing data to a double word device use WriteDeviceRandom or SetDevice 4 FUNCTIONS MELSOFT 4 2 22 SetDevice2 Device data setting 1 Applicable ACT controls This function is available for all ACT controls but the ActSupoort and ActMLSupport controls 2 Feature Sets 2 byte data to one device point 3 Format Visual Basic VBA IRet object SetDevice2 szDevice iData Long IRet Returned value Output String szDevice Device name Input Integer iData Set data Input Visual C IRet object SetDevice2 szDevice sData Long IRet Returned value Output CString szDevice Device name Input Short sData Set data Input VBScript varRet object SetDevice2 varDevice varData VARIANT varRet Returned value LONG type Output VARIANT varDevice Device name character string type VARIANT varData Set data SHORT type Input Input 4 Explanation a
215. hone center of our company m Exit the program and restart the IBM PC AT compatible 0x10000014 Object Invalid error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x10000015 Request Cancel Failed error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x10000016 Failed in Reading Status error Reinstall MX Component Inform the telephone center of our company ox10000017 specified size number of devices is unauthorised Exit the program and restart the IBM PC AT compatible 0x10000018 There is no registered device Exit the program and restart the IBM PC AT compatible 0x10000019 Dataset Not Executed Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x1000001A Read Not Executed error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0 1000001 Incorrect Create Flag error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x1000001C Operation Over Access Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x1000001D Redundant Device error Reinstall MX Component Inform the telephone cen
216. in the target station side Q series compatible E71 or QE71 Set MNET 10 routing information in the Q series compatible E71 or QE71 parameter setting When making setting specify other than the automatic response system any of the IP address calculation system table conversion system and combined system as the MNET 10 routing system 2 As the I O address specify the value found by dividing the actual first number by 16 To next page 3 DETAILS OF THE ACT CONTROLS MELSOFT AE Property Default Value ee ActMultiDropChannelNumber Fixed to 0x00 0 Target station side Target station side Connected station ActNetworkNumber 0x00 Fixed to 0x00 module network module network side module network number number number 1 Board No of IBM PC AT compatible side MELSECNET H board PORT_1 PORT 1 to PORT 4 first to fourth boards 255 Target station side Target station side Connected station ActStationNumber OxFE Fixed to OxFF module station module station side module station number number number 1 ActThroughNetworkType Fixed to 0x01 Target station side Fixed to 0x00 Fixed to 0x00 Fixed to 0x00 module station number 1 Note the following for access to be made via the Ethernet module series compatible E71 QE71 Specify ActNetworkNumber and ActStationNumber using the values set in the target station side series compatible E71 QE71 Set MNET 10 routing information in the series compatib
217. ing if the connection system ActConnectWay is other than callback reception waiting 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 Lists of Properties Possessed by the ACT Controls This section lists the properties possessed by the ACT controls and their default values How to use the manual in Section 3 3 1 to Section 3 3 32 is provided below lt How to use the manual in Section 3 3 1 to Section 3 3 32 gt Configuration Sketch of system configuration 3 DETAILS OF THE ACT ZONTROLS 3 3 2 ActQJ71E71TCP ActMLQJ71E71TCP control ThE following table indicates the properties possessed by the ActQJ7 1E71TCP ActMLQJ71E71TCP control 200 tbei defaultualus 1 Configuration 2 Property patterns Connected Station CPU Relayed Station CPU Connected Q series Relayed Relayed Network QCPU y QCPU QCPU QnA ACPU station tible E71 module 2 1 compares Q mode cpu 1 Q mode A mode Relayed network IMELSECNET H Relayed TRelayed MELSECNET 0 Property patterns ation CPU IMELSECNET II modue Indicates the accessible ranges of the used Ethernet ae control and the patterns of the properties CC Link IBM PC AT compatible O Accessible Property pattern within circle Inaccessible 1 Including motion controller CPU Pr Patt eee Patterns Conn
218. ing on whether the connected station side MELSECNET 10 module is the control station or ordinary station When the connected station side MELSECNET 10 module is the control station Specify the actual station number of the target station side MELSECNET 10 module in ActStationNumber When the connected station side MELSECNET 10 module is the ordinary station Always set the target station side MELSECNET 10 module as the control station and specify Ox00 in ActStationNumber CPU type corresponding to target station 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 8 ActQCPUQ ActMLQCPUQ control The following table indicates the properties possessed by the ActQCPUQ ActMLQCPUQ control and their default values 1 Configuration 2 Property patterns Connected Station CPU Relayed Station CPU acpu Relayed Network acpu ana AcPu Connected Relayed n EXCPU station CPU module Q mode mode A mode CPU 1 cen of OG a Mesecne x x TOSE De Relayed network IBM PC AT compatible Relayed Relayed station CPU module Fe oe x zs x2 x2 x2 Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU 2 Use the QnA or ACPU side CC Link module whose ROM version is S or later 3 Property list Property Patte
219. ing type VARIANT IpvarData Acquired data LONG type Output Input 4 Explanation a The data of one point of device specified in szDevice varDevice is stored into IData IplData or IpvarData 5 Device specifying methods Specify the devices in the following methods When bit device is specified When word device is specified Example MO Example DO 2 Upper Bytes 2 Lower Bytes 2 Upper Bytes 2 Lower Bytes When double word device is specified When CN200 or later of FXCPU is specified Example K8MO Example CN200 When gateway device is specified Example When 8 bit devices E0000 E0001 of SHARP PLC have been assigned to EGO 2 Upper Bytes 2 Lower Bytes EGO E0001 E0000 1 Not used 0 is stored 2 Lower bits are stored in device number order 1 6 Returned value Normal termination 0 is returned Abnormal termination Any value other than 0 is returned Refer to Chapter 6 ERROR CODES 4 FUNCTIONS MELSOFT 4 2 9 ReadBuffer Buffer memory read 1 Applicable ACT controls The applicable ACT controls are indicated below ActQCPUQ ActMLQCPUQ ActMLQCPUA O ActMLQnACPU O ActACPU ActMLACPU O AcIQU71C24 ActMLQJ71C24 O ActAJ71QC24 ActMLAJ71QC24 O ActQCPUQUSB ActMLQCPUQUSB ActCCG4Q ActMLCCG4Q_ O ActCCG4QnA ActMLCCG4QnA O A ie o ActAJ71C24 ActMLAJ71C24 x ActLLT ActMLLLT Ox5 JActQJ7
220. inition E Exit the program and restart the IBM PC AT compatible Beginning Step Error 0x0180200E Pod NE Reinstall MX Component The beginning step specified is incorrect Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Parameter Type Error 0 0180200 A Reinstall MX Component The parameter type is incorrect Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible File Name Error 0x01802010 Reinstall MX Component The file name is incorrect Inform the telephone center of our company Status Error Exit the program and restart the IBM PC AT compatible 0x01802011 The status of Registration Cancellation Setting Reinstall MX Component is incorrect Inform the telephone center of our company m Exit the program and restart the IBM PC AT compatible 0x01802012 Detailed Condition Field Error Reinstall MX Component Inform the telephone center of our company m Exit the program and restart the IBM PC AT compatible 0x01802013 Step Condition Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x01802014 Bit Device Condition Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x01802015 Parameter Settings Error Reinstall MX Component Inform the telephone center of our co
221. into SHORT type INT type 2 byte ReadDeviceBlock SHORT type INT i data within user application type 4 4 FUNCTIONS MELSOFT b SHORT type INT type functions Reference sections Section 4 2 18 to Section 4 2 23 When reading writing a negative device value by using the SHORT type INT type function it is not required to convert the device value in advance When handling a double word device or like use any of the LONG type functions indicated in a Target functions ReadDeviceBlock2 WriteDeviceBlock2 ReadDeviceRandom2 WriteDeviceRandom2 SetDevice2 GetDevice2 lt Example gt When using ReadDeviceBlock2 to read device data of negative value 1 OxFFFF Stored as SHORT type INT DO 1 OxFFFF type 4 byte data within user application DO data is read using 8 ReadDeviceBlock2 pal 4 FUNCTIONS MELSOFT 4 2 Details of the Functions Dispatch Interface This section explains the details of the functions The details of the functions in this section assume that the dispatch interface is used For the custom interface refer to Section 4 3 Details of the Functions Custom Interface 4 2 1 Open Communication line opening 1 Applicable ACT controls This function is available for all ACT controls but the ActSupoort and ActMLSupport controls 2 Fea
222. is during RUN Exit the program and restart the IBM PC AT compatible 0x0180201E ROM drive Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible While Tracing error 0x0180201F Reinstall MX Component Invalid operation was carried out during trace Inform the telephone center of our company Check the value of the first number specified in the First number error method 0x01802020 The first I O number specified the method is Using the GPP function check the PLC CPU parameters an unauthorised value I O assignment Exit the program and restart the IBM PC AT compatible First address error Check the value of the buffer address specified in the 0x01802021 The buffer address specified in the method is an method unauthorised value Exit the program and restart the IBM PC AT compatible m Exit the program and restart the IBM PC AT compatible 0x01802022 Pattern Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x01802023 SFC Block No Error Reinstall MX Component Inform the telephone center of our company m Exit the program and restart the IBM PC AT compatible 0x01802024 SFC Step No Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x01802025 No Error Rei
223. is too long Reinstall MX Component Inform the telephone center of our company Check the filename File d t exist Check if the file exists or not ile does not exist error 0x03010006 TAO ME Exit the program and restart the IBM PC AT compatible The specified file does not exist Reinstall MX Component Inform the telephone center of our company 13 6 6 ERROR CODES MELSOFT Error Definition File Structure Error Exit the program and restart the IBM PC AT compatible 0x03010007 The data structure in the specified file is Reinstall MX Component incorrect Inform the telephone center of our company Check the filename 0x03010008 File already exists error Exit the program and restart the IBM PC AT compatible The specified file already exists Reinstall MX Component Inform the telephone center of our company Check the filename File does not exist error Exit the program and restart the IBM PC AT compatible The specified file does not exist Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible File Deletion Error 0 0301000 det Reinstall MX Component The specified file could not be deleted Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Multiple Open Error 0x0301000B EH Reinstall MX Component The specified project has been opened twice Inform the telephone cen
224. ith telephone numbers specified by MX Component The PC that has issued the callback request will not be callbacked 8 Callback reception waiting It is possible to connect the callback target PC to the line during callback request number fixation number specification by setting the PC to Callback reception waiting APP APP 2 APP 2 APPENDICES Appendix 2 Programming Example for Checking the Word Device Status MELSOFT This section explains the programming example for EntryDeviceStatus to check word devices for negative values 1 When using Microsoft Visual Basic The following programming example checks DO for 10 D1 for 0 and D2 for 10 using Visual Basic Dim szDevice As String Checked device list Dim IInputData 2 As Long Set value Dim IEntryData 2 As Long Value set to argument of EntryDeviceStatus Dim IReturnCode 2 As Long Returned value to EntryDeviceStatus Dim ICount As Long Loop counter Sets DO D1 and D2 to the checked device list szDevice DO vbLf D1 vbLf D2 Sets the checked device value 10 for DO IInputData 0 10 Sets the checked device value 0 for D1 IInputData 1 0 Sets the checked device value 10 for D2 IInputData 2 10 If the set value is negative stores O s into the upper 2 bytes for conversion into the value to be set to EntryDeviceStatus Loops through the number of device points For ICount 0 To 2 If
225. ity Make Ethernet board and protocol settings on the control panel of the OS Exit the program and restart the IBM PC AT compatible Review the IP address and port number values of the properties Review the port number value on the communication settings utility Review the system e g PLC CPU module setting and cable status Exit the program and restart the IBM PC AT compatible Check for an application which uses the COM port Exit the program and restart the IBM PC AT compatible Check for an application which uses the COM port Make COM port setting on the control panel of the OS Exit the program and restart the IBM PC AT compatible Check for an application which uses the COM port Make COM port setting on the control panel of the OS Exit the program and restart the IBM PC AT compatible Check for an application which uses the COM port Make COM port setting on the control panel of the OS Exit the program and restart the IBM PC AT compatible 6 ERROR CODES MELSOFT Error Definition Review the time out value of the property Review the time out value on the communication settings Time out value setting error utility Setting of the COM port time out value failed Check for an application which uses the COM port COM port setting on the control panel of the OS Exit the program and restart the IBM PC AT compatible 0x0180800E Shared memory open error Check whether the GX Simulator has started Open proces
226. lNumber Fixed to 0x00 Fixed to 0x00 0x00 or 0x02 6 Fixed to 0x00 Connected station Connected station side Q series side Q series compatible E71 compatible E71 network number network number ActPassword Empty Password set to the Q series compatible E71 on the connected station side ActPortNumber 4 5001 IBM PC AT compatible side port number 1 ActSourceNetworkNumber 0 01 IBM PC AT compatible side network number MELSOFT Network number of Network number of ActNetworkNumber k 2 target station side target station side module module ActSourceStationNumber 5 IBM PC AT compatible side station number Connected station Connected station side Q series side Q series compatible E71 compatible E71 station number station number QCPU Q mode 0x00 MELSECNET H only other than QCPU Q mode 0x01 ActThroughNetworkType including MELSECNET 10 Note that the setting must be the same as set in the network parameter of the GPP function ActTimeOut Any value specified by user in ms units Target station side station side Fixed to 0x00 Fixed to 0x00 module station module station number number 2 For the property pattern of or specify the value set in the target station side parameter for ActNetworkNumber and ActStationNumber 3 Specify the same network number as the MELSECNET 10 network number set to the series compatible E71 in the Ethernet parameter setting of the target station side Q series c
227. le E71 or QE71 parameter setting When making setting specify other than the automatic response system any of the IP address calculation system table conversion system and combined system as the MNET 10 routing system 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 23 ActCCBD ActMLCCBD control The following table indicates the properties possessed by the ActCCBD ActMLCCBD control and their default values 1 When connected station CPU is QCPU Q mode a Configuration Connected station CPU Relayed module CC Link module Relayed network Relayed Relayed station CPU module IBM PC AT compatible b Property patterns Connected NOSE Gan Beats Station CPU Bd i elayed Station wn Boar QCPU elayed Networl acPu E Q mode mode A mode CPU 1 amp x x EE Erra o x tx x Computerin x x x x x O Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU c Property list Propert Default Val Property Patterns rope efault Value dol 1025 ActCpuType CPU_BOARD CPU type corresponding to target station Target station side Target station side For single CPU For single CPU Ox3FF fixed Ox3FF fixed 0 For multiple CPUs For multiple CPUs ActDestinationlONumber Fixed to 0x00 Connected CPU Ox3FF Connected CPU Ox3F
228. licking the LoggingStart button starts logging Clicking the LoggingStop button stops logging Note that the logging data on the screen are not cleared If an error occurs during execution the error message and error code appear in the message box If an error has occurred refer to 6 ERROR CODES and remove the error cause Precautions for use of the sample program a Before running this sample program make communication settings on the communication setting utility b When changing the input value click the button to stop logging once then change the input value and click the LoggingStart button to start logging c In this sample program devices DO to D4 are preset as the devices to be monitored and D10 to 17 as the devices to be logged Also monitoring is designed to occur at 1 second intervals d This sample program logs device values up to 100 times If the number of logging times exceeds 100 the oldest logging data is deleted and the newest logging data is registered Sample file By default the sample program is installed into the following folder C MELSEC Act Sample AccessVBA Sample Sample mdb Access file 5 SAMPLE PROGRAMS MELSOFT 4 Screen The sample program screen will be explained E sampe i 2015 Eile Edit View Insert Format Records Tools Window Help 28 5 amp 2 L amp Yn v A rx i amp m 0 Arial 9 B z ul amp
229. lt Returned value of COM Output LONG lOperation Remote RUN STOP PAUSE Input LONG klplRetCode Returned value of communication function Output 4 FUNCTIONS MELSOFT 4 3 15 EntryDeviceStatus Device status monitor registration hResult object EntryDeviceStatus szDeviceList ISize IMonitorCycle IplData plRetCode HRESULT hResult Returned value of COM Output BSTR szDeviceList Registered device name list Input LONG ISize Number of registered device points Input LONG IMonitorCycle Status monitor time interval Input LONG pIData Registered device value list Input LONG lplRetCode Returned value of communication function Output 4 3 16 FreeDeviceStatus Device status monitor deregistration hResult object FreeDeviceStatus IplRetCode HRESULT hResult Returned value of COM Output LONG klplRetCode Returned value of communication function Output 4 3 17 OnDeviceStatus Announces event hResult object OnDeviceStatus szDevice IReturnCode IplRetCode BSTR szDevice Name of device whose condition has held Input LONG IData Value of device whose condition has held Input LONG IReturnCode Returned value of condition check Input processing LONG klplRetCode Returned value of communication function Output 4 3 18 ReadDeviceBlock2 Device batch read hResult object ReadDeviceBlock2 szDevice ISize IplRetCode HRESULT hResult Returned value of COM Output BSTR szDevice Device name Input LO
230. mmunication settings utility ORO TS TOON Messages emp Check the PLC unit settings status of the cable etc Close and Open again Exit the program restart the IBM PC AT compatible PLC No error Check the station number set on the communication setup 0x01010010 Communication could not be made with the utility specified station number Check the station number set to ActStationNumber Check if the correct PLC type setting is done Mode Error Check the PLC Unit settings status of the cable etc 0x01010011 Exit the program and restart the IBM PC AT compatible Command not supported Reinstall MX Component Inform the telephone center of our company Check that the system configuration is not an unsupported Other data error configuration 0x01010013 Communication cannot be made for some Check that the CPU type setting is correct cause Exit the program and restart the IBM PC AT compatible Contact our telephone center Remote request error Cancel the remote operation being performed in the other 0x01010018 Remote operation is being performed in the path path 9 different from the communicating path Check that reset operation is not performed for the other Link error end of communication the control station master station Link communications could not be made or the station passed through by routing Check that the network parameter setting is correct Repair or exchange the special unit under consideration Exit the
231. mpany Error in specifying telephone exchange number d P M Check the telephone exchange number Method does not support the operations 0 01802016 Check if the method being executed is supported or not corresponding to the specified telephone p 9 P P Check the system configuration such as PLC unit etc exchange number Exit the program and restart the IBM PC AT compatible 0x01802017 Keyword Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x01802018 Read Write Flag Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x01802019 Refresh Method Error Reinstall MX Component Inform the telephone center of our company m Exit the program and restart the IBM PC AT compatible 0x0180201A Buffer Access Method Error Reinstall MX Component Inform the telephone center of our company m Exit the program and restart the IBM PC AT compatible 0x0180201B Start Mode Stop Mode Error Reinstall MX Component Inform the telephone center of our company Written clock data error 0x0180201C Clock data specified for write cannot be written Review the clock data to be written properly since that data is in error 6 4 6 4 6 ERROR CODES MELSOFT Online clock data write error Place the PLC CPU in the STOP status Clock data cannot be written since the PLC CPU
232. mpatible 0x04075101 Failed while converting the settings portion of Reinstall MX Component the device memory Inform the telephone center of our company PLC Data Conversion Error Exit the program and restart the IBM PC AT compatible 0x04075102 Failed while converting the data portion ofthe Reinstall MX Component device memory Inform the telephone center of our company Common Data Conversion Error Exit the program and restart the IBM PC AT compatible 0x04076001 Failed while converting the settings portion of Reinstall MX Component the device comments Inform the telephone center of our company Common Data Conversion Error Exit the program and restart the IBM PC AT compatible 0x04076002 Failed while converting the data portion of the Reinstall MX Component device comments Inform the telephone center of our company PLC Data Conversion Error Exit the program and restart the IBM PC AT compatible 0x04076101 Failed while converting the settings portion of Reinstall MX Component the device comments Inform the telephone center of our company 6 ERROR CODES MELSOFT Error Definition PLC Data Conversion Error Exit the program and restart the IBM PC AT compatible 0x04076102 Failed while converting the settings portion of Reinstall MX Component the device comments Inform the telephone center of our company Common Data Conversion Error Exit the program and restart the IBM PC AT compatible 0x04077001 F
233. n the exclusive control process while executing the Connect and Disconnect method While connecting to the telephone line error The telephone line is connected to some other application other than the one using MXComponent Telephone line not connected error Telephone line is not connected Connect was executed and the telephone line was connected but it got disconnected due to some reason Reexamine the data type specified for the VARIANT argument Check whether the array variable size is large enough Check whether the data type specified in the corresponding method has been set Specify the device status monitoring time between 1 and 3600 Execute the Connect method after executing the Disconnect method Rectify the Telephone number and try to Connect again In case if Connect Disconnect method is being executed for any other object execute the failed method Connect Disconnect again after the completion of the Connect Disconnect method of that object If the Connect Disconnect process is in progress only for the self object perform the following Exit the program Restart the IBM PC AT compatible Reinstall MX Component Try Connecting again after disconnecting the application that is using the telephone line When Connect method has failed Execute Connect again after executing Disconnect method When method other than Connect has failed Execute Disconnect method Execute Connect and co
234. ne center of our company m Exit the program and restart the IBM PC AT compatible 0x04074402 Error PLC Parameter Block No 1001 Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x04074403 Error in PLC Parameter Block No 1003 Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x04074404 Error PLC Parameter Block No 1008 Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x04074405 Error in PLC Parameter Block No 1100 Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x04074406 Error in PLC Parameter Block No 2001 Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x04074407 Error PLC Parameter Block No 3000 Reinstall MX Component Inform the telephone center of our company 6 ERROR CODES MELSOFT Error Definition Exit the program and restart the IBM PC AT compatible 0x04074408 Error PLC Parameter Block No 3002 Reinstall MX Component Inform the telephone center of our company m Exit the program and restart the IBM PC AT compatible 0x04074409 Error PLC Parameter Block No 3004 Reinstall MX Component Inform the telephone center of our company
235. nent Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x04074311 Error in Common Parameter Block No 5NM2 Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x04074312 Error in Common Parameter Block No Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x04074313 Error in Common Parameter Block No Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Error in Common Parameter Block No 0x04074314 i Reinstall MX Component Link parameter Capacity is not set Inform the telephone center of our company Exit the program and restart the compatible Error in Common Parameter Block No 0x04074315 A j Reinstall MX Component Calculation circuit check is not set Inform the telephone center of our company 6 ERROR CODES MELSOFT Error Definition Exit the program and restart the IBM PC AT compatible Error in Common Parameter Block No FF30 0x04074316 Reinstall MX Component Sampling Trace Data is not created Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Error in Common Parameter Block No FF31 0 04074317 Reinstall MX Component Status latch data is not created
236. nform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company 6 ERROR CODES MELSOFT Error Definition Other Errors Exit the program and restart the IBM PC AT compatible 0x0402000E Other errors generated during the conversion
237. ng b SampleControl asp data getting screen Used to get the input data of Sample asp store them into the global variables and check them for errors c SampleMon asp data display screen Displays data in accordance with the input data of Sample asp Displays a message if an error occurs Using method Store Sample asp SampleControl asp and SampleMon asp in the same folder on the WWW server Browse the URL of Sample asp on the Microsoft Internet Explorer and display the initial screen Entering MonitorTiming LogicalStationNumber DeviceName and DeviceSize on the initial screen and pressing the MonitorStart button start Open processing ReadDeviceBlock processing GetCpuType processing and Close processing The input data appear in MonitorTiming LogicalStationNumber DeviceName and DeviceSize on the data display screen Message displays error occurrence processing when an error occurs in the corresponding processing Return Code shows the result of the corresponding processing CpuType shows the type of the PLC CPU connected ReadData Hex displays the device data of the PLC CPU connected If an error has occurred refer to 6 ERROR CODES and remove the error cause The data display screen repeats updating at the intervals of MonitorTiming Pressing the button returns to the initial screen Precautions for use of the sample program Before running this sample program make communi
238. nication will cause a memory leak Therefore do not perform continuous operation 3 Precautions for use of Microsoft Windows Millennium Edition Operating System It is not recommended to use MX Component with the system restoring function made invalid by the operating system If the free space of the system drive becomes less than 200MB the system restoring function is made invalid by the operating system When using Windows Me reserve a 200MB or more free space for the system drive 4 About the resume and other functions of personal computer A communications error may occur if communications are made with the PLC CPU after setting the resume function suspend setting power saving function and or standby mode of the personal computer Therefore do not set the above functions when making communications with the PLC CPU Instructions for installation and uninstallation 1 About installation a When performing overwrite installation install the software in the folder where it had already been installed b If you install the MELSEC board driver or GX Developer into the personal computer where MX Component has already been installed communication using a specific path e g ASCII packet of the AJ71E71 may result receive device number or other error If any of these phenomena has occurred perform overwrite installation of MX Component again Precautions for performing installation and uninstallation on a dual
239. nication function Output 4 3 4 WriteDeviceBlock Device batch write hResult object WriteDeviceBlock szDevice ISize IplData IplRetCode HRESULT hResult Returned value of COM Output BSTR szDevice Device name Input LONG ISize Number of write points Input LONG kIplData Written device values Input LONG lplRetCode Returned value of communication Output function 4 FUNCTIONS 4 3 5 ReadDeviceRandom Device random read MELSOFT hResult object ReadDeviceBlock szDeviceList ISize lplRetCode HRESULT BSTR LONG LONG LONG 4 3 6 WriteDeviceRandom Device random write hResult szDeviceList ISize kIplData kIplRetCode Returned value of COM Output Device name Input Number of read points Input Read device values Output Returned value of communication function Output hResult object WriteDeviceRandom szDeviceList ISize kIplData HRESULT BSTR LONG LONG LONG hResult szDeviceList ISize kIplData kIplRetCode 4 3 7 SetDevice Device data setting lplRetCode Returned value of COM Output Device name Input Number of write points Input Written device values Input Returned value of communication function Output hResult object SetDevice szDevice IData lplRetCode HRESULT BSTR LONG LONG hResult szDevice IData kIplRetCode 4 3 8 GetDevice Device data acquisition Returned value of COM Output Device name Input Set data Input Returned value of comm
240. nnect to the telephone line After connecting execute the method that failed once again 6 ERROR CODES MELSOFT Error Definition No Telephone number error The telephone No is not set The telephone No or call back No is not set if 0xF 1000018 connection method is Automatic when specifying the call back No call back connection when specifying the number or call back Request when specifying the number In case of program settings type set the telephone No to the property ActDialNumber Set the telephone No to the properties ActDialNumber and ActCallbackNumber if the connection method is automatic when specifying the call back No call back connection when specifying the telephone No or call back request when specifying the number In case of utility settings type set the telephone No using the wizard Set the telephone No and call back No if the connection method is automatic when specifying the call back No call back connection when specifying the telephone No or call back request when specifying the number Not Closed error OxF1000019 E Try Disconnect again after executing Close Disconnect was executed while in Open state Target telephone line connection mismatch error Connect was tried for a different telephone number using the port which is already 0xF100001A connected to a telephone line When the method of connection is a callback reception i
241. normal Command Code Exit the program and restart the IBM PC AT compatible 0x04040006 There is abnormal command code in the CAD Reinstall MX Component data to be converted Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Device No Error 0 04040007 Reinstall MX Component The device number is out of range Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Step No Error 0 04040008 Reinstall MX Component The step number is out of range Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible The specified circuit size exceeded error 0x04040009 Reinstall MX Component 1 circuit block is too big Inform the telephone center of our company 6 ERROR CODES MELSOFT Error Definition S Exit the program and restart the IBM PC AT compatible Return Circuit Error 0 0404000 te Reinstall MX Component The return circuit is incorrect Inform the telephone center of our company mm Exit the program and restart the IBM PC AT compatible Bad Circuit Creation error 0x0404000B MA Reinstall MX Component The circuit data is incorrect Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible SFC Data Error 0x0404000C he Reinstall MX Component The SFC data to be converted is incorrect
242. nstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x01802026 Data Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x01802027 System Data Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x01802028 Error in number of TC settings Value Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x01802029 Clear Mode Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x0180202A Signal Flow Error Reinstall MX Component Inform the telephone center of our company 6 ERROR CODES MELSOFT Error Definition Exit the program and restart the IBM PC AT compatible 0x0180202B Version Control Error Reinstall MX Component Inform the telephone center of our company oven Exit the program and restart the IBM PC AT compatible 0x0180202C Monitor Not Registered error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x0180202D PI Type Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x0180202E PI No Error Reins
243. nt Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x0407441A Error in PLC Parameter Block No Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x0407441B Error in PLC Parameter Block No Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x0407441C Error in PLC Parameter Block No Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x0407441D Error in PLC Parameter Block No FF70 Reinstall MX Component Inform the telephone center of our company Common Data Conversion Error Exit the program and restart the IBM PC AT compatible 0x04075001 Failed while converting the device memory Reinstall MX Component settings portion Inform the telephone center of our company Common Data Conversion Error Exit the program and restart the IBM PC AT compatible 0x04075002 Failed while converting the device memory data Reinstall MX Component portion Inform the telephone center of our company 2 Exit the program and restart the IBM PC AT compatible Common Data Conversion Error 0 04075003 Reinstall MX Component Device memory data portion did not exist Inform the telephone center of our company PLC Data Conversion Error Exit the program and restart the IBM PC AT co
244. nt The specified network type is not supported Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x04074412 Error in PLC Parameter Block No 5NM3 Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x04074413 Error PLC Parameter Block No Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x04074414 Error PLC Parameter Block No Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x04074415 Error in PLC Parameter Block No Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x04074416 Error PLC Parameter Block No Reinstall MX Component Inform the telephone center of our company 6 ERROR CODES MELSOFT Error Definition Exit the program and restart the IBM PC AT compatible 0x04074417 Error in PLC Parameter Block No Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x04074418 Error PLC Parameter Block No Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x04074419 Error in PLC Parameter Block No FF43 Reinstall MX Compone
245. ntation Error Exit the program and restart the IBM PC AT compatible 0x04053003 The rectification part specified for the device is Reinstall MX Component incorrect Inform the telephone center of our company Device Representation Error Exit the program and restart the IBM PC AT compatible 0x04053004 The rectification part specified for the extended Reinstall MX Component device is incorrect Inform the telephone center of our company Other Errors Exit the program and restart the IBM PC AT compatible The errors generated during the conversion of 0x04053005 Reinstall MX Component the Device Representation Code to Device Inform the telephone center of our company Character String Abnormal Device Intermediate Code error Exit the program and restart the IBM PC AT compatible 0x04064001 The intermediate code for the device is Reinstall MX Component incorrect Inform the telephone center of our company Other Errors Exit the program and restart the IBM PC AT compatible Other errors generated during the conversion of 0x04064002 Reinstall MX Component the Intermediate code for the Device to Device Inform the telephone center of our company Name Abnormal Device Name error Exit the program and restart the IBM PC AT compatible 0x04065001 The classification specified for the intermediate Reinstall MX Component code of the device is incorrect Inform the telephone center of our compan
246. o 2 Inform the telephone center of our company Clock data read write error The clock data read write method was executed 0x01802038 Do not execute clock data read write for the PLC CPU which does not have the clock devices Exit the program and restart the IBM PC AT compatible 0x01802039 Trace not completed error Reinstall MX Component Inform the telephone center of our company 6 6 6 ERROR CODES MELSOFT Error Definition Exit the program and restart the IBM PC AT compatible 0x0180203A Registration Clear Flag Error Reinstall MX Component Inform the telephone center of our company m Exit the program and restart the IBM PC AT compatible 0x0180203B Operation error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x0180203C Error in the number of exchanges Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x0180203D Error in number of loops specified Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x0180203E Retrieve data selection Reinstall MX Component Inform the telephone center of our company m Exit the program and restart the IBM PC AT compatible 0x0180203F Error in number of SFC cycles Reinstall MX Component Inform the telephone center of our company Exit the prog
247. o 0x01 Fixed to 0x00 Fixed to 0x00 ActDsidPropertyBit os Fixed to 0x00 Fixed to 0x01 Fixed to 0x00 Fixed to 0x00 To next page 3 DETAILS OF THE ACT CONTROLS MELSOFT Property Patterns POR iain For single CPU 0x3FF fixed For multiple CPUs C ied PULSER Connected station Connected station ActlONumber 1 Sy Fixed to 0x00 on side relayed module side relayed module No 1 0x3E0 address address No 2 OX3E1 ActMultiDropChannelNumber Fixed to 0x00 Fixed to 0x00 0300 or 0x02 or 0x02 Fixed to 0x00 to 0x00 Target station side Connected station Connected station ActNetworkNumber m Fixed to 0x00 module network side module network side module network number number number Board No of IBM PC AT compatible side MELSECNET H board ActPonnumber gg 1 PORT 1 to PORT 4 first to fourth boards Target station side Connected station Connected station ActStationNumber Fixed to OXFF module station side module station side module station number number number ActThroughNetworkType Fixed to 0x01 0 Target station side Target station side ActUnitNumber 0x00 Fixed to 0x00 Fixed to 0x00 module station module station number number 1 As the I O address specify the value found by dividing the actual first number by 16 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 When access is made via MELSECNET 10 mode using QCPU A mode or ACPU as connected station CPU Operates when the MELSECNET H boar
248. object ReadBuffer IStartlO IReadSize lpsData Long IRet Returned value Output Long IStartlO First number of module from Input where values will be read Long Address Buffer memory address Input Long IReadSize Read size Input Short kIpsData Values read from buffer memory Output 4 18 4 18 4 FUNCTIONS MELSOFT VBScript varRet object ReadBuffer varStartIO varAddress varReadSize IpvarData VARIANT varRet Returned value LONG type Output VARIANT varStartlO First number of module from Input where values will be read LONG type VARIANT varAddress Buffer memory address LONG type Input VARIANT varReadSize Read size LONG type Input Values read from buffer memory VARIANT _ lpvarData Output P SHORT array type P 4 Explanation a As the module I O number specified in IStartlO varStartlO specify a value found by dividing the actual I O number by 16 b The buffer values for IReadSize varReadSize at the buffer memory address specified in IAddress varAddress in the special function module located at the first O number specified in IStartlO varStartlO are read c When using the Act ML FXCPU control or Act ML LLT control specify the block number 0 to 7 of the special expansion equipment as the module s first number and any of 0 to 32767 as the buffer memory address d Reserve an array of IReadSize varReadSize or more for iData IplData or lpvarData 5 Returned value
249. ode 0x010A4030 0x010A4042 etc c Though a PLC CPU error parameter error SP UNIT LAY ERR etc does not occur in the multiple PLC system execution of the function results in an error in the user application 4 FUNCTIONS MELSOFT 1 An error is returned if access to the motion controller CPU is made 2 For iData IpsData varData prepare a memory area having the number of points specified in IWriteSize varWriteSize If there is no memory area a critical phenomenon such as an application error may occur 3 When buffer memory write WriteBuffer is performed for the QCPU Q mode write operation may be performed for only the Q series dedicated module Write to the shared memory of the QCPU Q mode cannot be performed either 4 FUNCTIONS MELSOFT 4 2 11 GetClockData Clock data read 1 Applicable ACT controls The applicable ACT controls are indicated below AciQCPUQ ActMLQCPUQ f aeacPUQUsB AgMLOCPUGUSBB AcIQCPUA ActMLQCPUA O O AcIQnACPU ActMLQnACPU aecce4QmA ActMLCCG4QnA O AcACPU AcIMLACPU JActCCG4A ActMLCCG4A O O AcIQU71C24 ActMLQJ71C24 O ActAJ71UC24 AcIMLAJ71UC24 ActAnUBD ActMLAnUBD ActA71C24 ActMLAJ71C24 1 ActQU71E71TCP ActMLQU71E71TCP_ JActQCPUQBus ActMLQCPUQBus lActAJ7
250. odem communication control b For the ActQJ71C24TEL control the telephone line is connected in the connection system that has been set in the ActConnectWay property When Auto line connect callback number specification callback connect number specification or callback request number specification has been set in the ActConnectWay property an error will occur if a number is not set in the ActCallbackNumber property Returned value Normal termination 0 is returned Abnormal termination Any value other than 0 is returned Refer to Chapter 6 ERROR CODES Instructions for execution of Connect a Always connect the telephone line before execution of Open b When disconnecting the telephone line execute Disconnect During Connect the telephone line remains connected if Open and Close are repeated many times c If the telephone line is disconnected in the Open status for some reason always execute Close before reconnecting the telephone line Instructions for use of multiple telephone line connection objects a When the control types port numbers and telephone numbers of the controls are different When the control types port numbers and telephone numbers set to multiple controls differ from each other an error error code OxF1000016 will occur if Connect is executed by the control with port number and telephone number different from those of the control that executed Connect first 4 FUNCTIONS MELSOFT 6
251. of Reinstall MX Component list to Intermediate code Inform the telephone center of our company Intermediate Code Not Converted error Exit the program and restart the IBM PC AT compatible 0x04021001 The converted list code for one command has Reinstall MX Component exceeded 256 bytes Inform the telephone center of our company Exit the program and restart the compatible Intermediate Code Area Full error 0x04021002 Reinstall MX Component Intermediate code area to be converted is full Inform the telephone center of our company Command Error Exit the program and restart the IBM PC AT compatible 0x04021003 The command specified by the intermediate Reinstall MX Component code to be converted is incorrect Inform the telephone center of our company Device Error Exit the program and restart the IBM PC AT compatible 0x04021004 The device specified in the intermediate code to Reinstall MX Component be converted is incorrect Inform the telephone center of our company Intermediate Code Error Exit the program and restart the IBM PC AT compatible 0x04021005 The structure of intermediate code to be Reinstall MX Component converted is incorrect Inform the telephone center of our company Insufficient List Storage Space error Exit the program and restart the IBM PC AT compatible 0x04021006 The space for storing the converted list code 1 Reinstall MX Component insufficient Inform the telephone
252. ol on the custom interface 1 Using method The using method is the same as that of the sample program for dispatch interface Refer to Section 5 2 1 Dispatch interface 1 Using method 2 Precautions for use of the sample program The precautions are the same as those of the sample program for dispatch interface Refer to Section 5 2 1 Dispatch interface 2 Precautions for use of the sample program 3 Sample file list The sample files are installed into the following folders at default installation C AMELSEC Act Sample Vc CustomSampleEng CustomSampleEng rc Resource file C AMELSEC Act Sample Vc CustomSampleEng CustomSampleEng dsw Project work space C AMELSEC Act Sample Vc CustomSampleEng CustomSampleEng dsp Project file C AMELSEC Act Sample Vc CustomSampleEng CustomSampleDigEng cpp Dialog implementation source file C AMELSEC Act Sample Vc CustomSampleEng ActDefine h MX Component common header file C AMELSEC Act Sample Vc CustomSampleEng ActEther h Ethernet control header file for custom I F CAMELSEC Act Sample Vc CustomSampleEng ActEther_i c Class ID definition file for Ethernet control C AMELSEC Act Sample Vc CustomSampleEng ActMulti h ActEasylF control header file for custom I F CAMELSEC Act Sample Vc CustomSampleEng ActMulti_i c Class ID definition file for ActEasylF control 4 Screen The screen is the same as that of the the sample program for dispatch interface Refer to Section 5 2 1 Dispatch interface 4 Screen
253. ollowing methods Example 1 When devices are specified as follows 3 points When using Visual Basic VBA VBScript MO amp vbLf amp DO amp vbLf amp K8MO When using Visual C MO nDO nK8MO 2 Upper Bytes 2 Lower Bytes M16 to M31 2 MO to M15 2 Example 2 When devices including CN200 and later of FXCPU are specified points in all 3 When using Visual Basic VBA VBScript DO amp vbLf amp CN200 amp vbLf amp D1 When using Visual C DO NCN200 nD1 2 Upper Bytes 2 Lower Bytes x1 H of CN200 L of CN200 1 D1 Example 3 When devices including FD are specified 3 points in all When using Visual Basic VBA VBScript DO amp vbLf amp FDO amp vbLf amp D1 When using Visual C DO nFDO nD1 et on Example 4 When 8 bit devices including EG have been specified a total of 3 points The following example assumes that 8 bit devices E0000 E0001 of SHARP PLC have been assigned to EGO When using Visual Basic VBA VBScript DO amp vbLf amp EGO amp vbLf amp D1 When using Visual C DO nNEGO nD1 2 Upper Bytes 2 Lower Bytes x1 E0001 E0000 1 Not used 0 is stored x2 Lower bits are stored in device number order 3 For CN200 or later of FXCPU 2 words are written from 1 point by random read 6 Returned value Normal termination 0 is returned Abnormal termination Any value other than 0 is returned Refer to Chapter 6 ERR
254. ombined system as the MNET 10 routing system Any value specified by user unit s 3 DETAILS OF THE ACT CONTROLS MELSOFT 2 When connected station side Q series compatible C24 is used for multidrop link with relayed module a Configuration Connected Q series station CPU compatible C24 Modem Multidrop link Subscriber line Relayed Relayed Modem station CPU module IBM PC AT compatible b Property patterns Connected Station CPU Relayed Station CPU QCPU Q mode Relayed Network QCPU QCPU QnA ACPU FXCPU Q mode A mode CPU 1 dent ndependen Computer link m i mode 2 Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU 2 The independent mode indicates that the parameters have been set as indicated below CH1 side Operation setting for transmission setting independent 0 communication protocol setting 0 CH2 side Operation setting for transmission setting independent 0 c Property list Property Patterns Mund ESTNE ActATCommand Empty Any value specified by user ActATCommandPasswordCancelRetry M 3 Any value specified by user Times ActATCommandResponseWaitTime Any value specified by user unit s 19200 BAUDRATE_9600 BAUDRATE_19200 BAUDRATE_38400 ActBaudRate BAUDRATE BAUDRATE 57600 BAUDRATE 115200 Match to the
255. ompatible E71 4 Do not use 1 to 1024 of ActPortNumber 5 Specify the station number on the IBM PC AT compatible side to avoid setting the same station number as set to the series compatible E71 Target station side Target station side ActStationNumber 2 module station module station number number within the same Ethernet loop 6 If the following conditions are all satisfied change the ActMultiDropChannelNumber value to 0x00 A remote password has been set to the Q series compatible E71 connected The version of the Q series compatible E71 connected is J or earlier 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 4 ActAJ71QE71TCP ActMLAJ71QE71TCP control The following table indicates the properties possessed by the ActAJ71QE71TCP ActMLAJ71QE71TCP control and their default values 1 Configuration 2 Property patterns Connected Station CPU elayed Station Connected Relayed Relayed Network station eet QE71 module QnACPU QCPU QCPU QnA ACPU FXCPU mode A mode CPU 1 Relayed network MELSECNETH x x x x x MELSECNET 10 a fate x x Relayed Relayed station CPU module IBM PC AT compatible beer x o x X x Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU MELSECNET II 3 Property list Property Patterns Propert Default Value
256. ompatible E71 QE71 For ActNetworkNumber and ActStationNumber specify the value set in the parameter setting of the target station side Q series compatible E71 or QE71 Set the MNET 10 routing information in the parameter setting of the Q series compatible E71 or QE71 Also when making setting specify other than the automatic response system any of the IP address calculation system table conversion system and combined system as the MNET 10 routing system 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 9 AcCtQCPUA ActMLQCPUA control The following table indicates the properties possessed by the ActQCPUA ActMLQCPUA control and their default values 1 Configuration 2 Property patterns Connected Station CPU elayed Station Relayed Network QCPU QCPU QCPU Por station CPU module A mode Q mode A mode CPU 1 E x Relayed Relayed ion CPU dul station CPU module cne x x x X Ex pem cr i Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU 3 Property list Property Patterns HE me 3p 9 3 9600 BAUDRATE 9600 8 ActControl TCR DTR OR Depending on used cable _RTS 321 BAUDRATE_9600 BAUDRATE_19200 BAUDRATE_38400 BAUDRATE_57600 BAUDRATE_115200 A
257. on Setting For VB VC VBA For VBScript Type Used for CC Link G4 communication where the connected module is the A 4 ActMLCCGA incide een 65 4 53 Q mode EX AciMnetOBD AciMLMnettOBD UsedforMELSECNET tOcommunicaton PP ActMnetHBD _ ActMLMnetHBD_ UsedforMELSECNET Hcommunicaton AcICCBD AdIMLCCBD Used for CC Link communication AcIAnUBD AcIMLAnUBD UsedforCPUboardcommuniation PP _ JAciMLLLt Used for GX Simulator communication TP AciQCPUQBus AcIMLQCPUQBus UsedforQseresbuscommunicaion TP AciGOT AdIMLGOT Used for gateway function communication ActSupport ActMLSuppot Used with the troubleshooting function U Utility setting type P Program setting type 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 2 Details of the Properties The following tables give the details of the properties which must be set to create a user application When entering a property value directly into the property window of Visual Basic or Visual C change a character string such as a hexadecimal number or CPU type into a decimal property value Property Name Type ActLogicalStationNumber LONG Logical station number set on the communication settings utility Setting range 0 to 1023 Specify the network number on the MELSECNET 10 H Specify 0x00 when specifyin
258. one center of our company baee Intermediate Code Completion Error Exit the program and restart the IBM PC AT compatible 0x04010002 Intermediate code area of the code to be Reinstall MX Component converted ended abruptly Inform the telephone center of our company Insufficient Intermediate Code error Exit the program and restart the IBM PC AT compatible 0x04010003 The intermediate code of the code to be Reinstall MX Component converted was insufficient Inform the telephone center of our company Intermediate Code Data Error Exit the program and restart the IBM PC AT compatible 0x04010004 The intermediate code to be converted is Reinstall MX Component incorrect Inform the telephone center of our company Intermediate Code Structure Error Exit the program and restart the IBM PC AT compatible 0x04010005 The number of steps in the intermediate code is Reinstall MX Component incorrect Inform the telephone center of our company Error in Number of Steps Exit the program and restart the IBM PC AT compatible 0x04010006 The number of steps in comment intermediate Reinstall MX Component code is incorrect Inform the telephone center of our company Insufficient Storage Space for Machine Code dep Exit the program and restart the IBM PC AT compatible error 0x04010007 Reinstall MX Component The storage space for machine code is Inform the telephone center of our company insufficient Other Errors Exit the program and r
259. ontroller CPU ActCCG4A ActMLCCG4A Ethernet 000 cou x x x j x J x jJ x 5 Modem communication a When A6TEL is used 1 Configuration 1 Connected Relayed station CPU module Modem Relayed network 2 Subscriber lin 3 I Relayed Relayed Modem station CPU module IBM PC AT compatible 2 Target non target communication path The following table indicates the communication paths to be retried at a time out error occurrence All the connected station CPUs can be the targets Target non target relayed CPUs are indicated by target or x non target Connected station 3 Relayed station CPU Connected Motion ieP moduledUsable Se Deo OGPU AGPU EXCRU Controller Q mode A mode control name CPU MESENETH x ox x x x x ACPU MESENEDO x O x O x O Motion AGBTEL MMELSECNET II Q6TEL A mode Eth controller ActAGTEL thernet CPU Computer link x CC Link APP 12 APP 12 APPENDICES MELSOFT 6 When Q6TEL is used 1 Configuration 1 Connected Relayed station CPU module Modem Relayed network 2 Subscriber line 3 I Relayed Relayed Modem station CPU module IBM PC AT compatible 2 Target
260. operty patterns Connected Station CPU Relayed Station CPU pei E71 Relayed anA ACPU Relayed Network QCPU QCPU QnA ACPU Station SRY module A mode cpu 1 Q mode A mode CPU 1 Relayed Relayed IMELSECNET 2 x station CPU module Ethernet er s SEE e x x x x Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU 2 Operates as the one equivalent to AnACPU IBM PC AT compatible Relayed um IMELSECNETH x x x x x p MELSECNET 0 2 x 2 3 Property list Property Patterns ActCpuTimeOut Any value specified by user in 250ms units ActCpuT 262 sir ae CPU_A1NCPU 1280 ActDestinationPortNumber 0x500 Port number of connected station side module ActHostAddress 1 1 1 1 Host name or IP address of connected station side module 3 ActPacketType PACKET_ PACKET_BINARY or PACKET_ASCII BINARY ActPortNumber 1 IBM PC AT compatible side port number 255 ActStationNumber 2 OxFF Fixed to OxFF Target station side module station number 10000 Any value specified by user in ms units The free port number of the compatible is assigned automatically Other than 0 The specified port number is used to generate the UDP socket Do not use 1 to 1024 of ActPortNumber 2 Note the following points depend
261. orMessage IpszErrorMessage or lpvarErrorMessage Returned value Normal termination 0 is returned Abnormal termination Any value other than 0 is returned Refer to Chapter 6 ERROR CODES 4 FUNCTIONS MELSOFT 4 3 Details of the Functions Custom Interface This section explains the details of the functions The details of the functions in this section assume that the custom interface is used The custom interface may be used on only Visual C For the dispatch interface refer to Section 4 2 Details of the Functions Dispatch Interface This section describes only the formats of the functions For details of other than the formats refer to Section 4 2 Details of the Functions Dispatch Interface 4 3 1 Open Communication line opening hResult 1 HRESULT hResult Returned value of COM Output LONG lplRetCode Returned value of communication function Output 4 3 2 Close Communication line closing hResult object Close IplRetCode HRESULT hResult Returned value of COM Output LONG klplRetCode Returned value of communication function Output 4 3 3 ReadDeviceBlock Device batch read hResult object ReadDeviceBlock szDevice ISize IplData IplRetCode HRESULT hResult Returned value of COM Output BSTR szDevice Device name Input LONG ISize Number of read points Input LONG kIplData Read device values Output LONG klplRetCode Returned value of commu
262. orStop Monitornterval s 1 RetumValue GetErrorMessage MonitorInterval DeviceName Enter the device name to be monitored Size ReturnValue Used to open the communication line and start monitoring after connection of the telephone MonitorStart line MonitorStop ri to disconnect the telephone line and stop monitoring after closing of the communication Used to get and display the error definition and corrective action for the error code in ReturnValue 5 SAMPLE PROGRAMS MELSOFT 5 2 Visual C Sample Programs This section explains the sample programs for Visual C which were created using the dispatch interface and custom interface These sample programs were created on Visual C 6 0 5 2 1 Dispatch interface This sample program is designed to read the type of the connection destination CPU and read write device values using the ActAJ71QE71UDP control or ActEasylF control on the dispatch interface 1 Using method Load the form and choose the control to be used Clicking the button opens the communication line through Ethernet communication By clicking the button the type code of the PLC CPU which is currently connecting the line appears in the Output Data text box top and the CPU type in the Output Data text box bottom Entering the device from where you want to read a value into the Device Name text box and clicking the button shows the device data in the
263. ord device is specified Example MO Example DO 1 je eG lt When double word device is specified gt lt When CN200 or later of FXCPU is specified gt Example K8MO Example CN200 2 Upper Bytes 2 Lower Bytes 2 Upper Bytes 2 Lower Bytes M16 to M31 2 MO to 15 2 H of CN200 L of CN200 When gateway device is specified Example When 8 bit devices E0000 E0001 of SHARP PLC have been assigned to EGO 2 Upper Bytes 2 Lower Bytes INNEN 0001 0000 1 Not used 0 is stored x2 Lower bits are stored in device number order 6 Returned value Normal termination 0 is returned Abnormal termination Any value other than 0 is returned Refer to Chapter 6 ERROR CODES 4 FUNCTIONS MELSOFT 4 2 8 GetDevice Device data acquisition 1 Applicable ACT controls This function is available for all ACT controls but the ActSupoort and ActMLSupport controls 2 Feature Acquires data from one point of device 3 Format Visual Basic VBA IRet object GetDevice szDevice IData Long IRet Returned value Output String szDevice Device name Input Long IData Acquired data Output Visual IRet object GetDevice szDevice IplData Long IRet Returned value Output CString szDevice Device name Input Long kIplData Acquired data Output VBScript varRet object GetDevice varDevice IpvarData VARIANT varRet Returned value LONG type Output VARIANT varDevice Device name character str
264. ort controls Feature Batch reads 2 byte data from devices Format Visual Basic VBA object ReadDeviceBlock2 szDevice ISize iData 0 Long IRet Returned value Output String szDevice Device name Input Long ISize Number of read points Input Integer iData n Read device values Output Visual C IRet object ReadDeviceBlock2 szDevice ISize Long IRet Returned value Output CString szDevice Device name Input Long ISize Number of read points Input Short kIpsData Read device values Output VBScript varRet object ReadDeviceBlock2 varDevice varSize IpvarData VARIANT varRet Returned value LONG type Output VARIANT varDevice Device name character string type Input VARIANT varSize Number of read points LONG type Input VARIANT lpvarData Read device values SHORT type Output Explanation a Batch reads ISize varSize of device values as SHORT type data from the devices starting from the one specified in szDevice varDevice b The read device values are stored in iData IpsData or IpvarData c Reserve an array of ISize varSize or more for iData lpsData or IpvarData 4 FUNCTIONS MELSOFT 5 Device specifying methods Specify the devices in the following methods lt When bit device is specified gt lt When word device is specified gt Example Data are read from 3 points Example 3 points from DO 3 words on a 16 point basis starting from 2 Bytes to
265. phone center of our company PLC Data Conversion Error Exit the program and restart the IBM PC AT compatible 0x04078102 Failed in the conversion of the status latch data Reinstall MX Component portion Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x04079101 Failure history PLC Data Conversion error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x0407A101 File List PLC Data Conversion Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x0407B101 Error Information PLC Data Conversion Error Reinstall MX Component Inform the telephone center of our company Error in Conversion of Indirect Address to Exit the program and restart the IBM PC AT compatible 0x0407C001 Device Name Reinstall MX Component The device name storage area is not secured Inform the telephone center of our company Error in Conversion of Device Name to Indirect Exit the program and restart the IBM PC AT compatible 0x0407C002 Address Reinstall MX Component Indirect Address storage area is not secured Inform the telephone center of our company Error in Conversion of Indirect Address to Exit the program and restart the IBM PC AT compatible Device Representation p 0x0407C003 Reinstall MX Component The device representation storage a
266. ponent Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component specified is insufficient Inform the telephone center of our company 6 ERROR CODES MELSOFT Error Definition Insufficient Storage Space for Converted Data Bo oe Exit the program and restart the IBM PC AT compatible error 0x040901 11 Reinstall MX Component The storage space for converted data is n Inform the telephone center of our company insufficient Exit the program and restart the IBM PC AT compatible Error in data to be converted 0x040901 12 at Reinstall MX Component The data to be converted is incorrect Inform the telephone cen
267. pport supported Check the character string specified in the method The ASCII character string acquired from the PLC CPU is Character code conversion error abnormal OxF1000001 Character code conversion UNICODE ASCII Review the system e g PLC CPU module setting and code or ASCII code UNICODE failed cable status Exit the program and restart the IBM PC AT compatible Retry the GetCpuType method First number error Check the value of the first number specified in the The first number specified is an method OxF 1000002 unauthorised value Using the GPP function check the PLC CPU parameters A matching first number does not exist VO assignment pe Buffer address error The buffer address specified is an unauthorised Check the value of the buffer address specified in the OxF 1000003 value method The buffer address is outside the range Perform reopen processing Buffer read size error Review the system e g PLC CPU module setting and OxF 1000004 As a result of buffer read the specified size cable status could not be acquired Retry Exit the program Size error The size specified in the read write method is 0xF 1000005 abnormal Check the size specified in the method The read write first number plus size exceeds the device or buffer area Operation error a RM BE Check the operation specifying value specified in the 0xF 1000006 The operation specified for remote operation is
268. program and restart the IBM PC AT compatible 0x1000000A Incorrect File Name error Reinstall MX Component Inform the telephone center of our company Execute again after some time Execution failed since another application or Perform programming according to the multithread rules of thread is making a request COM and ActiveX Exit the program and restart the IBM PC AT compatible 0x1000000C Exit the program and restart the IBM PC AT compatible 0x1000000D Folder Creation Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x1000000E Folder File Type Error Reinstall MX Component Inform the telephone center of our company 6 ERROR CODES MELSOFT Error Definition Exit the program and restart the IBM PC AT compatible 0x1000000F Offset Address Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Request Cancel 0x10000010 Reinstall MX Component Inform the telephone center of our company Cancel Process has occurred Exit the program and restart the IBM PC AT compatible 0x10000011 Memory securing error Reinstall MX Component 0x10000012 not yet executed Exit the program and restart the IBM PC AT compatible m Exit the program and restart the IBM PC AT compatible 0x10000013 Attach Not Executed error Reinstall MX Component Inform the telep
269. program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company No command error 0 01800001 The method does not support The corresponding method does not support xit other programs and secure iesi memory area Exit the program and restart the IBM PC AT compatible 0x01800004 DLL load error Exit other programs and secure free memory area Reinstall MX Component 0x01010020 Special Unit Bus Error 0x01010021 There is no response from the special unit under consideration 6 ERROR CODES MELSOFT Error Definition Exit the program and restart the IBM PC AT compatible 0x01800005 Resource securing error Exit other programs and secure free memory area Execute again after the other object completes the Resource Timeout Error communication 0x01801001 The resource could not be retrieved within the Execute again after increasing the timeout value specified time Exit the program and restart the IBM PC AT compatible Reinstall MX Component 0x01801002 Multi line open error Exit the program and restart the IBM PC AT compatible 0x01801003 Open not yet executed Exit the program and restart the IBM PC AT compatible Exit the program and restart the IBM PC AT compatible 0x01801004 Open Type error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x01801005 Specified port error
270. r Definition Exit the program and restart the IBM PC AT compatible 0x10000045 Server Type Error Reinstall MX Component Inform the telephone center of our company m Exit the program and restart the IBM PC AT compatible 0x10000046 Failed to Access Server error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x10000047 Server Already Accessed error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x10000048 Failed in Simulator Startup Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x10000049 Failed in exiting Simulator Reinstall MX Component Inform the telephone center of our company m Exit the program and restart the IBM PC AT compatible 0x1000004A Simulator Not Started error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x1000004B Simulator Type Error Reinstall MX Component Inform the telephone center of our company m Exit the program and restart the IBM PC AT compatible 0x1000004C Simulator Not Supported error Reinstall MX Component Inform the telephone center of our company sca Exit the program and restart the IBM PC AT compatible 0x1000004D Simulator Started Twice error Reinstall MX Component Inform the telephone center o
271. r MELSOFT products Instructions for use of Ethernet modules Instructions for use of CC Link modules Instructions for use of MELSECNET II MELSECNET 10 MELSECNET H Instructions for use of computer link and serial communication modules Instructions for modem communication 0 Instructions for programming 1 Instructions for use of Microsoft Excel 2 Instructions for use of Microsoft Access 3 3 4 5 6 7 8 9 1 1 1 13 Instructions for use of VBScript and ASP function Instructions for used OS and personal computer 1 When using Microsoft Windows NT Workstation Operating System Version 4 0 Microsoft Windows 2000 Professional Operating System Microsoft Windows XP Professional and Microsoft Windows XP Home Edition When using Windows NT Workstation 4 0 Microsoft Windows 2000 Professional Microsoft Windows XP Professional and Microsoft Windows XP Home Edition MX Component may be installed and used only on the administrator s authority 2 About Ethernet communication computer link communication and CPU COM communication on Microsoft Windows 95 Operating System a Making Ethernet communication using TCP IP and UDP IP on Windows 95 of the version older than OSR2 will cause a memory leak When performing continuous operation on Windows 95 use Window 95 OSR2 or later b On Windows 95 communication using the COM port e g computer link communication or CPU COM commu
272. r company 6 ERROR CODES MELSOFT Error Definition un Exit the program and restart the IBM PC AT compatible Transfer mode specification error at the booting 0x01802049 Reinstall MX Component ue Inform the telephone center of our company mm Exit the program and restart the IBM PC AT compatible 0 0180204 Insufficient memory error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x0180204B Back up drive ROM error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x0180204C Block size error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x0180204D Detached during RUN state error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x0180204E Unit Already Registered error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x0180204F Password Registration Data Full error Reinstall MX Component Inform the telephone center of our company m Exit the program and restart the IBM PC AT compatible 0x01802050 Password Not Registered error Reinstall MX Component Inform the telephone center of our company m Exit the program and restart the IBM PC A
273. r random operation only the first one word is read 2 For the QCPU A mode and ACPU the L and S devices have the same regions independently of the device setting in the parameters 2 14 2 14 2 ABOUT THE ACT CONTROLS MELSOFT Device No Type Contact 55 Decimal ForACPU use timer to specify Retentivetimer Col_ sc Bt Decimal ForACPU use timer to specify SN Decimal _ For ACPU use timer to specify E ee e woa L O _ _ Decimal gt o 5 O Index register v Decimal 5 mw R Decimal 3 O File register ZzR woa Extended file register Decimal A BL Hess Link output JW Hexadecimal Direct PT MANC NUN Pe lt a 1 6 Link special relay JsSB Hexadecima A Linkregster Hexadecimal A Link special register_ Jx sw Word Hexadecimal 4 O Special direct buffer Bit Bit device Word Word device 2 For the QCPU A mode and ACPU the L and S devices have the same regions independently of the device setting in the parameters 3 To specify the extended file register describe between the block number part and file register part Specifying specifies R of block No 0 Specifying ERO R return
274. r to the FX2 FX2C or FX2NC when it is fitted with the RTC cassette An error is returned if the FXCPU is other than the FX1N FX1NC FX1S 2 FX2c FX2N and FX2NC b Note that an error of transfer time is produced in clock setting 4 FUNCTIONS MELSOFT 4 2 13 GetCpuType PLC CPU type read 1 Applicable ACT controls This function is available for all ACT controls 1 but the ActSupoort and ActMLSupport controls x1 MELSECNET 10 board will result in an error if own board access is made 2 Feature Reds the type character string and type code of the PLC CPU Network Board and GOT 3 Format Visual Basic VBA object GetCpuType szCpuName Long IRet Returned value Output String szCpuName CPU type character string Output Long ICpuType PLC CPU type code Output Visual IRet object GetCpuType szCpuType IplOpuType Long IRet Returned value Output BSTR szCpuName PLC CPU type character string Output Long lplICpuType PLC CPU type code Output VBScript varRet object GetCpuType varCpuName IpvarCpuCode VARIANT varRet Returned value LONG type Output VARIANT IpvarcCpuName PLC CPU type character string Output character string type VARIANT IpvarCpuCode PLC CPU type code LONG type Output 4 Explanation a The type of the PLC which is making communication is stored into szCpuName IpvarCpuName and its type code into ICpuType IplCpuType or IpvarCpuCo
275. ram and restart the IBM PC AT compatible 0x01802040 Motion PLC Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x01802041 Motion PLC Communication error Reinstall MX Component Inform the telephone center of our company mm Exit the program and restart the IBM PC AT compatible 0x01802042 Fixed execution time setting error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x01802043 Error in number of functions Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x01802044 System information specification error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x01802045 Registration Condition Not Formed error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x01802046 Function No Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x01802047 RAM drive error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x01802048 ROM drive error at the booting side Reinstall MX Component Inform the telephone center of ou
276. rd communication Abbreviation of communication made with the PLC CPU using the CPU board Q series bus communication Abbreviation of communication made with the PLC CPU on the same base using the PC CPU module GX Simulator communication Abbreviation of communication made with the GX Simulator Modem communication Abbreviation of communication made with the PLC CPU via modems using the QC24N except the AJ71QC24N R4 Q series compatible C24 AGTEL Q6TEL or FXCPU Gateway function communication Abbreviation of communication made with the PLC CPU and third party PLCs using the gateway functions of the GOT Utility setting type Abbreviation of user program creation using the communication settings utility Program setting type Abbreviation of user program creation without using the communication settings utility ACT controls Generic term of the ActiveX controls offered by MX Component 1 OVERVIEW MELSOFT 1 OVERVIEW This chapter provides the function outline of the ACT controls offered by MX Component 1 1 Outline of ACT Controls These controls are used to create user programs for communication with a PLC CPU This enables the user to make communication without being aware of the hardware and communication protocol on the other end IBM PC AT compatible REN You can make communication with the specified PLC easily without being aware of the communication HS a protocol
277. rea is not 33 Inform the telephone center of our company secured 6 6 ERROR CODES MELSOFT Error in Conversion of Device Representation to 0x0407C004 Indirect Address Indirect Address storage area is not secured Error in Conversion of Indirect Address to Device Character String 0x0407C005 Device Character String storage area is not secured Error in Conversion of Device Character String 0x0407C006 to Indirect Address Indirect Address storage area is not secured Error in Conversion of Intermediate Code to 0x0407C007 Device Name Device Name storage area is not secured Error in Conversion of Device Name to 0x0407C008 Intermediate Code Intermediate Code storage area is not secured Error in Conversion of Intermediate Code to Device representation 0x0407C009 Device Representation storage area is not secured Error in Conversion of Device Representation to 0 0407 00 Intermediate Code Intermediate Code storage area is not secured Error in Conversion of Intermediate Code to 0x0407CO00B Indirect Address Indirect Address storage area is not secured Error in Conversion of Indirect Address to 0 0407 00 Intermediate Code Intermediate Code storage area is not secured PLC Type Error 0x0407C00D E The specified PLC type is not supported Device Character String Error 0 0407 00 A The specified device is not supported Device Character String Error 0x0407CO0F The specifi
278. reate a user application in the following procedure Power on the IBM PC AT compatible and start Windows Refer to the operating manual startup Install MX Component Make settings using the utility setting type Utility setting type Program setting type Start the communication settings utility Refer to the Start Visual and make communication settings in accordance with the wizard P 9 Add the ACT control to Visual C Start Visual Refer to Section 2 1 2 Create a form and paste the ACT control for corresponding communication Register the ACT control to Visual n EE Refer to Using Class Wizard define the pasted Create a form and paste the ACT Section 2 1 2 ACT control as a dialog member control to the form ActEasyIF control Set the properties of the pasted Refer to the Using Class Wizard define the pasted control operating manual ACT control as a dialog member Set the property of the pasted control Refer to the Set only the logical station number operating manual Y Perf i ing the functi ffered by the erform programming using the functions offered bythe Refer to Chapters 3 4 corresponding ACT control Perform debugging using Yes the PLC monitor utility Refer to the
279. rget non target relayed CPUs are indicated by target or x non target Connected station 4 Relayed station CPU 2 Connected Motion module Ussble 27 08 SCPH controller Q mode A mode control name CPU series x x C24 Computerin x o x x x oo sone o vor VELO D use ActMLQJ71C24 Independent mode Synchronous mode To next page APP 7 APP 7 APPENDICES MELSOFT Connected station 4 Relayed station CPU 2 Connected Motion lt 6 PU module Usable 57 1 270 network Tri nce ACPU FXCPU controller control name CPU MELSECNET H x x x x x MESECNETAO x x x P x x x x o x x x Ethernet Pex x o x x x x x x x x x x QC24 N ActAJ71QC24 Computer link ActMLAJ71QC24 x eal TENE Independent mode Multidrop Synchronous mode A mide MELSECNET 10 za jesi MELSECNET II xe ActAJ71UC24 Ethernet ActMLAJ71UC24 Computer link CPU Multidrop MELSECNET H QCPU MELSECNET 10 O O O Mascone o e e x 9 ActAJ71C24 Ethernet x Motion ActMLAI71C24 oor Puter link controller CC Link x x x xX x a x x x x xX x x x x x Hu x
280. ries compatible E71 TCP IP Fixed to 5002 Q series compatible E71 UDP IP Fixed to 5001 For multidrop connection via Q series compatible C24 CC Link specify the actual I O number ActDestinationlONumber first O 16 of the last access target station When the target is the intelligent special function LONG module When the target is the CPU specify Ox3FF 3 DETAILS OF THE ACT CONTROLS MELSOFT Property Name Type ActMultiDropChannel For multidrop connection via Q series compatible C24 CC Link specify the multidrop Number connection channel number Ch1 Ch2 LONG Invalid for other connections When making access to the other station using the ActQJ71C24 ActQJ71E71TCP ActQJ71E1UDP ActQCPUQ ActQCPUQUSB or ActMnetHBD control select whether the relayed network is only the MELSECNET H or includes the MELSECNET 10 When the control used is other than the above this property is fixed to Including ActThroughNetworkType MELSECNET 10 LONG Property value 0x00 MELSECNET H only Including MELSECNET 10 For multidrop connection via Q series compatible C24 CC Link specify whether the network of the multidrop link destination will be relayed or not To differentiate the own network Actintelligent module PreferenceBit Property value LONG Another network of multidrop link destination is not accessed oxo Another network of multidrop link destination is accessed For access to the Q series
281. rned Abnormal termination Any value other than 0 is returned Refer to Chapter 6 ERROR CODES POINT 1 The maximum number of read points that may be specified in ISize varSize should satisfy the following range Read starting device number number of read points lt last device number 2 When the bit device is specified a multiple of 16 may be specified as the device number 3 For IData IplData or lpvarData prepare a memory area having the number of points specified in ISize varSize If there is no memory area a critical phenomenon such as an application error may occur 4 FUNCTIONS MELSOFT 4 2 4 WriteDeviceBlock Device batch write 1 Applicable ACT controls This function is available for all ACT controls but the ActSupoort and ActMLSupport controls Feature Batch writes data to devices Format Visual Basic VBA IRet object WriteDeviceBlock szDevice ISize IData 0 Long IRet Returned value Output String szDevice Device name Input Long ISize Number of write points Input Long IData n Device values to be written Input Visual C IRet object WriteDeviceBlock szDevice ISize Long IRet Returned value Output CString szDevice Device name Input Long ISize Number of write points Input Long kIplData Device values to be written Input VBScript varRet object WriteDeviceBlock varDevice varSize varData VARIANT varRet Returned value LONG type Output VARI
282. rned value Output VBScript varRet object FreeDeviceStatus VARIANT varRet Returned value LONG type Output 4 Explanation The devices that have been set by the EntryDeviceStatus function to monitor statuses are deregistered 5 Returned value Normal termination 0 is returned Abnormal termination Any value other than 0 is returned Refer to Chapter 6 ERROR CODES 4 FUNCTIONS MELSOFT 4 2 17 OnDeviceStatus Announces event 1 2 Applicable ACT controls This function is available for all ACT controls but the ActSupoort and ActMLSupport controls Feature Gives event notice when the device condition registered with the EntryDeviceStatus function holds Format Visual Basic Visual VBA object OnDeviceStatus szDevice IReturnCode BSTR szDevice Name of device whose condition Input has held Long IData Value of device whose condition Input has held Long IReturnCode Returned value of condition check Input processing VBScript object OnDeviceStatus varDevice varData varReturnCode Name of device whose condition VARIANT varDevice Input has held BSTR type P VARIANT varData Value of device whose condition Input has held LONG type VARIANT varReturnCode a check Input Explanation a The application is notified of an event when the device condition registered with the EntryDeviceStatus function holds Placing this function in the user application allows the application to recei
283. rnet module may not perform close processing Close One of its causes is the open cable If open processing Open is executed from the IBM PC AT compatible with the Ethernet module not performing close processing Close open processing Open from the IBM PC AT compatible is not terminated normally until the Ethernet module makes a target existence check and executes close processing Close If you want to terminate open processing Open early from the IBM PC AT compatible shorten the target existence check starting interval setting of the Ethernet module The target existence check starting interval setting of the Ethernet module defaults to 10 minutes 1 It can be set for the E71 of AJ71E71 S3 or later Replacement of Ethernet module If you changed the Ethernet module during Ethernet communication due to debugging failure or like the other node IBM PC AT compatible must be restarted Since the Ethernet addresses MAC addresses differ between devices Simultaneous access when using Q series compatible Ethernet module The following conditions should be satisfied when communication is to be made simultaneously from multiple IBM PC AT compatibles to the same module using the TCP IP protocol series compatible E71 module except QJ71E71 100 whose first five digits of the serial number is 02122 or later and whose function version is B or later Using GX Developer Version 6 05F or later set MELSOFT connection
284. rns PEE pee 59 m 89 3 19200 BAUDRATE_9600 BAUDRATE_19200 BAUDRATE_38400 BAUDRATE_57600 ActBaudRate BAUDRATE _ 19200 BAUDRATE_ 115200 8 ActControl TCR_DTR_OR Depending on used cable _RTS ActCpuType CPU aoe CPU type corresponding to target station Target station side Target station side For single CPU For single CPU Ox3FF fixed Ox3FF fixed For multiple CPUs For multiple CPUs ActDestinationlONumber Tu Fixed to 0x00 Fixed to 0x00 Connected CPU OX3FF Connected CPU OX3FF No 1 0x3E0 No 1 0x3E0 No 2 Ox3E1 No 2 OX3E1 No 3 OXSE2 3 No 4 0x3E3 ActDidPropertyBit Fixed to 0x01 Fixed to 0x01 Fixed to 0x00 Fixed to 0x00 ActDisdPropertyBit Fixed to 0x01 Fixed to 0x01 Fixed to 0x00 Fixed to 0x00 2 Note the following points when mua access via the Ethernet module Q series compatible E71 QE71 For ActNetworkNumber and ActStationNumber specify the value set in the parameter setting of the target station side Q series compatible E71 or QE71 e Set the MNET 10 routing information in the parameter setting of the series compatible E71 or QE71 Also when making setting specify other than the automatic response system any of the IP address calculation system table conversion system and combined system as the MNET 10 routing system To next page 3 DETAILS OF THE ACT CONTROLS MELSOFT Propert Default Val epe Patterns rope efault Value Oo
285. roperty Default Value Property Pattern 34 ActCpuType CPU_Q02CPU CPU type corresponding to target station 10000 Any value specified by user in ms units 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 26 ActQCPUQBus ActMLQCPUQBUus control The following table indicates the properties possessed by the ActQCPUQBus ActMLQCPUQEBus control and their default values 1 Configuration me SI 5 QUE ES No 1 No 2 No 3 PC CPU module 2 Property acp CPU E 2CPU CPU type corresponding to target station Target station No 1 OXSEO ActlON ctlONumber Pisas No 2 OX3E1 No 3 OXSE2 Use any of the following controls for access to the PLC CPU via the corresponding module controlled by the PC CPU module Controls Used Relayed Module For VB VC VBA For VBScript MELSECNET H module ActMnetHBD ActMLMnetHBD CC Link module ActCCBD ActMLCCBD 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 27 ActA6TEL control The following table indicates the properties possessed by the ActA6TEL control and their default values 1 Configuration Connected Relayed station CPU module Modem Relayed network Subscriber line Relayed Relayed o His d HRE Modem station CPU module
286. rror codes indicated in the following table is returned The two upper bytes denote Error detection module and the two lower bytes denote the error code returned by Error detection module For detail of the error refer to the manual of CPU module or network board corresponding to the error code Error Code Error detection module 0x01010000 to 0x0101FFFF 1 2 QCPU A mode ACPU motion controller CPU 0x01020000 to 0x0102FFFF QnACPU k 0x01030000 to Ox0103FFFF 0x01040000 to Ox0104FFFF 0x01050000 to Ox0105FFFF 0x01060000 to 0x0106FFFF 1 C24 MELSECNET H board MELSECNET 10 board CC Link board CPU board 0x01090000 to 0x0109FFFF 1 0x010A0000 to 0x010AFFFF 1 0x010B0000 to Ox010BFFFF 1 series compatible C24 0x010C0000 to 0x010CFFFF 1 0x010D0000 to 0x010DFFFF 1 0x01070000 to 0x0107FFFF 0x010F0000 to 0x010FFFFF 1 1 Refer to Point 2 The error codes are also indicated in 6 1 Error Codes Returned by the ACT Controls 2 Precautions for confirming error code Precautions for confirming the error codes returned by CPU module and network board are described below a Property setting error If the used system configuration does not match the preset property values the two upper bytes do not indicate the correct error detection module For example when the property values of the ACPU have been set to ActCpuType as those of the QCPU Q mode the two upper bytes may indicate that E
287. rror detection module is the ACPU In such a case make communication again after checking the system configuration and all preset property values When the ActEasyIF or ActMLEasylF control is used check the settings of the communication setting utility 6 ERROR CODES MELSOFT b When AJ71E71 or AJ71QE71 is used If the two lower byte error code that occurred during E71 or QE71 communication is not given in the E71 or QE71 manual check whether the DIP switch SW2 at the front of the E71 or QE71 module matches the value set to the ActPacketType property If the DIP switch setting is incorrect the packet format ASCII binary is different disabling correct recognition of the error code returned from the module c At access to another station At access to another station the error code of the relayed module used MELSECNET H MELSECNET 10 CC Link computer link Ethernet module may enter the two lower bytes In such a case the two upper bytes that indicate Error detection module may not always match the faulty module Therefore after checking the system configuration also check the manuals of the used CPU relayed network module and network board 6 3 HRESULT Type Error Codes Normally the ActiveX control returns the HRESULT type returned value So does the ACT control When the custom interface is used the returned value is equivalent to the returned value of method API When the dispatch interface is used the HRESULT type
288. rrors Exit the program and restart the IBM PC AT compatible 0x04041011 Other errors generated during the conversion of Reinstall MX Component Intermediate code to CAD code Inform the telephone center of our company Insufficient Intermediate Code Storage Space Exit the program and restart the IBM PC AT compatible 0x040A0001 The space to store the data after conversion 15 Reinstall MX Component insufficient Inform the telephone center of our company 2 n Exit the program and restart the IBM PC AT compatible The space to store addition SFC information is 0x040A0002 teneis Reinstall MX Component not sufficien Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x040A0003 Conversion Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x040A0004 Non SFC Program Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x040A1001 Step Not Used No Output error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x040A1002 Step No out of range error Reinstall MX Component Inform the telephone center of our company 6 ERROR CODES MELSOFT Error Code Error Definition Exit the program and restart the IBM PC AT compatible 0x040A1003
289. s an error Specifying ER does not enable extension representation indirect specification digit specification 4 For direct specification describe between the direct specification part and device specification part 5 Cannot be used when E71 is relayed 6 For specify the network number 7 Specify the special module I O number hexadecimal for U and the buffer memory address decimal for Example Specify U20 G100 when the special module I O number is 200H and the buffer memory address is 100 x8 FXCPU cannot be used 9 In a multi QCPU configuration an error will occur if the shared memory of the host QCPU is specified Also independently of the host or other CPU an error will occur if write to the shared memory is performed C o D lt n 2 For CC Link communication only For CC Link communication only the devices in the following table can be used when own board access is made They cannot be used for other communication paths Device No Type Special relay of own board Speci register Word Decimal Special register of own board Link special register for CC Link Link special relay of own board Link special register for CC Link Link special register of own board Remote input x st Hsia Remote output Bit Hexadecimal RY Link register w Hexadecimal To next page 2 15 2 15 2 ABOUT THE ACT CONTR
290. s units 0 Target station side 0x00 Fixed to 0x00 Fixed to 0x00 Fixed to 0x00 module station number 1 As the I O address specify the value found by dividing the actual first number by 16 2 Note the following points when making access via the Ethernet module QE71 For ActNetworkNumber and ActStationNumber specify the value set in the parameter setting of the target station side QE71 e Set the MNET 10 routing information in the parameter setting of the QE71 Also when making setting specify other than the automatic response system any of the IP address calculation system table conversion system and combined system as the MNET 10 routing System 3 39 3 39 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 20 ActCCG4A ActMLCCGAA control The following table indicates the properties possessed by the ActCCG4A ActMLCCGAA control and their default values 1 Configuration Connected Relayed module CC Link module station CPU Relayed network CC Link G4 module A mode Relayed Relayed station CPU module IBM PC AT compatible 2 Property patterns Relayed Station CPU Q mode A mode CPU 1 Computer link x x x A Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU 3 Property list Property Patterns iac An 8 TCR_DTR_OR Depending on used cable _
291. setting of Q series compatible C24 ActCallbackCancelWaitTime ActCallbackDelayTime ActCallbackNumber ActCallbackReceptionWaitingTimeOut ActConnectionCDWaitTime 90 Anyvalespecfiedbyuser mits 0 Connected station side module Connected station side module ActConnectUnitNumber 0 00 station number station number 0 TEL_AUTO_CONNECT TEL_AUTO_CALLBACK TEL_CALLBACK TEL_AUTO TEL_CALLBACK_NUMBER TEL_CALLBACK_REQUEST TEL CALLBACK REQUEST NUMBER TEL CALLBACK WAIT Depending CONNECT on callback function setting 34 ActCpuType CPU QO2CPU CPU type corresponding to target station To next page 3 DETAILS OF THE ACT CONTROLS MELSOFT Property Patterns iki Target station side For single CPU Ox3FF fixed For multiple CPUs NN 0 ActDestinationlONumber 0x00 Fixed to 0x00 Connected CPU Ox3FF No 1 OXSEO No 2 0x3E1 ActDialNumber Empty Telephone number of any value specified by user 3 ActDisconnectionCDWaitTime Any value specified by user unit s ActDisconnectionDelayTime 3 Any value specified by user unit s Fixed to 0x00 Fixed to 0x00 Target station side For single CPU ActDsidPropertyBit 0x01 7 0 0 00 ActintelligentPreferenceBit OxSFF fixed For multiple CPUs Connected station side relayed ActlONumber 1 Connected CPU OxSFF module I O address No 1 OXSEO No 2 0x3E1 No 3 Ox3E2 No 4 1 LINETYPE LINETY
292. sing of shared memory failed Exit the program and restart the IBM PC AT compatible 0x01808101 Duplex close error Exit the program and restart the IBM PC AT compatible Handle close error 0x01808102 Exit the program and restart the IBM PC AT compatible Closing of the COM port handle failed Driver close error 1 1 Exit th d restart the IBM PC AT tible 0x01808103 Closidp of failed xit the program and restart the compatible 0x0180800D Exit the program and restart the IBM PC AT compatible 0x01808104 Event Close Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x01808105 Handle Close Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x01808106 COM Port Handle Close Error Reinstall MX Component Inform the telephone center of our company Review the system e g PLC CPU module setting and cable status E deu Make COM port setting on the control panel of the OS 0x01808201 Make Ethernet board and protocol settings on the control Data send failed panel Retry the method Exit the program and restart the IBM PC AT compatible aeoradason 7279 ere Exit the program and restart the IBM PC AT compatible Data send failed 0x01808203 Queue clear error Exit the program and restart the IBM PC AT compatible Clearing of the COM port
293. sion object PLC Type Error The specified PLC type does not exist Not Converted error Converted object does not exist Input Data Error The input data is incorrect Program Common Data Conversion Error Program Common Data Conversion Error Program PLC Data Conversion Error Common Data Parameter Error Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program an
294. start the IBM PC AT compatible Securing Memory Error 0x04000003 HN Reinstall MX Component Failed in securing the memory Inform the telephone center of our company Check for the deleted or moved installation file of MX 0x04000004 Internal server DLL load error Component Start of the internal server failed Exit the program and restart the IBM PC AT compatible Reinstall MX Component 6 ERROR CODES MELSOFT Error Definition Exit the program and restart the IBM PC AT compatible Securing Resources Error 0 04000005 ER Reinstall MX Component Failed in securing the resources Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Error Loading Main Object 0 04000006 M Reinstall MX Component Failed in reading the file Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Error Loading Conversion Table 0x04000007 RTT Reinstall MX Component Failed in reading table data Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x04000100 Incorrect Intermediate Code Size error Reinstall MX Component Inform the telephone center of our company Intermediate Code Not Converted error Exit the program and restart the IBM PC AT compatible 0x04010001 The converted machine code for one command Reinstall MX Component is more than 256 bytes Inform the teleph
295. such as an application error may occur 4 FUNCTIONS MELSOFT 4 2 20 ReadDeviceRandom2 Device random read 1 Applicable ACT controls This function is available for all ACT controls but the ActSupoort and ActMLSupport controls Feature Randomly reads 2 byte data from devices Format Visual Basic VBA IRet object ReadDeviceRandom2 szDeviceList iData 0 Long IRet Returned value Output String szDevicelist Device name Input Long ISize Number of read points Input Integer iData n Read device values Output Visual C IRet object ReadDeviceRandom2 szDeviceList ISize IpsData Long IRet Returned value Output CString szDevicelist Device name Input Long ISize Number of read points Input Short kIpsData Read device values Output VBScript varRet object ReadDeviceRandom2 varDeviceList varSize IpvarData VARIANT varRet Returned value LONG type Output VARIANT varDeviceList Device name character string type Input VARIANT varSize Number of read points LONG type Input VARIANT IpvarData Read device values SHORT type Output Explanation a Randomly reads only ISize varSize of device values from the device group specified in szDeviceList varDeviceL ist b The read device values are stored in iData IpsData or IpvarData c Using the line feed symbol separate the devices in the character string specified in the device list The last device need not be followed by the line feed symbol
296. t Long IRet Returned value Output 4 Explanation a Disconnects the telephone line that was connected using the Connect function 5 Returned value Normal termination 0 is returned Abnormal termination Any value other than 0 is returned Refer to Chapter 6 ERROR CODES 4 FUNCTIONS MELSOFT 6 Instructions for Disconnect execution a When executing Disconnect during Open execute Close before executing Disconnect b If the telephone line is disconnected in the Open status for some reason always execute Close before reconnecting the telephone line c When multiple telephone line connection objects are used Disconnect should be executed by the object that executed Connect first after another object has executed Disconnect When multiple telephone line connection objects are used the telephone line is not disconnected if the object that executed Connect first does not execute Disconnect The following example gives how to use multiple objects together lt Example gt When using two controls together Including the case where the objects A and B are operated by different applications lt Object A gt lt Object B gt Connection Connection start start Execution of Connect 5 y p gt Execution of Connect Execution of Open Execution of Open Execution of ReadDeviceBlock or like Execution of ReadDeviceBlock or like v Execution of Close
297. t Converted error Exit the program and restart the IBM PC AT compatible 0x04031001 The size vertical horizontal of the character Reinstall MX Component memory specified is incorrect Inform the telephone center of our company Abnormal Command Code error Exit the program and restart the IBM PC AT compatible 0x04031002 The command intermediate code to be Reinstall MX Component 20 converted is incorrect Inform the telephone center of our company 6 6 ERROR CODES MELSOFT Error Definition Bad Circuit Creation error Exit the program and restart the IBM PC AT compatible 0x04031003 Could not be converted to Sequence Circuit Reinstall MX Component There is no END command Inform the telephone center of our company JY Exit the program and restart the IBM PC AT compatible Specified Circuit Size exceeded error 0 04031004 C Yd Reinstall MX Component Specified circuit size is too big Inform the telephone center of our company Fatal E Exit the program and restart the IBM PC AT compatible atal Error 0x04031005 Reinstall MX Component Fatal Error has occured Inform the telephone center of our company Insufficient number of storage blocks error Exit the program and restart the IBM PC AT compatible 0x04031006 The space to store the converted character Reinstall MX Component memory circuit blocks is not sufficient Inform the telephone center of our company MX Exit the program and restart the IBM PC AT
298. t is considered that the telephone number is different from methods of connection in other than the callback reception Control Type Mismatch error OxF100001B An object control type is different from that of the object already connected to the telephone line tried to Connect Not Disconnected error OxF100001C mene Disconnect method is executed ier the object connected to the telephone line it is found that other objects are in connected state Not Connected error 0xF100001D Open was executed before Connect Or Disconnect was executed OxF100001E Fatal Error Open time setting error There is some difference in telephone number OxF100001F jand the port number settings used during Connect and Open There is some error in Connect way If you want to connect to a different telephone number Execute Disconnect with respect to the telephone line that is already connected and executes Connect after it gets disconnected In case of connecting the telephone line with callback reception use the Connect of the connection method that is executed at the earliest in the same port as callback reception Execute Disconnect for the object currently connected to the telephone line and execute Connect once again after the telephone line gets disconnected Execute Disconnect for all the Connected objects Try Disconnect again for the object that actually performed the telephone line connection Execute Open again after e
299. t the IBM PC AT compatible Recheck the timeout value 0x01808503 0x01808504 Exit the program and restart the IBM PC AT compatible 0x01808505 USB Driver Timeout Error Reinstall MX Component Inform the telephone center of our company USB driver initialisation error Make USB setting on the control panel device manger of 0 01908908 Initialisation of the USB driver failed ihe Os Exit the program and restart the IBM PC AT compatible Other USB error Disconnect the cable once then reconnect 0x01808507 Exit the program and restart the IBM PC AT compatible Error related to data send receive occurred Reinstall MX Component Reduce the no of points registered by the monitor Points Exceeded error Exit the program and restart the IBM PC AT compatible 0x02000001 The number of points registered in the a Reinstall MX Component monitoring server is very high Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Shared memory creation error 0x02000002 67 Reinstall MX Component Failed in creating shared memory Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x02000003 Shared memory access error Reinstall MX Component Inform the telephone center of our company Close the other applications Memory Secure error Increase the system memory 0x02000004 Failed in securing memory for the monitoring Exit t
300. t time if the response speed of the modem is low Password cancel response waiting time Setting range 1 to 999 unit s Increase the set time if the quality of the line with the other end is low AT command password cancel send retry count Setting range 1 to 999 unit number of times Callback line disconnection waiting time Setting range 1 to 180 unit s Increase the set time if the line at the other end Q series compatible C24 is not disconnected within the preset time depending on the line connected region example overseas You need not make this setting if the connection system ActConnectWay is other than callback connect or callback request Callback execution delay time Setting range 1 to 999 unit s Increase the set time if the device for relaying connection to the line example modem or like requires the predetermined time for reconnection after line disconnection You need not make this setting if the connection system ActConnectWay is other than callback connect or callback request Callback receive waiting time out period Setting range 1 to 3600 unit s Set the waiting time for a telephone line connection request from the Q series compatible C24 in a callback receive waiting status If the set time has elapsed the callback reception waiting status is exited and since the connection of the telephone line was not completed the Connect function is terminated abnormally You need not make this sett
301. tall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x0180202F Error in Number of Pls Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x01802030 Shift Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x01802031 File Type Error Reinstall MX Component Inform the telephone center of our company m Exit the program and restart the IBM PC AT compatible 0x01802032 Specified Unit error Reinstall MX Component Inform the telephone center of our company amas Exit the program and restart the IBM PC AT compatible 0x01802033 Error check flag Error Reinstall MX Component Inform the telephone center of our company m Exit the program and restart the IBM PC AT compatible 0x01802034 Step RUN operation error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x01802035 Step RUN data error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x01802036 During Step RUN error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Write error while running program 0x01802037 Reinstall MX Component corresponding t
302. target station side Q series compatible E71 or QE71 Set the MNET 10 routing information in the parameter setting of the Q series compatible E71 or QE71 Also when making setting specify other than the automatic response system any of the IP address calculation system table conversion system and combined system as the MNET 10 routing system For single CPU Ox3FF fixed For multiple CPUs Connected CPU Ox3FF 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 18 ActCCG4Q ActMLCCG4Q control The following table indicates the properties possessed by the ActCCG4Q ActMLCCG4Q control and their default values 1 Configuration 2 Property patterns Connected Relayed Station CPU SEEI m mecs vus ie ze Q mode Q mode A mode CPU 1 Relayed network IMELSECNETH x x CC Link G4 MONI O mone x x xlo x x IBM PC AT QnA mode station CPU module x compatible x Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU 3 Property list Property Patterns dpa 19200 BAUDRATE_ 9600 BAUDRATE 19200 BAUDRATE 38400 BAUDRATE_57600 BAUDRATE 29090 38400 ActBaudRate pee BAUDRATE_ 115200 EE ActConnectUnitNumber Connected station side module station number ActControl TCR D OR Depending on used
303. tatus 4 If the statuses of multiple devices change at the same time the OnDeviceStatus event is executed every time the status changes Example When MO is monitored Application MX Component MO M1 read requests MO M1 contents MO M1 read requests Mi contents MO ON Execution of Event notice MO OnDeviceStatus 4 event MO OFF 1 read requests MO M1 contents 1 ON Execution of Event notice MO OnDeviceStatus j event Execution of Event notice M1 OnDeviceStatus 4 j event b With this function the ACT control performs device random read periodically and confirms that the status has been established Therefore this function is not designed for the PLC CPU to notify MX Component that the device status has been established Hence depending on the specified status monitor time interval the ACT control may not be able to confirm that the PLC CPU device status has been established 4 FUNCTIONS MELSOFT 4 2 16 FreeDeviceStatus Device status monitor deregistration 1 Applicable ACT controls This function is available for all ACT controls but the ActSupoort and ActMLSupport controls 2 Feature Deregisters the devices that have been registered in EntryDeviceStatus to monitor statuses 3 Format Visual Basic Visual VBA object FreeDeviceStatus Long IRet Retu
304. ted PLC CPU is the QCPU Q mode ActQCPUA ActMLQCPUA Used for CPU COM communication where the connected PLC CPU is the QCPU A mode ActQnACPU ActMLQnACPU Used for CPU COM communication where the connected PLC CPU is the QnACPU Used for CPU COM communication where the connected PLC CPU is the ActACPU ActMLACP 2 ACPU including motion controller CPU ActEXCPU ActMLEXCPU Used for CPU COM communication where the connected PLC CPU is the FXCPU ActQU71C24 ActMLQU71C24 Used for computer link communication where the connected module is the series compatible C24 ActAJ71QC24 ActMLAJ71QC24 unio ed link communication where the connected module is the E ActAJ71UC24 ActMLAJ71UC24 Used for computer link communication where the connected module is the UC24 ActAJ71C24 ActMLAJ71C24 Used for computer link communication where the connected module is the C24 ActQCPUQUSB ActMLQCPUQUSB ed USB communication where the connected PLC CPU is the QCPU Q Used for modem communication where the connected module is the AGTEL or ActA6TEL ActQ6TEL Used for modem communication where the connected module is the Q6TEL QnA mode ActFXCPUTEL xm nde modem communication where the connected PLC CPU is the Me i Su nA coer where the connected module is the E is SR ACA where the connected module is the U Utility setting type P Program setting type 3 1 3 1 3 DETAILS OF THE ACT CONTROLS MELSOFT Control Name Usable Definiti
305. telephone center of our company 5 Exit the program and restart the compatible Table Initialization Error OXO3FFO00C Reinstall MX Component Failed in initializing TrelationInformation table Inform the telephone center of our company ECT Exit the program and restart the IBM PC AT compatible Table Initialization Error OxOSFFOO00D Reinstall MX Component Failed in initializing Tlanguage table Inform the telephone center of our company 6 ERROR CODES MELSOFT Error Definition Exit the program and restart the IBM PC AT compatible Table Initialization Error OxO3FFOOOE a pee eae eerie Reinstall MX Component Failed in initializing Tmaker table Inform the telephone center of our company ETE Exit the program and restart the IBM PC AT compatible Table Initialization Error OxO03FFOOOF Reinstall MX Component Failed in initializing TOpenDatabase table Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x03FF0010 Field Value Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible OxOSFFO0011 Field Value Error Reinstall MX Component Inform the telephone center of our company Exit Error Exit the program and restart the IBM PC AT compatible OxO3FF0012 Reinstall MX Component Inform the telephone center of our company Exit the pro
306. ter of our company Check the filename Filename Error Exit the program and restart the IBM PC AT compatible 0x0301000C nM 2 The specified filename is incorrect Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible File Read Error 0x0301000D Reinstall MX Component Falied in reading the file Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible File Write Error 0x0301000E M Reinstall MX Component Failed in writing the file Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible File Seek Error 0x0301000F _ Reinstall MX Component File seek failed Inform the telephone center of our company gt Exit the program and restart the IBM PC AT compatible File Close Error 0x03010010 7 Reinstall MX Component Failed while closing the file Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Folder Creation Error 0x0301001 1 Reinstall MX Component Failed while creating the folder Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible File Copy Error 0x03010012 Reinstall MX Component Failed while copying the file Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Project Pa
307. ter of our company Exit the program and restart the IBM PC AT compatible Ox04FFFFFF Other Errors Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x10000001 No Command error Reinstall MX Component Inform the telephone center of our company Start of communication DLL of MX Component the program and restart the IBM PC AT compatible 0x10000002 failed Reinstall MX Component Di Exit the program and restart the IBM PC AT compatible 0x10000003 Open failed DiskDrive Reinstall MX Component 0x10000004 Duplex open error Exit the program and restart the IBM PC AT compatible Exit the program and restart the IBM PC AT compatible 0x10000005 File Access Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x10000006 Incorrect Folder Name error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x10000007 File Access Denied error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x10000008 Disk Full Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x10000009 File Delete Error Reinstall MX Component Inform the telephone center of our company Exit the
308. ter of our company m Exit the program and restart the IBM PC AT compatible 0x1000001E Registry search failed Exit other programs and secure free memory area Reinstall MX Component Exit the program and restart the IBM PC AT compatible 0x1000001F File Type Error Reinstall MX Component Inform the telephone center of our company 6 ERROR CODES MELSOFT Error Code Error Definition Exit the program and restart the IBM PC AT compatible 0x10000020 Device Memory Type Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x10000021 Program Range Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x10000022 TEL Type Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x10000023 TEL Access Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x10000024 Cancel Flag Type Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x10000030 Multiple Device Registration Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible 0x10000031 Device Not Registered error Reinstall
309. th Error 0x03010013 a Reinstall MX Component The length of the project path is incorrect Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Project Type Error 0x03010014 Y Reinstall MX Component The project type is incorrect Inform the telephone center of our company 6 ERROR CODES MELSOFT Error Definition Exit the program and restart the IBM PC AT compatible File Type Error 0x03010015 UM Reinstall MX Component The file type is incorrect Inform the telephone center of our company f Exit the program and restart the IBM PC AT compatible Sub File Type Error 0x03010016 NA Reinstall MX Component The sub file type is incorrect Inform the telephone center of our company 7 Exit the program and restart the IBM PC AT compatible Insufficient Disk space error 0x03010017 2 m Reinstall MX Component The disk space is insufficient Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Multiple Open Error 0 03020002 Reinstall MX Component Tried to open DBProduct more than once Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Not Opened error 0x03020003 Reinstall MX Component DBProduct is not opened Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Extract Error f 0x0302
310. the Excel files 2 Precautions for use of EXCEL VBA Do not set the page feed preview function in the application that uses EXCEL VBA Doing so can cause a memory leak or OS basic operation file operation printing or other fault 3 Precautions for use of Microsoft Excel 2000 or Microsoft Excel 2002 a If you paste the control to Excel 2000 or Excel 2002 it may sometimes not be pasted This phenomenon occurs if the cache file temporary file of Excel 2000 or Excel 2002 remains In such a case perform operation in the following procedure 1 Close Excel 2000 or Excel 2002 2 Delete exd in the Excel 8 0 folder of the temp folders 3 Restart Excel 2000 or Excel 2002 b Excel 2000 allows ACT control resizing which does not affect the operation of MX Component To restore the size set the Height and Width properties of ACT control to 24 again Instructions for use of Microsoft Access 1 Precautions for use of Microsoft Access 2000 or Microsoft Access 2002 a When you paste the ACT control to an Access 2000 form or an Access 2002 form and double click the ACT control or choose the custom control in the property the following error message will appear but this does not affect the operation of ACT control Other error message may appear x The operation on the MITSUBISHI ActACPU Control object failed gt The OLE server may not be registered To register the OLE server reinstall it b When
311. the module side sumcheck setting Check the sumcheck property of the control Check the cable Exit the program and restart the IBM PC AT compatible Reinstall MX Component Check the number of points specified in the method Review the system e g PLC CPU module setting and cable status Exit the program and restart the IBM PC AT compatible Reinstall MX Component Review the block specifying number in the device character string specified in the method Review the system e g PLC CPU module setting and cable status Check the cable Exit the program and restart the IBM PC AT compatible Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Set the correct CPU type as the CPU type of the property Set the correct CPU type on the communication settings utility Review the system e g PLC CPU module setting and cable status Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company 6 ERROR CODES MELSOFT Error Def
312. the program and restart the IBM PC AT compatible OxO3FF0004 Database Initialization Error Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible OxO3FF0005 Recordset Initialization Error Reinstall MX Component Inform the telephone center of our company cro Exit the program and restart the IBM PC AT compatible 0x03FF0006 Error Closing Database Reinstall MX Component Inform the telephone center of our company aso Exit the program and restart the IBM PC AT compatible 0x03FF0007 Error Closing Recordset Reinstall MX Component Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Database Not Opened error OxOS3FFO0008 Reinstall MX Component Database is not opened Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Recordset Not Opened error OxOS3FFO0009 Reinstall MX Component Recordset is not opened Inform the telephone center of our company E Exit the program and restart the IBM PC AT compatible Table Initialization Error OxOSFFO00A Reinstall MX Component Failed in initializing Ttablelnformation table Inform the telephone center of our company FIERA Exit the program and restart the IBM PC AT compatible Table Initialization Error OxO3FFOO0B Reinstall MX Component Failed in initializing TfieldInformation table Inform the
313. the set value is negative If IInputData ICount lt 0 Then Masks with 65535 0000FFFF hex to store 0 5 into upper 2 bytes IEntryData ICount IInputData ICount And 65535 Else If the set value is positive assigns the value as is to IEntryData IEntryData ICount IInputData ICount End If Next Executes EntryDeviceStatus IReturnCode ActLLT1 EntryDeviceStatus szDevice 3 5 IEntryData 0 APP 3 To next page APP 3 APPENDICES MELSOFT When 1 gt Private Sub ActLLT1 OnDeviceStatus ByVal szDevice As String ByVal IData As Long ByVal IReturnCode As Long Dim ICheckData As Long Value set to EntryDeviceStatus value before Os are stored into the upper 2 bytes If the device value whose condition was established is a WORD type negative value greater than 32767 7FFF Hex If IData 32767 Then Since 0 are stored in the upper 2 bytes the device value is ORed with FFFFOOOO Hex to convert it into a LONG type negative value ICheckData IData Or amp HFFFF0000 Else If the device value whose condition was established is positive assigns the value as is to ICheckData ICheckData IData End If End Sub APP 4 APP 4 APPENDICES MELSOFT 2 When using Microsoft Visual The following programming example checks DO for 10 D1 for 0 and D2 for 10 using Visual C CString szDevice Checked device list LONG IInputData 3 Set value LONG IEntryData 3
314. tible E71 or QE71 Also when making setting specify other than the automatic response system any of the IP address calculation system table conversion system and combined system as the MNET 10 routing system To next page 3 DETAILS OF THE ACT CONTROLS MELSOFT Property Patterns one TEM Target station side For single CPU Ox3FF fixed For multiple CPUs Connected station Connected station Connected CPU 0x3FF side module I O side module No 1 OXGEO No 1 0x3E0 address address No 2 0x3E1 No 2 0x3E1 0 Target station side ActNetworkNumber 0x00 Fixed to 0x00 module network Fixed to 0x00 Fixed to 0x00 number 255 Target station side ActStationNumber OxFF Fixed to OxFF module ead Fixed to OxFF Fixed to OxFF number QCPU mode 0x00 MELSECNET H only other than QCPU mode 0x01 ActThroughNetworkType 0 50 including MELSECNET 10 Note that the setting must be the same as set in the network parameter of the GPP function 10000 Any value specified by user in ms units Target station side Target station side ActUnitNumber ia Fixed to 0x00 Fixed to 0x00 module station module station number number 1 As the I O address specify the value found by dividing the actual first number by 16 2 Note the following points when making access via the Ethernet module series compatible E71 QE71 For ActNetworkNumber and ActStationNumber specify the value set in the parameter setting of the
315. tion line 3 Format Visual Basic Visual VBA IRet object Close Long IRet Returned value Output VBScript varRet object Close VARIANT varRet Returned value LONG type Output 4 Explanation The line connected using the Open function is closed 5 Returned value Normal termination 0 is returned Abnormal termination A value other than 0 is returned Refer to Chapter 6 ERROR CODES 4 FUNCTIONS MELSOFT 4 2 3 ReadDeviceBlock Device batch read 1 Applicable ACT controls This function is available for all ACT controls but the ActSupoort and ActMLSupport controls Feature Batch reads data from devices Format Visual Basic VBA IRet object ReadDeviceBlock szDevice ISize IData 0 Long IRet Returned value Output String szDevice Device name Input Long ISize Number of read points Input Long IData n Read device values Output Visual C IRet object ReadDeviceBlock szDevice ISize p Data Long IRet Returned value Output CString szDevice Device name Input Long ISize Number of read points Input Long kIplData Read device values Output VBScript varRet object ReadDeviceBlock varDevice varSize IpvarData VARIANT varRet Returned value LONG type Output VARIANT varDevice Device name character string type Input VARIANT varSize Number of read points LONG type Input VARIANT lpvarData Read device values LONG array type Output Explanation a The device values
316. tions It is not allowed to simultaneously perform modem communications using MX Component and other application such as GX Developer Do not perform a modem communication using other applications during a modem communication using MX Component If modem communications are simultaneously performed using MX Component and other application this will result in a communication error disconnection of telephone line or similar problem Instructions for use of telephone line a Do not use the call waiting phone line On the call waiting phone line data corruption telephone line disconnection or similar may occur due to interrupt reading sounds b Do not connect the line to master slave phones If the handset of the slave phone is lifted while the telephone line is connecting to the master slave phones the telephone line may be disconnected 3 c Use an analog 2 wire type telephone line When using a digital line use a terminal adaptor When the telephone line is of 4 wire type the line may not be connected depending on the wiring type of the modular jack For the 4 wire type conduct connection tests in advance to check for connection Instructions for use of cellular phone a Modem for radio communication using a cellular phone Although the modem name is different depending on the maker the modem is generically referred to as the cellular phone communication unit in this manual Select the model of the cellular phone communic
317. tions for use of computer link and serial communication modules 1 2 About computer link communication a If the connected station CPU is the AnUCPU and the computer link module is the UC24 for computer link connection remote operation will result in an error when access is made to the ANNCPU AnACPU or QnACPU via the MELSECNET 10 b On any computer link modules other than the UC24 and C24 remote PAUSE operation will result in an error for all connections c For the QC24 note that the illegal case of specifying the first number of a nonexisting module and reading writing will not return an error if the software version of the module is k or earlier d In any connection form direct coupling relaying where the target station of the UC24 or C24 is the QnACPU an error is returned if clock data read write is executed Precautions for connecting personal computer and serial communication module a When QJ71C24 R2 of function version A is used An MX Component application can use only either of CH1 and CH2 When the MELSOFT product such as GX Developer or GOT is using one channel the application cannot use the other channel When the QJ71C24 R2 of function version B is used the application can use both channels b When AJ71QC24 R2 or A1SJ71QC4 R2 is used The MX Component application can use only CH1 It cannot use CH2 Instructions for modem communication 1 Simultaneous modem communica
318. to 0x00 ee station number 1 As the I O address specify the value found by dividing the actual first number by 16 CPU type corresponding to target station 3 DETAILS OF THE ACT CONTROLS MELSOFT 3 3 15 ActAJ71UC24 ActMLAJ71UC24 control The following table indicates the properties possessed by the ActAJ71UC24 ActMLAJ71UC24 control and their default values 1 When there is relayed module in addition to connected station side UC24 a Configuration b Property patterns Connected Station CPU Station CPU Relayed Station CPU EAS Ri ACPU Relayed Network d QCPU QnA ACPU Connected station UC24 mme pepe Relayed veto MELSECNET 10 compatible esae e foree J Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU 2 Operates as the one equivalent to AnACPU c Property list Propert Default Val Property Patterns rope efault Value ts 19200 ActBaudRate BAUDRATE Match to the setting of UC24 19200 8 TCR DTR OR Depending on used cable _RTS ActCpuType Bai AIN a CPU type corresponding to target station ActDataBits DAT ime Match to the setting of UC24 0 Target station side module ActNetworkNumber Fixed to 0x00 9 Fixed to 0x00 network number ActParity ODD PARITY Match to the setting of UC24 ActPortNumber BORT 1 IBM PC AT compatible sid
319. to the operating manual Completion of user application 2 ABOUT THE ACT CONTROLS MELSOFT 2 2 4 When using VBScript When using VBScript create a user application in the following procedure Power on the IBM PC AT compatible and start Windows Install MX Component Refer to the operating manual startup Make settings using the utility setting type lt Utility setting type gt lt Program setting type gt Start the communication settings utility ee Refer to the and make communication settings in mantal accordance with the wizard P 9 Se ee On the home page generate the Create a home page using the text corresponding communication control Refer to editor and HTML editor so that MX Component controls may Section 2 1 4 be utilized using VBScript On the home page generate the ActMLEasyIF control so that MX Refer to Set the properties of the pasted ACT Refer to the Component controls may be utilized Section 2 1 4 control operating manual using VBScript a Set the property of the pasted control Refer to the Set only the logical station number operating manual Create a home page using the text editor and HTML editor Perform programming using the functions offered by the corresponding ACT control Eo Refer to Chapters 3 4 Perform debugging using Yes the
320. tor 2 Functions available for the ACT controls Refer to CHAPTER 4 FUNCTIONS for full information on the functions available for the ACT controls 2 ABOUT THE ACT CONTROLS MELSOFT 2 ABOUT THE ACT CONTROLS This chapter explains the settings made for use of the ACT controls the programming procedures the device types and the accessible ranges 2 1 Settings Made for Use of the ACT Controls This section describes the setting operation performed for use of the ACT controls 2 1 1 When using Microsoft Visual Basic 6 0 Perform the following setting operation when using Visual Basic 1 Setting the include file m Eroiect s Microso sual Basics 46507 1 Start Visual Basic and choose the Project Add Module File Edit View Project Format Debug Run Qu a 6 119 Add Form menu 5 Add MDI Form Em amp com 49 Add Class Module 1 Add User Control Add Property Page pe 1e Add User Document O a Add DHTML Page Add Data Report Add WebClass EB Add File Ctrl D E Remove Form1 i o A References Ez Components i Project1 Properties mn 4 2 Choose the lt lt Existing gt gt tab and select ActDefine bas New Existing Look in CX Include vl fe amp l ActDefine bas is stored in User specified folder gt lt Act gt Include at the time of installation File name ActDefine bas Files of type Basic Files
321. ture Opens the communication line 3 Format Visual Basic Visual IRet object Open Long IRet Returned value Output VBScript varRet object Open VARIANT varRet Returned value LONG type Output 4 Explanation The line is connected on the basis of the value set to the property for Open function 5 Returned value Normal termination 0 is returned Abnormal termination A value other than 0 is returned Refer to Chapter 6 ERROR CODES 1 When modem communication is used Open cannot be executed after execution of Connect 2 If the property for Open function is changed after completion of Open the other end of communication is not changed To change the communication settings close the communication line once then set the other end of communication and open the communication line again 3 When any ACT control other than the ActEasylF or ActMLEasylF control is used at the time of Open Open may terminate normally if the CPU type entered into the ActCpuType property differs from the CPU to communicate with In such a case the connection range usable method and device range may be narrowed for example When executing Open set the correct CPU type to the ActCpuT 4 FUNCTIONS MELSOFT 4 2 2 Close Communication line closing 1 Applicable ACT controls This function is available for all ACT controls but the ActSupoort and ActMLSupport controls 2 Feature Closes the communica
322. ual Basic VBA VBScript DO amp vbLf amp CN200 amp vbLf amp D1 When using Visual C DO NCN200 nD1 2 Upper Bytes 2 Lower Bytes 1 H of CN200 L of CN200 1 D1 Example 3 When devices including FD are specified 3 points in all When using Visual Basic VBA VBScript 00 amp vbLf amp FDO amp vbLf amp D1 When using Visual C DO nFDO nD1 Do Example 4 When 8 bit devices including EG have been specified a total of 3 points The following example assumes that 8 bit devices E0000 E0001 of SHARP PLC have been assigned to EGO When using Visual Basic VBA VBScript DO amp vbLf amp EGO amp vbLf amp 01 When using Visual C DO nEGO nD1 2 Upper Bytes 2 Lower Bytes 1 E0001 E0000 1 Not used 0 is stored 2 Lower bits are stored in device number order 3 For CN200 or later of FXCPU 2 words are read from 1 point by random read Returned value Normal termination 0 is returned Abnormal termination Any value other than 0 is returned Refer to Chapter 6 ERROR CODES 4 FUNCTIONS MELSOFT 7 Instructions for checking the word device status When checking the word device status for a negative value of 1 to 32768 FFFFH to 8000 set the monitor device value of EntryDeviceStatus to any of 65535 to 32768 0000FFFFH to 00008000H where 0 s are stored in the upper 2 bytes While the word device of the PLC CPU is of WORD t
323. ue found by dividing the actual I O number by 16 b The buffer values for IWriteSize varWriteSize at the buffer memory address specified in IAddress varAddress in the special function module located at the first O number specified in IStartlO varStartlO are written c When using the Act ML FXCPU control or Act ML LLT control specify the block number 0 to 7 of the special expansion equipment as the module s first number and any of 0 to 32767 as the buffer memory address d Reserve an array of IWriteSize varWriteSize or more for iData IpsData or varData Returned value Normal termination 0 is returned Abnormal termination Any value other than 0 is returned Refer to Chapter 6 ERROR CODES Instructions for read write of data from to buffer memory in multiple PLC system configuration The following phenomena will occur when the function is executed if the actually configured multiple PLC system differs from the I O assignment set using GX Developer Execute the function after checking the I O assignment on GX Developer and checking the I O numbers of the module from to where the value will be read written a An error occurs if the function is executed after the correct I O numbers have been specified b When the specific numbers I O numbers whose I O assignment is actually wrong are specified read from buffer memory can be performed properly but write to buffer memory results in an error error c
324. ult values 1 When there is relayed module in addition to connected station side Q series compatible C24 a Configuration Connected Q series Relayed station CPU compatible C24 module 1 Modem Relayed network ubscriber line Relayed Relayed Modem station CPU module IBM PC AT compatible b Property patterns Connected Relayed Station CPU Q mode Q mode mode CPU MELsECNET O 2 MELSECNET x Computerin x coum l e o lelox Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU c Property list Property Patterns pu ees Oe ip ewe ActATCommand Any value specified by user ActATCommandPasswordCancel Any value specified by user RetryTimes ActATCommandResponseWaitTi eg Any value specified by user unit s 19200 BAUDRATE_9600 BAUDRATE_19200 BAUDRATE_38400 BAUDRATE_5700 ActBaudRate BAUDRATE a a E 200 BAUDRATE_115200 Match to the setting of Q series compatible C24 ActCallbackCancelWaitTime Any value specified by user unit s ActCallbackDelayTime Em Any value specified by user unit s ActCallbackNumber Empty Telephone number of any value specified by user ActCallbackReceptionWaitingTim eOut 9 Any value specified by user unit ActConnectionCDWaitTime Any value specified by user
325. unication function Output hResult object GetDevice szDevice IplRetCode HRESULT BSTR LONG LONG hResult szDevice kIplData kIplRetCode Returned value of COM Output Device name Input Set data Output Returned value of communication function Output 4 FUNCTIONS 4 3 9 ReadBuffer Buffer memory read MELSOFT hResult object ReadBuffer IStartlO IReadSize HRESULT LONG LONG LONG SHORT LONG hResult IStartlO lAddress IReadSize kIpsData kIplRetCode 4 3 10 WriteBuffer Buffer memory write lpsData lplRetCode Returned value of COM Output First O number of module from where Input values will be read Buffer memory address Input Read size Input Values read from buffer memory Output Returned value of communication function Output hResult object WriteBuffer IStartlO Address IWriteSize HRESULT LONG LONG LONG SHORT LONG hResult IStartlO lAddress IWriteSize kIpsData kIplRetCode 4 3 11 GetClockDSata Clock data read lpsData IplRetCode Returned value of COM Output First number of module to where Input values will be written Buffer memory address Input Write size Input Values written to buffer memory Input Returned value of communication function Output hResult object GetClockData lpsYear lpsMonth lpsDayOfWeek lpsMinute lpsSecond lplRetCode HRESULT S
326. ve the event when the registered device condition holds b The device value registered to EntryDeviceStatus enters IData varData Example When the word device is checked for the value 1 Set 65535 0000FFFFH in EntryDeviceStatus as a registered device value When the value of the target word device of the PLC CPU becomes 1 FFFFH OnDeviceStatus is executed and 0000FFFFH enters IData varData 4 FUNCTIONS MELSOFT 5 Returned value None When the following setting has been made in the user application the event of OnDeviceStatus does not occur if the condition of the device registered to the EntryDeviceStatus function is established Note that when the user application is put in an event occurrence waiting state control will not return to the ACT control and device management processing will stop until the following setting is terminated 1 User application created using Visual Basic or VBA Excel a The message box is displayed in the user application b The InputBox OutputBox is displayed in the user application 2 User application created using Visual Basic Visual VBA Excel Access or VBScript a The Sleep processing WaitForSingleObject function or similar standby function is used in the user application 4 FUNCTIONS MELSOFT 4 2 18 ReadDeviceBlock2 Device batch read 1 Applicable ACT controls This function is available for all ACT controls but the ActSupoort and ActMLSupp
327. viding the actual first number by 16 3 DETAILS OF THE ACT CONTROLS MELSOFT 2 When access is made via MELSECNET 10 mode using QCPU Q mode as connected station CPU Operates when both the MELSECNET H board and relayed module are in the MELSECNET 10 mode a Configuration Connected MELSECNET H Relayed station CPU module module Relayed network Relayed Relayed station CPU module IBM PC AT compatible b Property patterns Connected Own Bond Station CPU Relayed Station CPU wn Boar QCPU Relayed Network EEN mode A mode CPU wem Px x mesecno e e olol x MeseoneT x x x x Ethemet Q x x x Computerin x x x ecrin d x x x x Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU c Property list Property Patterns eee ActCpuType SB BOARD CPU type corresponding to target station Target station side Target station side For single CPU For single CPU OxSFF fixed Ox3FF fixed For multiple CPUs For multiple CPUs ActDestinationlONumber Fixed to 0x00 Fixed to 0x00 Connected CPU Ox3FF Connected CPU 0x3FF No 1 0x3E0 No 1 0x3E0 No 2 OX3E1 No 2 OX3E1 No 3 OX3E2 No 3 OX3E2 No 4 0x3E3 No 4 0x3E3 ActDidPropertyBit Fixed to 0x00 Fixed t
328. wer bits are stored in device number order Data are not read from the upper 2 bytes M16 to M31 3 For CN200 and later of the FXCPU specifying 1 point for ReadDeviceRandom2 reads data from the L lower 2 bytes of the specified device Data are not read from the H upper 2 bytes of the specified device 4 FUNCTIONS MELSOFT 6 Returned value Normal termination 0 is returned Abnormal termination Any value other than 0 is returned Refer to Chapter 6 ERROR CODES 1 The maximum number of read points that may be specified in ISize varSize is up to OX7FFFFFFF points 2 For iData IpsData or IpvarData prepare a memory area having the number of points specified in ISize varSize If there is no memory area a critical phenomenon such as an application error may occur 3 When a double word device is specified only the data of the lower 1 word 2 bytes are stored in ReadDeviceRandom2 An error will not occur When reading data from a double word device use ReadDeviceRandom or GetDevice 4 FUNCTIONS MELSOFT 4 2 21 WriteDeviceRandom2 Device random write 1 Applicable ACT controls This function is available for all ACT controls but the ActSupoort and ActMLSupport controls Feature Randomly writes 2 byte data to devices Format Visual Basic VBA IRet object WriteDeviceRandom2 szDeviceList ISize iData 0 Long IRet Returned value Output String szDevicelist Device name Input Long ISize
329. when making access via the Ethernet module series compatible E71 QE71 For ActNetworkNumber and ActStationNumber specify the value set in the parameter setting of the target station side series compatible E71 or QE71 e Set the MNET 10 routing information in the parameter setting of the series compatible E71 or QE71 Also when making setting specify other than the automatic response system any of the IP address calculation system table conversion system and combined system as the MNET 10 routing system 3 DETAILS OF THE ACT CONTROLS MELSOFT 2 When connected station side Q series compatible C24 is used for multidrop link with relayed module a Configuration b Property patterns Connected Q series compatible Station CPU Relayed Station CPU Connected station Multidrop link Q mode mode A mode CPU 1 PARU IBM PC AT compatible Relayed network Independent mode 2 Computer link Relayed Relayed Synchronous station CPU module mode 2 Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU 2 Indicates the CH2 side setting CH1 side fixed to independent mode c Property list ope t De It Value ope ty atterns au alu 19200 ActBaudRate BAUDRATE Match to the setting of Q series compatible C24 19200 ActConnectUnitNumber Connected station side module station number
330. whether ISize varSize of the device group specified in szDeviceList varDeviceList is in the status specified in IplData or varData Specify the check time in IMonitorCycle varMonitorCycle When the status is established the OnDeviceStatus function of the user application is executed 6 Using the line feed symbol separate the devices in the character string specified in the device list The last device need not be followed by the line feed symbol Example Visual Basic VBA VBScript DO amp vbLf amp D1 amp vbLf amp D2 Visual DO nD1 nD2 c The maximum number of device points that may be specified in ISize varSize is 20 points 4 34 4 34 4 FUNCTIONS 6 MELSOFT d In IMonitorCycle varMonitorCycle specify a value within the range 1 second to 1 hour set between 1 to 3600 in seconds Specifying any other value outside the above range will result in an error e Store the registered device value list in IplData or varData Device specifying methods Specify the devices in the following methods Example 1 When devices are specified as follows 3 points When using Visual Basic VBA VBScript MO amp vbLf amp DO amp vbLf amp K8MO When using Visual C MO nDO nK8MO 2 Upper Bytes 2 Lower Bytes 1 MO 1 DO M16 to M31 2 MO to M15 2 Example 2 When devices including CN200 and later of FXCPU are specified points in all 3 When using Vis
331. workNumber Fixed to 0x00 Fixed to 0x00 9 0 00 network number 1 Board No of IBM PC AT compatible side CC Link board PORT_1 PORT 1 to PORT 4 first to fourth boards 255 Target station side CC Link Target station side module ActStationNumber Fixed to OxFF 9 9 module station number station number 0 Target station side CC Link ActUnitNumber Fixed to 0x00 Fixed to 0x00 9 0x00 module station number 3 DETAILS OF THE ACT CONTROLS MELSOFT 4 When connected station CPU is ACPU a Configuration Connected Relayed station CO Link module module Relayed network Relayed Relayed station CPU module IBM PC AT compatible b Property patterns Connected Station CPU Relayed Station CPU ACPU x 1 QCPU QCPU QnA ACPU FXCPU Q mode A mode CPU x1 Ehemt x x x x x Accessible Property pattern within circle x Inaccessible 1 Including motion controller CPU MELSECNETAO x x x x x s a weusecneray x x x x x x x c Property list Property Patterns 1025 0 0 ActlONumb Fixed to 0x00 umber 0x00 0 ActNetworkNumber Fixed to 0x00 potewensumoer 0x00 1 Board No of IBM PC AT compatible side CC Link board PORT_1 PORT 1 to PORT 4 first to fourth boards 255 ActStationNumber OxFF Fixed to OxFF Target station side module station
332. x04051003 Reinstall MX Component the Device Intermediate Code to Device Inform the telephone center of our company Character String on Exit the program and restart the IBM PC AT compatible Abnormal Character String Specified error 0x04052001 Reinstall MX Component Device character string specified is incorrect Inform the telephone center of our company Exit the program and restart the IBM PC AT compatible Device Points Error 0 04052002 Reinstall MX Component Device points are out of range Inform the telephone center of our company Other Errors Exit the program and restart the IBM PC AT compatible The errors generated during the conversion of 0x04052003 Reinstall MX Component the Device Character String to Device Inform the telephone center of our company Representation Code Device Representation Error Exit the program and restart the IBM PC AT compatible 0x04053001 The classification specified for the device Reinstall MX Component intermediate code is incorrect Inform the telephone center of our company Device Representation Error c Exit the program and restart the IBM PC AT compatible The classification specified for the extended 0x04053002 ORAS 2 Reinstall MX Component specification device intermediate code is Inform the telephone center of our company incorrect 6 ERROR CODES MELSOFT Error Code Error Definition Device Represe
333. xecuting Connect Or execute Disconnect again after executing Connect Exit the program Restart the IBM PC AT compatible Reinstall MX Component Inform the telephone center of our company Check the telephone numebr and the portnumebr Check the Connect way 6 ERROR CODES MELSOFT Error Definition There is an error response from the target telephone OxF2000002 Causes can be the following Communication error has occurred Invalid data was received Causes can be the following OxF2000003 Communicated with a device other than A Q 6TEL C24 There is no response from the modem Causes can be the following 0 2000004 1 Abnormality in the modem Telephone number setting mistake The PC modem did not receive the AT command OxF2000006 Causes can be the following Invalid AT command was specified Abnormality in the modem Modem did not respond properly to the standard 0xF2000007 escape command Incorrect data packet received due to noise Check the value of the properties set in case of program settings type and check the contents of the detailed settings that were set using the wizard in case of utility settings type Retry Check the communication device used at the other end Check the status of the modem Check the telephone number If the problem persists even after checking the above points change the value of the properties set Properties such as ActConnectionCDWaitTime etc
334. y Abnormal Device Name error Exit the program and restart the IBM PC AT compatible 0x04065002 The classification for the intermediate code of Reinstall MX Component the extended specification device is incorrect Inform the telephone center of our company Other Errors Exit the program and restart the IBM PC AT compatible 0x04065003 Other errors generated during the conversion of Reinstall MX Component the device name to Intermediate code Inform the telephone center of our company Device Intermediate Code Error Exit the program and restart the IBM PC AT compatible 0x04066001 The intermediate code for the device is Reinstall MX Component incorrect Inform the telephone center of our company Other Errors Exit the program and restart the IBM PC AT compatible Other errors generated during the conversion of 0x04066002 A23 Reinstall MX Component the device intermediate code to device Inform the telephone center of our company representation code Device Representation Error Exit the program and restart the IBM PC AT compatible 0x04067001 The classification specified for the intermediate Reinstall MX Component code of the device is incorrect Inform the telephone center of our company Device Representation Error Exit the program and restart the IBM PC AT compatible 0x04067002 The classification for the intermediate code of Reinstall MX Component the extended specification device is incorr
335. y sett Power on the IBM PC AT compatible and start Windows Install MX Component tern Make settings using the Utility setting type MELSOFT When using Visual Basic create a user application in the following procedure Refer to the operating manual startup ing type Program setting type um m Start Visual Basic Start the communication settings utility and make communication settings in accordance with the wizard Add the ACT controls to _ Refer to the operating manual Visual Basic Start Visual Basic Refer to Create a form and paste the ACT controls 1 Register the ACT control to Section 2 1 1 for corresponding communication Visual Basic Set only the logical ge SS ss sys See Set the property of the pasted control Refer to the Set the properties of the pasted Create a form and paste the ACT ACT controls control to the form ActEasylF control station number operating manual Perform programming using corresponding ACT control the functions offered by the Refer to Chapters 3 4 Perform debugging using the PLC monitor utility Completion of user application Refer to the operating manual Refer to Section 2 1 1 Refer to the operating manual 2 ABOUT THE ACT CONTROLS MELSOFT 2 2 2 When using Visual C When using Visual C c
336. y the prooduct model number of the GOT 4 FUNCTIONS MELSOFT 6 Type code list PU N k Board GOT CPU Network Board GOT Hoan When CPU own When GX Simulator Tus When CPU own GX Simulator board is connected is connected board is connected is connected A2ACPUP21 R21 S1 93 x x 83 82 83 82 43H 82 44H 94 i zE oo a zx de dE PALO p KE o EX T 3E 56 I L A3 A3 84 84 A273UHCPU S3 90 90 90 90 90 84 90 ASH Q80BD J71LP21G 90 90 a 26 ps 25 Eat Es E A 1 When using the TCP IP of the E71 or QE71 refer to the manual of the corresponding module 2 When access to the ANUCPU QnACPU QCPU A mode or A273UHCPU S3 is made from the C24 or E71 the type code equivalent to that of the AnACPU is returned 92H 93H 94H 4 30 4 30 4 FUNCTIONS MELSOFT 3 When access to the ANUCPU QnACPU QCPU A mode or A273UHCPU S3 is made from the C24 E71 or UC24 via the network the type code equivalent to that of the ANACPU is returned 92H 93H 94H 4 When access to the ANUCPU QCPU A mode or A273UHCPU S3 is made from the AnNCPU or AnACPU via the network by CPU COM communication the type code equivalent to that of the AnACPU is returned
337. ype the monitor device value of EntryDeviceStatus is of LONG type Therefore when the current value of the PLC CPU is compared with the monitor device value of EntryDeviceStatus they do not become the same value and the above setting is required When a bit device or double word device is used this instruction does not apply For the programming example on this instruction refer to Appendix 2 Programming Example for Checking the Word Device Status Example When checking the DO status for 10 As the monitor device value set the value 65526 0000FFF6H where 0 5 are stored in the upper 2 bytes of 10 FFFFFFF6H 4 FUNCTIONS MELSOFT 1 Device status monitoring may not be performed at the specified status monitor time intervals depending on such conditions as the personal computer performance currently executed application load and time required for communication with the PLC Simultaneous use of any other ACT control function would also be the cause of disabling device status monitoring at the specified status monitor time intervals 2 For IData IplData or IpvarData prepare a memory area having the number of points specified in ISize varSize If no memory area is available a serious phenomenon such as an application error may occur 8 Execution of EntryDeviceStatus during status monitoring will result in an error When changing any status monitor condition execute FreeDeviceStatus and then execute EntryDeviceS
Download Pdf Manuals
Related Search
Related Contents
Ecualizador Gráfico Digital Estéreo y Procesador Manual - Amazon Web Services R55_07_14-Lohr_on_Annex 8 取扱説明書 - エー・アンド・デイ Hotpoint EG71 User's Manual Philips HP6306 Paso 1: Desempaque Paso 2: ¡Cárguelo! Paso 3 UTILISATEURS : DOMAINE D`UTILISATION - E Program Grapher User Manual D`IMPACT EN LIGNE D`IMPACT Copyright © All rights reserved.
Failed to retrieve file