background image

Remote I/O module 16 DI

AL4042

11

If the counter module detects a positive edge at pin 4 of the port, the value of the main counter is
incremented (m = m+1).

If the main counter reaches the threshold value CT (m = CT), the counter value is reset (m = 0).
Due to the overflow detection, the value of the batch counter is incremented (b = b+1).

If the batch counter reaches the threshold value CTb (b = CTb), the counter value is reset (b = 0).

CTb

CT

0

0

t

Main Counter

Batch Counter

4.5.2 Counter mode CTD

In CTD (Count Down) mode, the counter module operates as a down counter with underflow detection
and underflow counting.

Behaviour:

The initial value of the main counter is m = 0. The initial value of the batch counter is b = 0. The
main counter has a threshold value CT. The batch counter has a threshold value CTb.

The first time a positive edge is detected at pin 4, the value of the main counter is set to the
threshold value CT-1 (m = CT-1). At the same time, the value of the batch counter is set to the
threshold value CTb-1 (b = CTb-1).

If the counter module detects a positive edge at pin 4 of the port, the value of the main counter is
decremented (m = m-1).

If the main counter falls below 0, the counter value is reset to the threshold value (m = CT-1). Due
to the underflow detection, the value of the batch counter is decremented (b = b-1).

If the batch counter falls below 0, the counter value is reset to the threshold value (b = CTb-1).

CTb

CT

0

0

t

Main Counter

Batch Counter

4.5.3 Counter mode CTUD

In CTUD (Count Up Down) mode, the counter operates as a simultaneous up and down counter with
overflow and underflow detection.

Behaviour:

The initial value of the main counter is m = 0. The initial value of the batch counter is b = 0. The
main counter has a threshold value CT. The batch counter has a threshold value CTb.

If the counter module detects a positive edge at pin 4 of the port, the value of the main counter is
incremented (m = m+1).

If the counter module detects a positive edge at pin 2 of the port, the value of the main counter is
decremented (m = m-1).

Содержание AL4042

Страница 1: ...Operating instructions Remote I O module 16 DI ModbusTCP IP65 IP66 IP67 AL4042 11489159 01 04 2023 GB...

Страница 2: ...nection 15 6 1 Overview 15 6 2 General wiring information 15 6 2 1 Connection technology 15 6 3 Ethernet 16 6 4 Process connections 16 6 5 Voltage supply 16 6 5 1 Derating behaviour 17 7 Operating and...

Страница 3: ...ion 37 9 2 5 Update firmware 38 9 3 ModbusTCP 39 9 3 1 Integrating a device into a Modbus TCP project 39 9 3 1 1 Example Integrating a device into a CODESYS project 39 9 3 2 Device specific notes 40 9...

Страница 4: ...r pages are the property of the respective rights owners 1 2 Symbols used Requirement Instructions Reaction result Designation of keys buttons or indications Cross reference Important note Non complia...

Страница 5: ...Remote I O module 16 DI AL4042 5 1 5 Change history Issue Subject Date 00 New creation of the document 11 2022 01 Corrected Chapter DI Channel Mapping 550 56 04 2023...

Страница 6: ...vironmental conditions without any restrictions Only use the product for its intended purpose Intended use If the operating instructions or the technical data are not adhered to personal injury and or...

Страница 7: ...ule 16 DI AL4042 7 3 Intended use The device may only be used for the following purposes Gateway between digital sensors and a higher level control system The device is designed for use outside of a c...

Страница 8: ...IoT Core IoT Core Visualizer ModbusTCP Projection software 4 3 Inputs The device has 8 ports Each port has 2 digital inputs 4 3 1 Sensor supply The device has a total of 8 sensor supplies 1 sensor su...

Страница 9: ...bounce time 2 Cycle time 4 4 2 Stretching The filter stretches short input pulses Level changes that occur during a stretching period are ignored The filter is configured via the following parameters...

Страница 10: ...d by a threshold value If the value range of the main counter is exceeded or not reached an overflow or underflow signal is sent to the batch counter Batch counter The batch counter counts the overflo...

Страница 11: ...m CT 1 At the same time the value of the batch counter is set to the threshold value CTb 1 b CTb 1 If the counter module detects a positive edge at pin 4 of the port the value of the main counter is d...

Страница 12: ...ue of the batch counter is b 0 The main counter has a threshold value CT The batch counter has a threshold value CTb The user can determine the counting direction The counter module initially operates...

Страница 13: ...Remote I O module 16 DI AL4042 13 Device profile Modbus TCP Server message mode 2 port switch for access to Modbus TCP interface X21 X22...

Страница 14: ...ounting lugs lug 5 2 Install device u Disconnect the power of the machine before installation u Use a flat mounting surface for installation u Please observe the maximum tightening torque Fasten the d...

Страница 15: ...discharge ESD u Please observe the required precautions against electrostatic discharge The circuits are insulated from each other and from touchable surfaces of the device with basic insulation acco...

Страница 16: ...re short circuit overload detection u Connect the sensors to ports X01 X08 u For connection use M12 connectors with at least protection rating IP65 IP66 IP67 max cable length 30 m u Tighten the cable...

Страница 17: ...2 not used 3 GND US 4 not used 6 5 1 Derating behaviour The current IUS available at ports X01 X08 depends on the ambient temperature of the device 40 30 20 10 0 10 20 30 40 50 60 70 1 2 3 4 2000 m 3...

Страница 18: ...alling service initiated via fieldbus Flashes 5 Hz Error Flashes 200 ms on 800 ms off Firmware update running On OK red On Error during firmware update e g firmware not compatible ERR Error indication...

Страница 19: ...LED Description Colour State Description US Voltage supply sta tus Off No supply voltage is applied or the applied supply voltage is too low Green On Supply voltage applied red On Overvoltage undervol...

Страница 20: ...ll the unit correctly u Establish a correct electrical connection with the device w Once connected to the supply voltage the unit will start w The LEDs show status and error conditions w The unit is r...

Страница 21: ...ed for operation w Parameter setting software can be used for parameter setting of the device 9 1 2 Getting started Requirements The parameter setting software is correctly installed on the laptop PC...

Страница 22: ...ss MAC address of the Ethernet inter face e g 00 02 01 0E 10 7F ro 2 hostname Name of the device in the Mod busTCP network e g al4x4x ro 2 connectiontimeout Set timeout for interruption of the fieldbu...

Страница 23: ...14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 n X08 pin 2 X07 pin 2 X06 pin 2 X05 pin 2 X04 pin 2 X03 pin 2 X02 pin 2 X01 pin 2 X08 pin 4 X07 pin 4 X06 pin 4 X05 pin 4 X04 pin 4 X03 pin 4 X02 pin 4 X01 pin 4 Po...

Страница 24: ...IGH default rw 1 pin4 invert Pin 4 Inversion 0 do not invert default 1 invert rw 1 1 The parameter can only be changed if no connection to the fieldbus controller is active u Select the menu option io...

Страница 25: ...cription Value range Access mode Operating mode of the counter mod ule CTU up counter up counter default CTD down counter Down counter CTUD up counter down counter up and down counter CTDIR direction...

Страница 26: ...ing counter modules Available parameters Name Description Value range Access disable Disable main counter and batch coun ter 0 counter module is active default 1 counter module is not active rw 1 rese...

Страница 27: ...formation of the device 9 1 12 Gateway Reading status and diagnostic information Available information Parameter Description Value range Access temperature Temperature of the device value in C 30 80 r...

Страница 28: ...ed The detailed view of the device is active u Select the Firmware menu w The menu page displays the firmware version of the device 9 1 15 Firmware Resetting the device Requirements The parameter sett...

Страница 29: ...net interface of the device Ethernet interface has been configured correctly u Go to the following URL http ip address e g http 192 168 0 10 w The web browser displays the start page of the IoT Core V...

Страница 30: ...searched for identifier Name of the element profile Element profile type Type of the element Requirements IoT Core Visualizer has been launched Menu Elements is active u Select the search criteria for...

Страница 31: ...anges to the byteswap data point will only take effect after the device has been restarted Available parameters Name Description Value range Access network dhcp Status of the DHCP client Static IP Sta...

Страница 32: ...rs u Observe the notes on input filters Digital input filters 8 Available parameters Name Description Value range Access pin2 debounce_time Pin 2 debounce time value 0 1 milisec onds 0 0 ms default 50...

Страница 33: ...ting mode pin2_function count_direction_selection No function Counting pulse Counting di rection Reset main counter and batch coun ter Disable main counter and batch coun ter Pin 2 IoT Core Fieldbus P...

Страница 34: ...ns Pin based Word Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 n X08 pin 2 X07 pin 2 X06 pin 2 X05 pin 2 X04 pin 2 X03 pin 2 X02 pin 2 X01 pin 2 X08 pin 4 X07 pin 4 X06 pin 4 X05 pin 4 X04 pin 4 X03 pin...

Страница 35: ...information Name Description Value range Access version Firmware version AL4x4x_fw_md_1 4 0 142 ro 1 type Type firmware Firmware type ro 1 1 read only Requirements IoT Core Visualizer has been launch...

Страница 36: ...menu page shows the substructures of the device description containing process data w The current process values are displayed u Optional In the header activate the option Polling and set the update i...

Страница 37: ...er module reset counter and threshold values to default values inactive no action default active reset rw 1 disable Disable counter module inactive enable counter default active disable counter rw 1 d...

Страница 38: ...has been launched The Processdata menu is active u Select the submenu Processdatamaster w Menu page shows status and diagnostic information 9 2 5 Update firmware The Update menu page allows you to upd...

Страница 39: ...er Requirements CODESYS project with AC14 DL was created u In the device tree Right click on the node X8 Ethernet w The context menu appears u Select the menu item Add device w A dialogue window appea...

Страница 40: ...10 Write Multiple Registers Writing several contiguous registers FC23 0x17 Read Write Multiple Registers Read write several contiguous registers FC43 0x2B Read Device Identification Reading device inf...

Страница 41: ...2 and 4 of the ports Port Configuration Digital Inputs 100 163 47 The following parameters can be configured for each digital input channel Inversion Hold level Debounce time Hold time 9 3 5 Configur...

Страница 42: ...nal inversion pin 2 pin 4 Signal level pin 2 pin 4 Disable counter module Set the direction Reset overflow underflow event of the main counter Reset overflow underflow event of the batch counter Count...

Страница 43: ...1 Regular Device Identification 0x02 Object ID Name Data type Value range 0x00 Vendor name ASCII string ifm electronic 0x01 Product Code ASCII string AL4042 0x02 Major Minor Revision ASCII string e g...

Страница 44: ...cable national regulations when it is no longer used 10 1 Cleaning u Disconnect the unit from the voltage supply u Clean the device from dirt using a soft chemically untreated and dry cloth u In case...

Страница 45: ...Counter Data and Status 46 7 10 Port X02 Mapping Counter Data and Status 46 11 14 Port X03 Mapping Counter Data and Status 46 15 18 Port X04 Mapping Counter Data and Status 46 19 22 Port X05 Mapping...

Страница 46: ...n Counter Value Current main counter value of the port 2 WORD 0x0000 0000 0 0xFFFF FFFE 4294967294 Batch Counter Value Current batch counter value of the port 1 WORD 0x0000 0 0xFFFE 65534 MCT OV Overf...

Страница 47: ...ter Settings Mapping Filter Settings 48 124 127 Port X04 DI1 Filter Settings Mapping Filter Settings 48 128 131 Port X04 DI2 Filter Settings Mapping Filter Settings 48 132 135 Port X05 DI1 Filter Sett...

Страница 48: ...s res res res HL n 2 Debounce Time n 3 Hold Time Legend INV Invert signal inversion 1 BIT 0x0 do not invert default 0x1 invert HL Hold Level Signal level to be maintained 1 BIT 0x0 LOW 0x1 HIGH defaul...

Страница 49: ...ter Configuration 50 218 226 Port X03 Counter Configuration Mapping Counter Configuration 50 227 235 Port X04 Counter Configuration Mapping Counter Configuration 50 236 244 Port X05 Counter Configurat...

Страница 50: ...nting input 0x0002 Count direction select counting direction 0x0003 Reset Main Batch Counter reset counter module 0x0004 Disable Main Batch Counter disable counter module Counter Direction Select Inst...

Страница 51: ...X02 Output Counter Mapping Output Counter 52 314 320 Port X03 Output Counter Mapping Output Counter 52 321 327 Port X04 Output Counter Mapping Output Counter 52 328 334 Port X05 Output Counter Mapping...

Страница 52: ...Direction Set counting direction valid only for counter mode CTDIR 1 BIT 0x0 up 0x1 down RST MC OV Reset Main Counter Overflow Reset counter event overflow of the main counter 1 BIT 0x0 no action 0x1...

Страница 53: ...reserved X08 RST CT X07 RST CT X06 RST CT X05 RST CT X04 RST CT X03 RST CT X02 RST CT X01 RST CT Legend DI1 INV Pin 4 signal inversion 1 BIT 0x0 do not invert default 0x1 invert DI2 INV Pin 2 signal...

Страница 54: ...module 16 DI 54 11 1 1 6 Byte Swap 500 Register Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 500 Byte Swap Legend Byte Swap Arrangement of the bytes in the data tables 1 WORD 0x0000 Big Endian default 0x...

Страница 55: ...11 1 1 7 Connection Timeout 510 Register Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 510 Connection Timeout Legend Connection Timeout Max value for connection timeouts value in milliseconds 1 WORD 20 20...

Страница 56: ...0x1 Port based Mapping pin based Register Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 n X08 Pin 2 X07 Pin 2 X06 Pin 2 X05 Pin 2 X04 Pin 2 X03 Pin 2 X02 Pin 2 X01 Pin 2 X08 Pin 4 X07 Pin 4 X06 Pin 4 X05...

Страница 57: ...16 DI AL4042 57 11 1 1 9 System Command 600 Register Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 600 Command ID Legend Command ID Identifier of the command 1 WORD 0x0040 Restarting the device 0x0050 Res...

Страница 58: ...Power Status Error Status of the voltage supply 1 BIT 0x0 No error 0x1 Error Uptime Time since the last start of the device value in minutes 1 WORD 0x0000 0 min 0xFFFF 65535 min Disconnectio n Counter...

Отзывы: