Skip to content

InoproShop Platform - Usage Guide (Example PLC: AM401)


1. Wiring Instructions

1.1 Servo Wiring

Servo Wiring

1.2 RS485 Servo Wiring

RS485 Servo Wiring

1.3 UC04 Wiring

UC04 Wiring

2. Program Instructions

2.1 PLC Serial Port and Free Protocol Configuration

(1) Serial port configuration (default):

  • Baud rate: 115200
  • Parity: None
  • Data bits: 8
  • Stop bits: 1

(2) Free protocol example:

  • Receive byte-count register: %MW0/%MB0
  • Receive data start address: %MW1/%MB2
  • Max receive length: 256
  • Send byte-count register: %MW300/%MB600
  • Send data start address: %MW301/%MB602
  • Max send length: 256
Free Protocol Configuration

2.2 Serial Data Write (via Function Block Library)

  1. 0 ------- Servo ID
  2. 3600 -- Target angle 360.0°
  3. 3000 -- Reach target in 3000ms (3s)
  4. 100 ---- Acceleration time 100ms
  5. 100 ---- Deceleration time 100ms

Use function blocks to convert and pack data into a custom send array, then assign values from SendBuf to the serial send start address in order.

Serial Write 1
Serial Write 2

2.3 Serial Data Send

After protocol packet data is written to the serial send registers, set the send byte-count register to the number of bytes to send (non-zero) to transmit successfully. After successful transmission, the register is automatically reset to zero.

Serial Send

Reference for serial configuration:

Medium PLC Programming Manual (Software) - CN-C02.PDF

2.4 Function Block and Protocol Mapping

Protocol reference for Fashion Star bus servo communication:

https://wiki.fashionstar.com.hk/uartbasic/uart_rs485_protocols/

Function Block and Protocol Mapping

3. Importing Library Files

  1. In InoproShop, go to the project tab and import all FB libraries via PLCopenXML.
Library Import 1
  1. After importing, drag function blocks from the toolbox and fill in required parameters.
Library Import 2

4. Function Block Description

4.1 Angle Control

  1. ID: servo ID
  2. Angle: target servo angle (3600)
  3. Interval: time to reach target angle
  4. AccInterval: acceleration time
  5. DecInterval: deceleration time
  6. Power: output power

Note: when writing SendBuf data to serial send registers, data must be sent sequentially and continuously. The send byte count must also be set to the actual packet length.

Library Import 2

 

4.2 Angle Readback

  1. ID: servo ID
Angle Readback

 

4.3 Turn Counter Reset

  1. ID: servo ID
Turn Counter Reset

 

4.4 Home Position Set

  1. ID: servo ID
Home Position Set

 

4.5 Damping Mode

  1. ID: servo ID
  2. Power: damping output power (mW)
Damping Mode

4.6 Communication Test

  1. ID: servo ID
Communication Test

4.7 Async Commands

  • Start async: fixed command, use directly.
  • End async:

State: 0 -- execute immediately after ending async; 1 -- cancel execution after ending async.

Async Start
Async End

4.8 Data Monitoring

  1. ID: servo ID
Data Monitoring

4.9 Stop Rotation (Three Modes: Release / Hold / Damping)

  1. ID: servo ID
  2. Power: output power (mW)
Stop Rotation - Release
Stop Rotation - Hold
Stop Rotation - Damping