Содержание CONPROSYS nano CPSN-PCB271-S1-041

Страница 1: ...PSN PCB271 S1 041 Introduction 5 Safety Precautions 11 Set the Computer Network 15 CONPROSYS nano WEB Setting 21 CODESYS Installation 49 Basic Programming 55 Programing with CODESYS 76 Maintenance 133...

Страница 2: ...ork 17 1 Computer Network Setting Procedure for Windows 10 17 3 Check Communication 20 CONPROSYS nano WEB Setting 21 1 CONPROSYS nano WEB Setting Outline 22 1 Setup Using a Web Browser 22 2 Setting th...

Страница 3: ...Download and run program 64 7 Save the PLC program into ROM 65 8 Delete the PLC program saved in ROM 67 9 If an error occurs under the CODESYS development environment 68 4 Interface definition per mo...

Страница 4: ...type 107 4 Function details 108 5 Sample 113 5 PLC program data retention 123 1 PERSISTENT Variable Definition 123 2 Sample 124 6 Control Flow of I O Module 125 1 CPSN DI 16BCL 125 2 CPSN CNT 3201I 12...

Страница 5: ...5 Introduction This section provides necessary information of the product such as the product configuration and manuals before actual use...

Страница 6: ...uct is ready to use Connect with a PC Refer to Page 16 Set up the network of PC Refer to Page 17 Set up with CONPROSYS nano WEB Setting Refer to Page 21 Set Password Refer to Page 26 Save the settings...

Страница 7: ...the I O module with CPU Unit This describes the hardware aspects such as functions and settings of the I O module Download from the CONTEC website PDF Reference Manual for CPSN PCB271 S1 041 Hardware...

Страница 8: ...running the product visit our website to check the firmware version and update to the latest one if necessary Updating firmware to the latest version will resolve troubles and stabilize the operation...

Страница 9: ...product This product is a CPU unit with RS 232C LAN interface and four expansion slots and supports CODESYS programming and Modbus Master Configurable I O modules of the CONPROSYS nano series can be...

Страница 10: ...3 standard and supports all standard programming languages such as ST or LD Compatible with Modbus TCP Master and Modbus RTU Master 1 Modbus is a communication protocol widely adopted in the industria...

Страница 11: ...11 Safety Precautions Understand the following definitions and precautions to use the product safely Never fail to read them before using the product...

Страница 12: ...s Understand the meanings of these labels to operate the equipment safely DANGER DANGER indicates an imminently hazardous situation which if not avoided will result in death or serious injury WARNING...

Страница 13: ...using the product continuously be sure to read the manual in the CONTEC s website and understand the contents Do not modify the software CONTEC will bear no responsibility for any problems etc resulti...

Страница 14: ...rms unintended operations 2 Security measures e g Do not keep using the default password Refer to the product manual for the password setting Set a strong password Combined with upper and lowercase le...

Страница 15: ...15 Set the Computer Network This section describes how to connect the product with a PC set the network and check the communication...

Страница 16: ...the network between the PC and the product in order to establish communication First connect the product with the PC 1 Follow the instructions below to connect the computer the controller and the powe...

Страница 17: ...e network to make the IP addresses as shown The product must set a unique IP address for the bold part 200 or 101 that is not used by other devices on your network If proxy is set to your PC do not us...

Страница 18: ...CPSN PCB271 S1 041 Reference Manual Software 18 3 Double click the appeared Ethernet 4 Click the Property in Ethernet Status dialog box 5 Double click the Internet protocol version 4 TCP IPv4 in Ether...

Страница 19: ...CB271 S1 041 Reference Manual Software 19 6 In the Internet protocol version 4 TCP IPv4 property set IP address and Subnet mask as shown below 7 Click the OK the OK the Close to close the dialog box a...

Страница 20: ...pears enter it and click the Login Refer to Setup Using a Web Browser page 22 for details of compatible web browser For an actual operation change Password in Settings System on CONPROSYS nano WEB Set...

Страница 21: ...21 CONPROSYS nano WEB Setting This section describes the product system and functions...

Страница 22: ...e the JavaScript function in the browser setting as it is used 2 Setting the Browser You may have to change the browser settings as well as the IP address and subnet mask for the PC to be connected to...

Страница 23: ...he PC connected with this product Enter the IP address 10 1 1 101 of the controller in the address bar and press the Enter key The dialog box asking for the Password appears enter it and click the Log...

Страница 24: ...CONPROSYS nano WEB Setting Page Structure Click the menu item on the left side of the screen This opens a page to set the details of the menu on the right side of the screen Menu Composition The menu...

Страница 25: ...play the system information such as firmware version serial number and MAC address Page 35 Log Show the log recorded by this product Page 37 Maintenance Firmware Update Update the firmware Page 39 Con...

Страница 26: ...s subnet mask default gateway language and password IP Address Set the IP address for this product Setting IP address Default 10 1 1 101 Subnet Mask Set the subnet mask for this product Setting Subnet...

Страница 27: ...ere this product is used Setting 12 00 13 00 Default 09 00 Password Password check Set a password to log in the product 1 to 31 of one byte alphanumeric letters _ underline and hyphen are usable and i...

Страница 28: ...data transmission CPSN COM 1PD Setting Full Duplex Half Duplex Default Full Duplex Digital Filter Set the digital filter CPSN DI 16BCL Setting 0 OFF 1 to 1000ms Default 1ms CPSN CNT 3201I Setting 0 1...

Страница 29: ...hannels to use Select the channel number to be used CPSN AI 2408LI Setting CH0 CH7 Default Use all CPSN SSI 4C Setting CH0 CH3 Default Use all Input Data Range Set the valid range of input data Values...

Страница 30: ...8 msec Power Supply Noise Rejection Enabled 59 9 msec 50 msec 40 msec 36 7 msec Default 40 msec Sensor Type Set the sensor type CPSN SSI 4C Setting Type J Type K Type E Type N Type R Type S Type T Def...

Страница 31: ...nput Synchronous Clear Multiply by 2 2 phase Input Synchronous Clear Multiply by 4 2 phase Input Asynchronous Clear Multiply by 1 2 phase Input Asynchronous Clear Multiply by 2 2 phase Input Asynchron...

Страница 32: ...ing Positive logic active high Negative logic active low Default Positive logic active high One shot Pulse Width Set the one shot pulse width When the count value matches the counter comparison value...

Страница 33: ...twork Time Function By enabling the network time function and setting the IP address and time zone of the NTP server the time of this product can be synchronized with the network time Setting Disabled...

Страница 34: ...ormation as a file set to Enabled To only temporarily retain the recorded log information in memory set to Disabled Temporary retention means the log information is retained only while the device is r...

Страница 35: ...rial number and MAC address Loader Version Shows the loader version Firmware Version Shows the firmware version Serial Number Shows the serial number MAC Address Shows the MAC address IP Address Shows...

Страница 36: ...Operating The state of the device indicates that it is accessible Initialization Error An error occurred during the initialization process Check the hardware or software settings again System Error A...

Страница 37: ...orded in the log is detailed below Category Log content Description Category Event System SYSTEM Start Start of the device LAN ETHER Link Up LAN link up Link Down LAN link down CODESYS CODSYS Start St...

Страница 38: ...ROSYS nano WEB Setting CPSN PCB271 S1 041 Reference Manual Software 38 Category Log content Description Category Event Network Time NTP Time Set Time was set User USER Manual Reset Restart by administ...

Страница 39: ...es about 15 seconds to complete the uploading and updating The screen display is changed upon completion After the completion reboot the product to enable the rewritten firmware If updating fails chec...

Страница 40: ...he configuration file of the product Click the Browse button and select the file to upload Then click the Update button to start uploading From the moment the Update button is clicked it takes about a...

Страница 41: ...y the hour 24hour time the minute and the seconds and then click the update button When the month and day are a single digit a 0 is added and they are displayed as two digits You can enter the values...

Страница 42: ...the default settings At this time select with the radio button to also restore the IP addresses including subnet mask to the defaults or to leave them as they are Then click the Default button Even wh...

Страница 43: ...Select the Delete the PLC program stored on ROM area and click the Execute button PWR RUN and STS of LEDs on the front of the product keep flashing simultaneously until writing has been completed Uplo...

Страница 44: ...ano WEB Setting CPSN PCB271 S1 041 Reference Manual Software 44 12 Save Reboot Save the configured settings before rebooting the product In a pop up dialog box click OK to save the settings and reboot...

Страница 45: ...WEB Setting CPSN PCB271 S1 041 Reference Manual Software 45 13 Save Save the configured settings In a pop up dialog box click OK to save the settings The saved settings will be available after reboot...

Страница 46: ...CONPROSYS nano WEB Setting CPSN PCB271 S1 041 Reference Manual Software 46 14 Reboot Reboot the product In a pop up dialog box click OK to reboot the product...

Страница 47: ...a pop up dialog box click OK to shut down the product When the shutdown is completed the PWR of LED will be off also RUN and STS of LED will start flashing These LED states allow you to turn off the...

Страница 48: ...nano WEB Setting CPSN PCB271 S1 041 Reference Manual Software 48 16 Logout Log out of the product In a pop up dialog box click OK to log out Perform this to exit when you do not reboot or shut down t...

Страница 49: ...49 CODESYS Installation This section describes the CODESYS installation procedure...

Страница 50: ...ESYS development environment can be downloaded from the CODESYS website 2 Through Web browser access to the CODESYS Store Click 1 the Download button The CODESYS is consistently upgraded Make certain...

Страница 51: ...nce Manual Software 51 4 In the Registered Customers enter Email Address and Password to log in After log in click the Download to start downloading 5 Decompress the downloaded file and execute the se...

Страница 52: ...e Enter the product name or specify the category Remote I O nano series and click the Search Select and click the product driver Download https www contec com 2 Download the CODESYS Package 3 Run the...

Страница 53: ...of this controller with Ethernet cable 2 Power on the controller 3 Change network setting for PC LAN port of this product is set to 10 1 1 101 as a factory default and Subnet mask is 255 0 0 0 as a f...

Страница 54: ...set through web browser Refer to Set the Computer Network page 15 for detailed settings of ID address 4 Use the ping command and confirm that PLC controller is connected with the PC Open Command promp...

Страница 55: ...55 Basic Programming This section describes basic procedure to operate this product with CODESYS...

Страница 56: ...asic screen display of CODESYS is viewed as below 1 Device window Device Configuration window Double click the Device CODESYS Control CONTEC CPSN PCB271 S1 icon on Device window to open Device Configu...

Страница 57: ...them with Conditional expression or To comment out one line add at the beginning Assignment expression Assign a value to variable DO0 1 Variable Value indicates assigning a value to variable Add at t...

Страница 58: ...e StartFlag is True then execute the routine placed between END_IF Conditional expression CASE OF Determine a condition then execute or skip routine CASE State OF 0 Routine 1 1 Routine 2 END_CASE If t...

Страница 59: ...2 In the New Project dialog select 1 Projects from the Categories and 2 Standard project from the Templates Specify the 3 Name and the 4 Location of the project then click the OK 3 In the Standard Pro...

Страница 60: ...the 1 Device CODESYS Control CONTEC CPSN PCB271 S1 icon to open Device Configuration window Select the 2 Communication Settings in the Device tab 2 Enter 10 1 1 101 into the 3 Combo box then press Ent...

Страница 61: ...ick on the controller of CODESYS device window and select the Add device 2 In the dialog box select the I O module you wish to add and click the Add device button I O modules are located under the tre...

Страница 62: ...ost of other I O modules or I O in the different controllers 1 Add CPSN DO 08BL as demonstrated in the previous page Add I O modules page 61 and double click the icon on the device window I O function...

Страница 63: ...C_PRG PRG icon on the device window to open the ST Editor window 2 In the Program of ST Editor window write the following source code DO0 1 As variable DO0 is defined in output bit 0 in the CPSN DO 08...

Страница 64: ...reate a program and build page 63 is completed log in from Online Login on CODESYS menu 2 Click the Yes in the download confirmation dialog 3 Select the Start in the Debug menu to operate the program...

Страница 65: ...1 1 Start the Web browser on the PC connected with the controller and enter http 10 1 1 101 the IP address of the PLC controller in the address field See Set the Computer Network page 15 for connectin...

Страница 66: ...th the controller and enter http 10 1 1 101 the IP address of the PLC controller in the address field See Set the Computer Network page 15 for connecting controller 5 Enter password mcb271 to log in 6...

Страница 67: ...edure of the Save the PLC program into ROM page 65 to save the PLC program The program is deleted upon completion of the process How to delete 2 1 Start the Web browser on the PC connected with the co...

Страница 68: ...not download missing libraries 1 On the Device window double click the Library Manager icon to open Library Manager window 2 See whether Download missing libraries is displayed or not on the menu bar...

Страница 69: ...input method input method Single ended Differential Single ended Analog input range input range 10V to 10V 5V to 5V 2 5V to 2 5V 0 to 10V 20mA to 20mA 10V to 10V 2 I O Mapping I O Mapping conducted r...

Страница 70: ...ta x Span 212 Off set Input current mA Measurement data x Span 212 Off set Analog input range Span Off set 10V 20 10 5V 10 5 2 5V 5 2 5 0 10V 10 0 20mA 40 20 The table below is the conversion example...

Страница 71: ...2bit 16 W Count value setting count value output channel 0 15 32bit 16 W Counter set flag counter set flag output bit 0 15 16bit 1 W 0 No operation 1 Set 2 1 Changing the bit corresponding to the chan...

Страница 72: ...10V 10 0 0 5V 5 0 0mA 40 20 0 20mA 20 0 The table below is the conversion example when analog input range is set to 10V Input voltage V Analog input range h 9 999998 00FFFFFF 0 000001 00800001 0 00000...

Страница 73: ...1 1024 000001 00000001 0 000000 00000000 1 1024 FFFFFF FFFFFFFF 1 FFFC00 FFFFFC00 273 15 FBBB67 FFFBBB67 2 Temperature data are values obtained by converting the lower 24 bits D0 to D23 of SSI data t...

Страница 74: ...0 1 16bit 2 W 1 3 Status data analog status input channel 0 1 16bit 2 R 4 Analog output data Industrial value analog output industrial value channel 0 1 32bit 2 W 2 3 1 The analog output data are set...

Страница 75: ...tch status input bit 8bit 1 R 0 not detected 1 detected Counter status counter status input channel 8bit 1 R 0 not detected 1 detected Count operation count operation output bit 8bit 1 W 0 Stop 1 Star...

Страница 76: ...76 Programing with CODESYS This section describes the CODESYS programming procedure per function...

Страница 77: ...roller Use COM port within the controller 2 Create a Project Create a new CODESYS project Choose ST for IEC program language See Create a New Project page 59 for how to create the project 3 Serial Com...

Страница 78: ...o open the ST editor window 2 When ST editor window appears write the following source code between VAR and END_VAR in the Variable declaration StartFlag BOOL TRUE State INT 0 Com1Params ARRAY 1 7 OF...

Страница 79: ...udiTimeout Com1Params 5 udiValue 0 Com1Params 6 udiParameterId COM CAA_Parameter_Constants udiByteSize Com1Params 6 udiValue 8 Com1Params 7 udiParameterId COM CAA_Parameter_Constants udiBinary Com1Pa...

Страница 80: ...tion state 4 Select Debug Start and the program operation will start The character string Test String will be shown on the PC terminal monitor 5 Create a reception program Create a Program 1 Double cl...

Страница 81: ...e INT_TO_UDINT COM STOPBIT ONESTOPBIT Com1Params 5 udiParameterId COM CAA_Parameter_Constants udiTimeout Com1Params 5 udiValue 0 Com1Params 6 udiParameterId COM CAA_Parameter_Constants udiByteSize Com...

Страница 82: ...Reference Manual Software 82 Error TRUE END_IF IF Com1Close xDone OR Com1Close xError THEN State 1000 END_IF 1000 StartFlag FALSE END_CASE END_IF 4 Now see whether you can execute Rebuild in CODESYS...

Страница 83: ...Enter a break point in a reception function of program source cord In the line calling Com1Read function select Debug New break point 5 Select Debug Start and the program operation will start The prog...

Страница 84: ...odbus Slave Following is an example case when the CPSN MCB271 S1 041 containing the CPSN DO 08BL and CPSN DI 08BL in the slots is used as Modbus Slave Connect the CODESYS Developing PC with the contro...

Страница 85: ...2 In the dialog box select Fieldbuses Ethernet Adapter Ethernet and click Add Device button Add Modbus Master Slave device 1 Right click on the Ethernet on the device window and click Add Device 2 Add...

Страница 86: ...in the list Modbus TCP Master Device setting When it is not connected to the slave and intend to run the re connection process check off the Auto reconnect However if communication with the slave can...

Страница 87: ...1 Reference Manual Software 87 Modbus Slave setting 1 On the Device window double click the Modbus_TCP_Slave icon to open Device Configuration window 2 Open General tab 3 Into Slave IP Address enter I...

Страница 88: ...ox select Fieldbusses Modbus Modbus Serial Port Modbus COM and click Add Device button Add Modbus Master Slave device 1 Right click on the Modbus_COM on the device window and click Add Device 2 Add Fi...

Страница 89: ...aster COM Port Device setting When it is not connected to the slave and intend to run the re connection process check off the Auto restart Communication However if communication with the slave cannot...

Страница 90: ...1 041 Reference Manual Software 90 Modbus Slave setting 1 On the Device window double click the Modbus Slave COM Port icon to open Device Configuration window 2 Open General tab 3 Set parameters requi...

Страница 91: ...s Channel Function Code Address Data I O Module 0 Read Discrete Inputs Code 2 0 to 7 Digital input bit 0 to 7 CPSN DI 08BL 1 Write Single Coil Code 5 0 Digital output bit 0 CPSN DO 08BL 2 1 Digital ou...

Страница 92: ...te Single Coil Function Code 5 from Access Type enter 0 in Offset of WRITE Register then click OK 5 Click Add Channel button Select Write Single Coil Function Code 5 from Access Type enter 1 in Offset...

Страница 93: ..._PRG PRG icon on the device window to open the ST editor window 2 When ST editor window appears write the following source code between VAR and END_VAR in the Variable declaration indata BYTE 3 Write...

Страница 94: ...Rebuild in CODESYS Build menu to confirm the process succeeds 7 Download and run program 1 Select Online Login on CODESYS menu 2 Click Yes in the download confirmation dialog 3 Select Debug Start and...

Страница 95: ...e CPSN DO 08BL and CPSN DI 08BL in the slots is used as Modbus Slave and QModMaster is used as software of Modbus Master QModMaster can be downloaded free through the URL below http sourceforge net pr...

Страница 96: ...on the controller of the device window and select Add Device 2 In the dialog box select Fieldbuses Ethernet Adapter Ethernet and click Add Device button Add Modbus Slave device 1 Right click on the E...

Страница 97: ...1 Reference Manual Software 97 Ethernet Adapter setting 1 On the Device window double click the Ethernet icon to open the Device Configuration window 2 Open General tab 3 Click the button next to Inte...

Страница 98: ...the controller of the device window and select Add Device 2 In the dialog box select Fieldbusses Modbus Modbus Serial Port Modbus COM and click Add Device button Add Modbus Slave device 1 Right click...

Страница 99: ...S1 041 Reference Manual Software 99 Modbus serial port setting 1 On the Device window double click the Modbus_COM icon to open the Device Configuration window 2 Open General tab 3 Set parameters requi...

Страница 100: ...window double click the CPSN DO 08BL icon to open the Device Configuration window 2 Open Internal I O Mapping tab 3 Allocate variable DO0 to Bit0 line and variable DO1 to Bit1 line in Channel row 4 On...

Страница 101: ...w double click the Modbus Slave device icon to open Device Configuration window 2 Open I O Mapping tab 3 Allocate mDO0 mDO1 respectively to Bit0 and Bit1 in Inputs 0 as well as mDI0 and mDI1 respectiv...

Страница 102: ...is copied from the I O variable to the Modbus variable Create a Program 1 Double click the PLC_PRG PRG icon on the device window to open the ST editor window 2 Write the following source code in Progr...

Страница 103: ...s Master This section describes how to use QModMaster as Modbus Master software Basic operation 1 Start QModMaster 2 Choose Modbus protocol to use in Modbus Mode 3 On the Option menu set parameters fo...

Страница 104: ...ave device For reading the value input from Modbus Slave device is displayed in this area In case of digital output Following is an example case of outputting 1 into digital outbit 0 of CPSN DO 08BL 1...

Страница 105: ...05 In case of digital input Following is an example case of inputting digital input bit 0 1 Click Connect icon 2 Choose Read Discrete Inputs 0x02 in Function Code and set 0 in Start Address 3 Click Sc...

Страница 106: ...vice window 2 Click Add Library and choose CONTEC File Access Library under Miscellaneous then Click OK 2 Function list Name Function CFA_FileAccess Controll access to the specified area CFA_FileOpen...

Страница 107: ...This indicates the file already exists READ_ONLY_FS 6 File writing was executed on the mounted reading only device NOT_MOUNT 7 This indicates nothing is mounted GENERAL_ERROR 8 This indicates a gener...

Страница 108: ...n TRUE This permits writing FALSE This prohibits writing Output value Name Data type Meaning eError ERROR This indicates an error code CFA_FileOpen Operating functions This opens a file in the specifi...

Страница 109: ...s that are open Input value None Output value Name Data type Meaning eError ERROR This indicates an error code CFA_FileRead Operating functions This reads data from a file Input value Name Data type M...

Страница 110: ...is specifies the number of data to write Output value Name Data type Meaning eError ERROR This indicates an error code CFA_FileSeek Operating functions This moves a file pointer to the specified posit...

Страница 111: ...store strings szString 1 is the number of maximum characters Specify a sufficient size to include carriage return Output value Name Data type Meaning eError ERROR This indicates an error code szSize...

Страница 112: ...ions This separates a string with a delimiter Input value Name Data type Meaning pszString POINTER TO STRING This specifies an address to separate a string pszSeparator POINTER TO STRING This specifie...

Страница 113: ...eOpen CFA_FileClose CONTEC_File_Access_Library CFA_FileClose CFA_FileWrite CONTEC_File_Access_Library CFA_FileWrite Program CASE uiState OF 0 CFA_FileAccess eArea eAreaType CFA_FileAccess bMount TRUE...

Страница 114: ...th CODESYS CPSN PCB271 S1 041 Reference Manual Software 114 uiState 4 4 CFA_FileAccess eArea eAreaType CFA_FileAccess bMount FALSE CFA_FileAccess bWriteEnable FALSE CFA_FileAccess eError eError uiStat...

Страница 115: ...ileOpen CFA_FileClose CONTEC_File_Access_Library CFA_FileClose CFA_FileRead CONTEC_File_Access_Library CFA_FileRead Program CASE uiState OF 0 CFA_FileAccess eArea eAreaType CFA_FileAccess bMount TRUE...

Страница 116: ...Reference Manual Software 116 uiState 3 END_IF 3 CFA_FileClose hFile hFile eError eError uiState 4 4 CFA_FileAccess eArea eAreaType CFA_FileAccess bMount FALSE CFA_FileAccess bWriteEnable FALSE CFA_Fi...

Страница 117: ...A_FileSeek CONTEC_File_Access_Library CFA_FileSeek Program CASE uiState OF 0 CFA_FileAccess eArea eAreaType CFA_FileAccess bMount TRUE CFA_FileAccess bWriteEnable FALSE CFA_FileAccess eError eError IF...

Страница 118: ...Programing with CODESYS CPSN PCB271 S1 041 Reference Manual Software 118 5 END_CASE...

Страница 119: ...ccess_Library CFA_FileAccess CFA_FileDelete CONTEC_File_Access_Library CFA_FileDelete Program CASE uiState OF 0 CFA_FileAccess eArea eAreaType CFA_FileAccess bMount TRUE CFA_FileAccess bWriteEnable TR...

Страница 120: ...CONTEC_File_Access_Library CFA_FileAccess CFA_FileOpen CONTEC_File_Access_Library CFA_FileOpen CFA_FileClose CONTEC_File_Access_Library CFA_FileClose CFA_FilePutLine CONTEC_File_Access_Library CFA_Fil...

Страница 121: ...sStringLeft iIndex 0 sStringRight iIndex 0 END_FOR CFA_FileGetLine pszString ADR sStringData3 CFA_FileGetLine szString 256 CFA_FileGetLine hFile hFile szSize szSize eError eError IF eError 0 THEN IF...

Страница 122: ...Programing with CODESYS CPSN PCB271 S1 041 Reference Manual Software 122...

Страница 123: ...of PERSISTENT variables CAUTION Data could not be saved depending on the timing of battery expiration 1 PERSISTENT Variable Definition 1 Right click on the Application on the device window and click...

Страница 124: ...1 second cycle After rebooting the usual variable is initialized and PERSISTENT variable is counted continuously Variable declaration tTimer TON Counter DWORD PERSISTENT variable declaration Counter...

Страница 125: ...6 Control Flow of I O Module This part illustrates a flow of I O module control 1 CPSN DI 16BCL Basic Control Flow Counter input cannot be used in the initial state To use the counter input set the c...

Страница 126: ...dure of detecting count match or carry The status register and reset register in the flow correspond to each register of count match and carry Changing the bit corresponding to the channel from 0 to 1...

Страница 127: ...setting a count value Set a value in the counter setting register first Then change the bit in the counter setting flag register from 0 to 1 When setting the same value it can be done by simply settin...

Страница 128: ...F 0 CNT_COMP_SET 0 100 CNT_VALUE_SET 0 0 CNT_VALUE_SET_FLAG 16 0001 uiState 1 1 CNT_VALUE_SET_FLAG 16 0000 CNT_START 16 0001 uiState 2 2 dwCntValue CNT_VALUE 0 wMatchStatus CNT_MATCH_STATUS AND 16 000...

Страница 129: ...71 S1 041 Reference Manual Software 129 2 CPSN CNT 3201I Basic Control Flow Counter input cannot be used in the initial state To use the counter input set the comparison value or counter initial value...

Страница 130: ...es the procedure of detecting count match The status register and reset register in the flow correspond to the count match register Changing the bit corresponding to the channel from 0 to 1 resets the...

Страница 131: ...setting a count value Set a value in the counter setting register first Then change the bit in the counter setting flag register from 0 to 1 When setting the same value it can be done by simply settin...

Страница 132: ...E uiState OF 0 CNT_COMP_SET 100 CNT_VALUE_SET 0 CNT_VALUE_SET_FLAG 16 01 uiState 1 1 CNT_VALUE_SET_FLAG 16 00 CNT_START 16 01 uiState 2 2 dwCntValue CNT_VALUE wMatchStatus CNT_MATCH_STATUS AND 16 01 I...

Страница 133: ...133 Maintenance This section describes how to perform maintenance on the product...

Страница 134: ...ile as a backup file The saved file can be recovered in the same setting in case of accident FIRMWARE BIN is a binary file though other files can be viewed in a text editor since they are text files I...

Страница 135: ...and log into this product by FTP command User name Any Password The one you set in the product Factory default is mcb271 2 Transfer a necessary file 3 Finish FTP command The example below follows the...

Страница 136: ...tting 1 Procedure 1 Start the command prompt and log into this product by FTP command User name Any Password The one you set in the product Factory default is mcb271 2 Transfer a necessary file 3 Ente...

Страница 137: ...137 Troubleshooting This section describes how to check and solve the troubles when the product does not function properly...

Страница 138: ...flashing when communication is in progress via the network port Use the ping command from a host computer and see whether the server unit responds Ping the IP address of the server unit The server un...

Страница 139: ...the password of this product you can restore the default settings by using push switch For details on how to operate the push switch refer to Appendix 5 Push Switch SW page151 CAUTION This also initi...

Страница 140: ...140 Appendix This section describes additional information of specification and the product...

Страница 141: ...3 5 12 20 3 5 14 30 Language LD SFC FBD ST IL CFC IEC61131 3 complied Field bus Modbus TCP Master Slave Modbus RTU Master Slave 1 Program size ROM size 1MB Maximum steps 250K steps CPU basic performan...

Страница 142: ...Digital output 8ch CPSN DO 08BL Digital output 8ch CPSN AI 1208LI Analog input 8ch CPSN COM 1PD RS 422A 485 Serial communication 1ch CPSN DO 08RL 5 Digital output 8ch CPSN DO 08BRL 5 Digital output 8c...

Страница 143: ...2bit 1 bit Flow control None Hardware RTS CTS None Transmit receive FIFO size 3 Each 16 bytes 2 The values that can be set depend on the specification of the CODESYS 3 If the connected device transmit...

Страница 144: ...Single ended input 8 channels Differential input 4 channels CPSN COM 1PD Item Contents Default Baud rate 1 300 600 1200 2400 4800 9600 14400 19200 38400 57600 115200 230400 460800 921600 9600 Data bit...

Страница 145: ...value and the maximum value of the input data can be set by user 10 0 10 0 Power supply noise 50 60Hz rejection 2 Disabled Enabled Enabled Channel switching rate 2 3 Power supply noise rejection Disab...

Страница 146: ...s 1104 Hz 0 417 msec 2400sps 1500 Hz 5 0 208 msec 4800sps 1500 Hz 5 Power supply noise rejection Enabled In addition to the digital filter supporting channel switching rate the noise filter to reject...

Страница 147: ...izontal installation Vertical installation Channels to use CH0 CH3 Use all Offset Value 32768 to 32767 0 The number of channels 4 Error detection Fault data detection 1 LED indicator OFF Not set as th...

Страница 148: ...de Disable phase Z Only the next phase Z input is enabled once Enable phase Z always Only the next phase Z input is enabled once Phase Z input logic Positive logic active high Negative logic active lo...

Страница 149: ...quency 0 1 sec approx 1MHz or lower 6 52 sec approx 15kHz or lower 25 7 sec approx 3 5kHz or lower 32 1 sec approx 3kHz or lower 204 9 sec approx 480Hz or lower 211 3 sec approx 470Hz or lower 230 5 s...

Страница 150: ...occurred RUN Green ON The device is operating in normal mode OFF The device is operating in recovery mode Flashing Recording medium inserted in USB or microSD card slot is being accessed STS Green ON...

Страница 151: ...ode In the recovery mode the IP address is the factory setting 10 1 1 101 and the password is the value set for this product Initialize setting information Use this switch to initialize the setting in...

Страница 152: ...152 Customer Support and Inquiry CONTEC provides the following support services for you to use CONTEC products more efficiently and comfortably...

Страница 153: ...rs the useful information including product manuals that can be downloaded through the CONTEC website Download https www contec com download You can download updated driver software firmware and diffe...

Страница 154: ...ition November 2019 The Third Edition July 2020 The Fourth Edition For product information Contact your retailer if you have any technical questions about a CONTEC product or need its price delivery t...

Страница 155: ...025 Japan https www contec com No part of this document may be copied or reproduced in any form by any means without prior written consent of CONTEC CO LTD CPSN PCB271 S1 041 Reference Manual Software...

Отзывы: