Skip to main content

Advantech WISE Modules

The WISE-4050 family is the module to use for discrete signals — stack lights, relay contacts, M-code outputs — and for part counting faster than about 10Hz, because it counts in hardware rather than by polling. It has no analog inputs; for a current transducer use Sealevel or a WISE-4012.

Power: 10–30VDC · Default IP: 192.168.1.1 · Protocol: Modbus TCP

Hardware​

Preferred wireless I/O solution that customers source directly from Advantech or distributors.

Advantech WISE-4050/LAN I/O Module

Advantech WISE-4050/LAN Ethernet I/O Module - Wired version with 4 digital inputs. The module features terminal connections for easy wiring and supports Modbus TCP communication. This is the LAN (wired Ethernet) variant; a wireless WiFi version (WISE-4050) is also available.

Specifications

Model: WISE-4050 (Wireless) or WISE-4050/LAN (Wired Ethernet)

Digital Inputs (4 channels):

  • Type: Optically isolated
  • Voltage Range: 10-50VDC
  • Isolation: 3000VDC (optical)
  • Wet Contact Compatible: Yes (10-50VDC)
  • Dry Contact Compatible: Yes (the module wets the input internally — no external supply)

Wireless Specifications (WISE-4050)

WiFi:

  • Standard: IEEE 802.11 b/g/n
  • Frequency: 2.4 GHz
  • Range: Up to 150m (line of sight)
  • Security: WEP, WPA, WPA2-PSK
  • Modes: Infrastructure or AP mode

Network Configuration

Default Settings:

  • Wireless AP Mode: SSID "WISE-4050-XXXXXX" (last 6 of MAC)
  • Default IP: 192.168.1.1 (AP mode) or DHCP (Infrastructure mode)
  • Default Login: root / 00000000 (8 zeros)
  • Modbus Port: 502
  • Web Interface: http://[IP-address]

Sourcing WISE-4050

Purchase Options:

  • Direct from Advantech: www.advantech.com
  • Distributors: DigiKey, Mouser, Newark, Arrow
  • Typical Price: $150-250 USD

Part Numbers:

  • WISE-4050: Wireless version
  • WISE-4050/LAN: Wired Ethernet version

Additional Items Required for Wireless WISE-4050:

  • Antenna extension cable (customer must purchase)
    • Type: RP-SMA or compatible with WISE-4050 antenna connector
    • Length: 1-3 feet recommended
    • Features: Look for cables with magnetic base antenna for easy mounting
    • Connects module inside cabinet to antenna outside cabinet
  • Installation requirement: Hole must be drilled in electrical cabinet for external antenna mounting

Note: Wireless WISE-4050 requires antenna to be mounted externally to the electrical cabinet for proper WiFi signal reception. See Installation section for details.


Terminal Reference​

The WISE-4050 and WISE-4050/LAN are the same module with different radios — identical terminals, switches and Modbus map. The WISE-4012 is a different module with analog universal inputs instead of discrete inputs.

WISE-4050/LAN (wired)​

WISE-4050/LAN terminal reference — DI 0-3, DI COM, DO 0-3, DGND and power terminals

TerminalFunctionModbus
DI 0–3Discrete inputsfunc: 2 inputs 0–3 · counter: func: 3 holding registers 0–3
DI COMCommon for DI 0–3—
DO 0–3OutputsNot used by MachineMetrics
DGNDOutput groundNot used
+Vs / -VsPower, 10–30VDC—
  • Default IP is 192.168.1.1, login root / 00000000. Change the password.
  • DI COM is shared across all four inputs, so sourcing and sinking signals cannot be mixed on one module.
  • SW2 sets all four inputs dry or wet together.
  • Power from the MachineMetrics 24VDC supply. Do not use DGND as a power return.

WISE-4050 (wireless)​

WISE-4050 terminal reference — same terminals as the LAN model with Wi-Fi

  • Boots in AP mode: SSID WISE-4050-XXXXXX at 192.168.1.1. Switch it to Infrastructure mode to join the shop Wi-Fi.
  • Drill the cabinet and fit an antenna extension so the antenna sits outside the steel enclosure. A radio inside a closed metal cabinet will not hold a connection.
  • SW1 P1 OFF (Initial) restores factory network settings if you lock yourself out.

WISE-4012 (analog universal inputs)​

WISE-4012 terminal reference — V0-V3 universal input pairs, DO 0-1 and power terminals

TerminalFunction
V0+ / V0−Universal input 0 — CT + to V0+, − to V0−
V1–V3 ±Universal inputs 1–3
DO 0–1Open-collector outputs — not used
D GNDOutput ground — not used
+Vs / -VsPower, 10–30VDC, 2.5W
  • Accepts the standard 0–10V CT directly. Set the channel to 0–10V in the web UI.
  • Dry-contact DI mode samples at 2Hz per channel — fine for slow states, useless for part-count pulses. Use a WISE-4050 for counting.
  • Current mode needs an external 120Ω resistor across Vn+ / Vn−.
  • Confirm the analog register map against the adapter template before relying on it.

Physical Installation​

Step 1: Mount Module

  • Snap onto 35mm DIN rail
  • Mount inside electrical cabinet for protection

Step 2: Antenna Mounting (Wireless WISE-4050 Only)

IMPORTANT: For wireless WISE-4050 modules, the antenna must be mounted externally to the electrical cabinet for proper WiFi signal reception.

WiFi Antenna Extension Cable

WiFi antenna extension cable with RP-SMA connector - Required for wireless WISE-4050 installations. The extension cable connects the WISE-4050 module inside the electrical cabinet to the antenna mounted outside the cabinet. The cable features spring-coiled sections for flexibility and a magnetic base antenna for easy external mounting.

Antenna Installation Requirements:

  1. Drill Hole in Cabinet

    • A hole must be drilled in the electrical cabinet wall
    • Size: Appropriate for antenna connector/cable (typically 1/2" to 3/4")
    • Location: Choose a location with clear line-of-sight to WiFi access points
    • Coordinate with machine owner/electrician before drilling
  2. Antenna Extension Cable Required

    • Customer must purchase an antenna extension cable
    • Cable connects WISE-4050 module (inside cabinet) to antenna (outside cabinet)
    • Cable type: RP-SMA or compatible with WISE-4050 antenna connector
    • Recommended length: 1-3 feet (minimize signal loss)
    • Features: Magnetic base antenna for easy mounting
  3. Mount Antenna Externally

    • Route extension cable through drilled hole
    • Attach antenna to outside of cabinet (magnetic base works well on metal cabinets)
    • Secure antenna in position with appropriate mounting hardware
    • Ensure antenna has clear path for WiFi signals

Note: The WISE-4050/LAN (wired Ethernet version) does not require antenna mounting. Simply connect an Ethernet cable to the module's RJ45 port.

Step 3: Power Connection

24VDC (+) → V+ terminal
24VDC (-) → V- terminal

DIP Switch Configuration​

Before wiring signals to the WISE-4050, you must configure the DIP switches on the back of the module to set the input type (wet contact or dry contact) for each digital input channel.

WISE-4050 DIP Switch Configuration Table

WISE-4050 DIP Switch Configuration - The module has three switches (SW1, SW2, SW3) on the back that control operation mode and input types. On the WISE-4050, SW2 configures all four inputs, DI0 to DI3. Set to ON for dry contact or OFF for wet contact.

DIP Switch Functions:

SwitchDescriptionPositionON (Default)OFF
SW1Operation ModeP1Normal ModeInitial Mode
P2N/AN/A
SW2DI Type (Ch0-3)P1Dry ContactWet Contact
P2Dry ContactWet Contact

The WISE-4050 has four inputs, DI0 to DI3, and SW2 sets the type for all four at once. You cannot run some inputs wet and others dry on the same module. SW3 is present on the board but has no channels to configure on a 4-input model.

Understanding Contact Types:

Wet Contact (SW2 OFF)

  • The machine provides the voltage on the signal wire — typically 24VDC when active
  • Common for stack lights, PLC outputs and relay outputs that carry power
  • Wiring: signal to DIx, and DI COM to the source's 0V (sourcing) or +24V (sinking)
  • See Wet Contact (24VDC) Inputs

Dry Contact (SW2 ON — default)

  • The machine provides a contact closure only, with no voltage on it
  • The module wets the input internally, so no external supply is used
  • Common for relay contacts, limit switches and mechanical contacts
  • Wiring: the contact goes between DIx and the shared DI COM
  • See Dry Contact Inputs

Mixed signals: because SW2 is all-or-nothing, convert the minority signal type with interposing relays rather than trying to split the module. See Relays for AC and Mixed Signals.

Important Notes:

⚠️ POWER OFF the WISE-4050 before changing DIP switch settings. Changing switches while powered can damage the module.

⚠️ MATCH SIGNAL TYPE to switch setting. Applying 24VDC to an input configured for dry contact can damage the module.

Once the switches are set, wire the machine signals to match — see Wiring Patterns below.


WiFi Configuration (Wireless Model)​

Initial Setup - Connect to WISE AP:

  1. Power on WISE-4050
    • Module creates its own WiFi network on first boot
    • SSID: WISE-4050-XXXXXX (last 6 digits of MAC address)
    • No password required initially
  2. Connect Computer to WISE WiFi
    • Use laptop or tablet
    • Connect to WISE-4050-XXXXXX WiFi network
    • Computer will receive IP via DHCP
  3. Access Web Interface
    • Open web browser
    • Navigate to: http://192.168.1.1
    • Login: root
    • Password: 00000000 (8 zeros)
tip

If unsuccessful, check the IP address printed on the back of the device.

WISE-4012E web interface login

Configure for Your Shop WiFi (Infrastructure Mode):

  1. Change to Infrastructure Mode
    • In web interface, go to: Network → WLAN → Mode
    • Select: Infrastructure
    • Click Submit
  2. Select Your WiFi Network
    • Go to: Network → WLAN → Infrastructure Settings
    • SSID: Enter your shop WiFi network name
    • Security: Select security type (WPA2-PSK recommended)
    • Password: Enter your WiFi password
    • Click Submit
  3. Configure Static IP (Recommended)
    • Go to: Network → LAN → Ethernet/WLAN IP Configuration
    • Uncheck Enable DHCP
    • IP Address: Enter static IP (from IT team)
      • Example: 192.168.1.150
    • Subnet Mask: 255.255.255.0
    • Gateway: Your network gateway
    • Click Submit
  4. Set Modbus Unit ID
    • Go to: I/O Status → Modbus Address
    • Unit ID: Set to 1 (or as required)
    • Click Submit
  5. Reboot Module
    • Go to: Maintenance → System → Reboot
    • Click Reboot
    • Module will restart and connect to your WiFi
  6. Verify Connection
    • Reconnect computer to your shop WiFi
    • Navigate to new IP address: http://192.168.1.150 (your configured IP)
    • Should see WISE web interface
    • Verify WiFi signal strength in web interface

Important Security Settings:

  1. Change Default Password
    • Go to: Maintenance → Account
    • Change password from default 00000000
    • Use strong password
    • Document password for future access

WISE-4050/LAN Configuration (Wired Model)​

  1. Connect ethernet cable to RJ45 port
  2. Access web interface at default IP: http://192.168.1.1
  3. Login: root / 00000000
  4. Configure static IP as described above
  5. Set Modbus Unit ID to 1

Wiring Patterns​

Which pattern you use depends on whether the signals carry voltage, and SW2 forces that choice on all four inputs at once. Set the DIP switches before you wire anything — see DIP Switch Configuration. Each pattern below includes the adapter script that reads it.

These diagrams are samples

The schematics on this page are reference wiring, drawn from the manufacturer datasheets. They are not a wiring diagram for your machine. Verify every connection against the machine's own electrical prints before you install, and confirm terminal labels and the Modbus map against the unit in front of you — they vary by firmware revision.

Wet Contact (24VDC) Inputs​

WISE wet contact wiring — 24VDC sourcing and sinking outputs to DI inputs with DI COM referenced accordingly

  • Set SW2 to OFF (wet) with the module powered down. SW2 sets all four channels at once.
  • Logic 1 is 10–30VDC at 3mA or more. Logic 0 is 0–3VDC. Anything between 3V and 10V is undefined.
  • DI COM is shared by DI0–DI3. For sourcing (PNP) outputs, tie DI COM to the source 0V. For sinking (NPN) outputs, tie DI COM to +24V.
  • Inputs are optically isolated from module power, so DI COM returns to the signal source, not to module ground.
  • Tap at the output terminal in parallel with the existing load. Do not break the existing circuit.
  • AC, above 30VDC, or below 10VDC all need an interposing relay — see Relays for AC and Mixed Signals.

Adapter script

version: 2
unit-id: 1

coils:
cycle-start:
address: 0 # DI0 -> discrete input 0
func: 2
alarm-signal:
address: 1 # DI1 -> discrete input 1
func: 2

variables:
execution:
- source: cycle-start
- off-delay: 10
- state:
- ACTIVE: this
- READY: true

alarm:
- source: alarm-signal

data-items:
- execution
- alarm

conditions:
system:
message: Machine is in fault state
value:
FAULT: alarm

Dry Contact Inputs​

WISE dry contact wiring — voltage-free contacts and NPN sensors returning to the shared DI COM

  • SW2 ON (dry) is the factory default. The module wets the input internally, so a contact closed to DI COM reads 1.
  • No external supply in dry mode. Applying 24V to an input set for dry contact can damage the module.
  • All contacts return to the shared DI COM.
  • Three-wire NPN sensors: power them from +24V, tie the sensor 0V to DI COM, and run the output to DIx.
  • Counter mode is set per input in the web UI and handles up to 3kHz. Use solid-state outputs for fast pulses — mechanical relays bounce and add about 10ms.
  • Counter values read as func: 3 holding registers, where DIx is register x.

Adapter script

This example runs DI0 as a plain dry contact for execution and DI3 in counter mode for part count, which is the usual split.

version: 2
unit-id: 1
scan-interval: 0.25

coils:
in-cycle:
address: 0 # DI0 -> discrete input 0
func: 2

registers:
part-count:
address: 3 # DI3 in counter mode -> holding register 3
func: 3
type: uint16

variables:
execution:
- source: in-cycle
- off-delay: 10
- state:
- ACTIVE: this
- READY: true

data-items:
- execution
- part-count

Relays for AC and Mixed Signals​

WISE interposing relay wiring — AC and 24VDC signals converted to dry contacts so all four inputs run in one mode

  • WISE wet inputs are DC only. 24VAC and 120VAC signals always need a relay.
  • SW2 sets all four channels to one mode, so when signals are mixed you convert the minority type with relays. The plate shows AC and 24VDC relayed to dry contacts so all four inputs can run in dry mode.
  • If most signals are 24VDC instead, set SW2 OFF and feed the dry contacts from +24V through the contact to DIx, with DI COM to 0V.
  • AC coils need RC or varistor suppression. DC coils need a flyback diode, cathode to +.
  • Confirm the added coil current stays within the PLC or CNC output rating.

Adapter script

Relayed signals arrive as dry contacts, so the script is identical to Dry Contact Inputs — the mode is a hardware decision, not a script one.

version: 2
unit-id: 1

coils:
green-light:
address: 0 # CR1 N.O. (120VAC stack light) -> DI0
func: 2
red-light:
address: 1 # CR2 N.O. (120VAC stack light) -> DI1
func: 2
part-pulse:
address: 2 # CR3 N.O. (24VDC M-code output) -> DI2
func: 2

variables:
execution:
- state:
- INTERRUPTED: red-light
- ACTIVE: green-light
- READY: true

part-count:
- source: part-pulse
- rising-edge
- count

alarm:
- source: red-light

data-items:
- execution
- part-count
- alarm

conditions:
system:
message: Machine is in fault state
value:
FAULT: alarm

Counter Mode​

For applications requiring RPM tracking or high-frequency pulse counting (e.g., conveyor speed, encoder pulses, production counters), we recommend using a WISE unit (either wireless or wired) configured in counter mode.

When to Use Counter Mode

Common use cases:

  • RPM monitoring: Spindle speed from encoder pulses
  • Conveyor speed: Tracking belt or chain speed from proximity sensors
  • High-speed part counting: Fast production lines with high pulse rates
  • Encoder tracking: Position or speed from rotary encoders
  • Frequency measurement: Any signal above 10 Hz

Why WISE for High-Frequency?

  • Standard digital inputs sample too slowly for fast pulses
  • Counter mode accumulates pulses in hardware (no missed counts)
  • Can handle frequencies up to several kHz
  • Polling adapter reads total count, not individual pulses

Configuring WISE Input as Counter

Step 1: Access WISE Web Interface

  1. Navigate to WISE IP address in browser: http://192.168.1.150 (your configured IP)
  2. Login: root / your password
  3. Go to: I/O Status → Digital Input Configuration

Step 2: Set Input Mode to Counter

  1. Select the input channel (DI0, DI1, DI2, or DI3)
  2. Mode: Change from "Digital Input" to "Counter"
  3. Counter Type: Select "Frequency Counter" or "Pulse Counter"
  4. Click Submit and Reboot the module

Note: Once an input is set to counter mode, it accumulates pulses continuously. The adapter script reads the current count value and calculates the difference since the last reading.


How Counter Mode Works

Normal Digital Input Mode:

  • Adapter reads: true or false (on/off state)
  • High-speed pulses may be missed between reads
  • Limited to ~10 Hz sampling frequency

Counter Mode:

  • Adapter reads: Current accumulated count (integer)
  • WISE hardware counts every pulse (no missed counts)
  • Adapter calculates: count_difference = current_count - previous_count
  • Supports frequencies up to several kHz

Polling Frequency:

  • Use resample parameter in variables for precise sampling control
  • For RPM: resample: 5 (5-second sampling) is usually sufficient
  • For real-time counting: Use resample: 0.5 or resample: 1 (500ms or 1-second sampling)
  • More accurate and reliable than global scan-interval

Recommended: Place resample in the variable pipeline (e.g., after value-increase-diff) for best results.


WISE Counter Register Addresses

When using counter mode, WISE modules expose counter values as Modbus holding registers. Use raw PDU addressing with an explicit func: 3:

Digital InputAddress (PDU)Function CodeType
DI003 (Read Holding Registers)uint16
DI113uint16
DI223uint16
DI333uint16

Important: Counter mode changes the input from a boolean coil to a 16-bit register. The digital input coil remains available separately for reading the current state.

note
Modbus Addressing: Why address: 0 and not address: 40001?

Modbus has two ways to refer to the same register:

StyleExampleHow it works
5-digit conventionaddress: 40001The leading 4 implies FC3; remaining digits minus 1 = PDU register
Raw PDU addressingaddress: 0, func: 3Direct 0-based register number; function code declared explicitly

Both address: 40001 and address: 0, func: 3 point to the exact same physical holding register. For WISE counter registers, raw PDU addressing is required — the DI0 counter lives at PDU register 0 (not 40019). Trying address: 40019 points to PDU register 18, which is a completely different register.

When you use a raw address like 0, the script cannot infer the function code from the number alone, so you must explicitly include func: 3.


Modbus Address Map​

Digital Inputs:

  • DI0 → Coil 0 (function 2 - Read Discrete Inputs)
  • DI1 → Coil 1 (function 2 - Read Discrete Inputs)
  • DI2 → Coil 2 (function 2 - Read Discrete Inputs)
  • DI3 → Coil 3 (function 2 - Read Discrete Inputs)
  • Adapter Scripts — worked scripts, including counter-mode and RPM examples
  • Sealevel — the alternative module, required for analog current transducers
  • Troubleshooting — connection and signal problems