Difference between revisions of "SimpleMotion V2 port"

From Granite Devices Knowledge Wiki
Jump to: navigation, search
[checked revision][checked revision]
(added rs485 tech spces)
 
(17 intermediate revisions by the same user not shown)
Line 4: Line 4:
  
 
RJ45 is well known from Ethernet connectors and same cables may be used with SimpleMotion wiring.
 
RJ45 is well known from Ethernet connectors and same cables may be used with SimpleMotion wiring.
==Electrical properties==
+
==Bus properties==
 
SimpleMotion V2 uses [[Wikipedia:RS485|RS485]] electrical serial communication standard for all data transfer. Some main benefits of using RS485 are:
 
SimpleMotion V2 uses [[Wikipedia:RS485|RS485]] electrical serial communication standard for all data transfer. Some main benefits of using RS485 are:
 
* Multidrop buses possible (up to 32 devices in single serial link)
 
* Multidrop buses possible (up to 32 devices in single serial link)
Line 12: Line 12:
 
* Low wire count, only 2 signal wires + ground needed
 
* Low wire count, only 2 signal wires + ground needed
 
* Bidirectional data transfer (receive & transmit) in one wire pair
 
* Bidirectional data transfer (receive & transmit) in one wire pair
As default SimpleMotion V2 uses 460800 BPS bitrate and can deliver over 10 000 motion commands per second.
+
* Cabling with standard RJ45 Ethernet cables
 +
As default SimpleMotion V2 uses 460800 BPS bitrate and can deliver over 1000 motion commands per second. With 4 MBPs speed the bus can deliver up to 20 000 motion commands per second by using the "fast update cycle" SimpleMotion function.
 +
{{damage|Don't use [http://en.wikipedia.org/wiki/Ethernet_crossover_cable crossover] RJ45 cables in SimpleMotion V2 system}}
 +
 
 +
==PC connection==
 +
SimpleMotion V2 devices can be controlled and configured from PC computer by the help of compatible RS485 adapter. The most common way is to use USB to SimpleMotion V2 adapters such as:
 +
*[[SimpleMotion V2 USB adapter]]
 +
*[[DIY SimpleMotion V2 adapter]]
 +
*Compatible third party adapters
 +
**PCI-e / PCI RS485 adapters with at least 460.2k bps speed support
 +
**Ethernet RS485 adapters with at least 460.2k bps speed support.
 +
***Moxa NPort 5xxx devices have been verified to work reliably with SimpleMotion through their virtual COM port over Ethernet driver.
 +
**FTDI USB chip based RS485 devices
 +
 
 +
=== RS485 settings ===
 +
SimpleMotion uses the most common configuration of RS485 bus:
 +
* Serial port settings
 +
** 460800 bps
 +
** 1 start bit
 +
** 1 stop bit
 +
** no parity bit
 +
** no flow control
 +
* Bus physical construction
 +
** 100-130 ohm termination resistors at both ends of the RS485 line
 +
** Biasing resistors at the one or two ends of the RS485 line (600-800 ohm pull-down to GND on B line and 600-800 ohm pull-up to 5V on A line)
 +
** For more info, see https://en.wikipedia.org/wiki/RS-485
 +
 
 +
==Using SMV2 port as E-stop & Enable input==
 +
In SMV2 compatible drives, the SMV2 connector acts also as emergency stop or [[Safe torque off]] input. User may connect a e-stop button directly at the end of device chain to gain reliable stopping mechanism for all linked devices.
 +
===Wiring with [[SMV2BRK]]===
 +
[[File:Smv2kit m.jpg|thumb|[[SimpleMotion V2 USB adapter|SMV2USB]] adapter and [[SMV2BRK]] bus termination board]]
 +
The preferred method to wire STO and Enable signals to SM bus is to add a [[SMV2BRK]] break out board at the end of bus chain. SMV2BRK acts as RS485 termination resistor and a wire terminal for STO and Enable signals with easy interfacing to switches.
 +
 
 +
For commissioning of SMV2BRK, see it's dedicated [[SMV2BRK|SMV2BRK page]].
 +
===Wiring with [[IONICUBE]] devices===
 +
IONICUBE motherboards have on broad routing from RJ45 connector to user accessible wire terminals. When using these motherboards, see [[IONI & IONICUBE user guide]] for wiring.
 +
 
 +
===Wiring with bare RJ45 cable===
 +
To terminate SMV2 bus and connect switches without SMV2BRK, see [[SimpleMotion V2 termination with bare cable]].
  
==Use as E-stop & Enable input==
 
[[File:Rj45 estop and enable.png|thumb|E-stop and enable signal wiring to RJ45 cable]]
 
[[File:smv2_enablequickndirty.jpg|thumb|A quick'n'dirty way to enable drive and disable [[safe torque off]]. May be used for testing before final wiring.]]
 
In Argon drive, the same connector acts also as emergencecy stop or [[Safe torque off]] input. User may connect a e-stop button directly at the end of device chain to gain reliable stopping mechanism for all linked devices.
 
==Connector pinout==
 
{| class="wikitable"
 
|-
 
! Pin # !! Signal name !! Description || Electrical wiring
 
|-
 
| 1 || STO2_24V || STO input 2 || Supply 24VDC in this pin referenced to GND to disable STO2. ¹
 
|-
 
| 2 || Reserved|| Reserved for future use || Do not connect
 
|-
 
| 3 || RS485_A || RS485 signal A || RJ45 cable routes this between devices and [[SimpleMotion V2 USB adapter]]
 
|-
 
| 4 || STO1_24V || STO input 1 24V in || rowspan=2|Supply 24VDC between STO1_24V and STO1_0V to disable STO1. STO1 inputs are floating and isolated from GND. ¹
 
|-
 
| 5 || STO1_0V || STO input 1 0V in
 
|-
 
| 6 || RS485_B || RS485 signal B||RJ45 cable routes this between devices and [[SimpleMotion V2 USB adapter]]
 
|-
 
| 7 || ENABLE_IN_24V || Drive enable control signal || Supply 24VDC in this pin referenced to GND to set drive in enabled state.
 
|-
 
| 8 || GND || Ground reference for: RS485, STO2 and ENABLE_IN || RJ45 cable routes this between devices and [[SimpleMotion V2 USB adapter]]. For enable & STO connect this to external 24V power supply ground.
 
|}
 
¹) STO1 and STO2 are controlling two independent [[Safe torque off]] methods. Both must be supplied 24V simultaneously to enable torque to the motor.
 
{{damage|Even when RJ45 connector and cables are being used in Ethernet and SimpleMotion, these protocols are not electrically compatible. Never connect SimpleMotion device to Ethernet device.}}
 
{{damage|Don't use [http://en.wikipedia.org/wiki/Ethernet_crossover_cable crossover] cables in SimpleMotion V2 system}}
 
 
[[Category:Hardware]]
 
[[Category:Hardware]]
 +
[[Category:Argon_wiring]]
 
[[Category:SimpleMotion]]
 
[[Category:SimpleMotion]]
[[Category:Argon wiring]]
 

Latest revision as of 11:22, 7 March 2018

SM V2 multidrop bus with E-stop functionality
RJ45 cable compatible with Ethernet and SimpleMotion V2

SimpleMotion V2 communication link and Argon drives use RJ45 connectors and cables as physical connection standard.

RJ45 is well known from Ethernet connectors and same cables may be used with SimpleMotion wiring.

Bus properties[edit | edit source]

SimpleMotion V2 uses RS485 electrical serial communication standard for all data transfer. Some main benefits of using RS485 are:

  • Multidrop buses possible (up to 32 devices in single serial link)
  • High reliability due to differential signaling
  • High data rates and long cable lengths possible
  • Easy to interface even from smallest microcontrollers with UART
  • Low wire count, only 2 signal wires + ground needed
  • Bidirectional data transfer (receive & transmit) in one wire pair
  • Cabling with standard RJ45 Ethernet cables

As default SimpleMotion V2 uses 460800 BPS bitrate and can deliver over 1000 motion commands per second. With 4 MBPs speed the bus can deliver up to 20 000 motion commands per second by using the "fast update cycle" SimpleMotion function.

PC connection[edit | edit source]

SimpleMotion V2 devices can be controlled and configured from PC computer by the help of compatible RS485 adapter. The most common way is to use USB to SimpleMotion V2 adapters such as:

  • SimpleMotion V2 USB adapter
  • DIY SimpleMotion V2 adapter
  • Compatible third party adapters
    • PCI-e / PCI RS485 adapters with at least 460.2k bps speed support
    • Ethernet RS485 adapters with at least 460.2k bps speed support.
      • Moxa NPort 5xxx devices have been verified to work reliably with SimpleMotion through their virtual COM port over Ethernet driver.
    • FTDI USB chip based RS485 devices

RS485 settings[edit | edit source]

SimpleMotion uses the most common configuration of RS485 bus:

  • Serial port settings
    • 460800 bps
    • 1 start bit
    • 1 stop bit
    • no parity bit
    • no flow control
  • Bus physical construction
    • 100-130 ohm termination resistors at both ends of the RS485 line
    • Biasing resistors at the one or two ends of the RS485 line (600-800 ohm pull-down to GND on B line and 600-800 ohm pull-up to 5V on A line)
    • For more info, see https://en.wikipedia.org/wiki/RS-485

Using SMV2 port as E-stop & Enable input[edit | edit source]

In SMV2 compatible drives, the SMV2 connector acts also as emergency stop or Safe torque off input. User may connect a e-stop button directly at the end of device chain to gain reliable stopping mechanism for all linked devices.

Wiring with SMV2BRK[edit | edit source]

SMV2USB adapter and SMV2BRK bus termination board

The preferred method to wire STO and Enable signals to SM bus is to add a SMV2BRK break out board at the end of bus chain. SMV2BRK acts as RS485 termination resistor and a wire terminal for STO and Enable signals with easy interfacing to switches.

For commissioning of SMV2BRK, see it's dedicated SMV2BRK page.

Wiring with IONICUBE devices[edit | edit source]

IONICUBE motherboards have on broad routing from RJ45 connector to user accessible wire terminals. When using these motherboards, see IONI & IONICUBE user guide for wiring.

Wiring with bare RJ45 cable[edit | edit source]

To terminate SMV2 bus and connect switches without SMV2BRK, see SimpleMotion V2 termination with bare cable.