Skip to content

Inovance AutoShop Usage Guide (Example PLC: H5U)


1. Wiring Instructions

1.1 Cabinet Wiring

HU5-1

1.2 PLC-UC04-UART Servo Wiring

RS485+ UC04_B
RS485- UC04_A
H5U-2

1.3 RS485 Servo Wiring

PLC-A RS485 Servo-A
PLC-B RS485 Servo-B
Power+ RS485 Servo+
Power- (must share GND with PLC) RS485 Servo-
H5U-10

2. Program Instructions

2.1 Configuration Setup (Software: AutoShop)

  1. Configure communication parameters on COM0.
  2. Protocol: Free Protocol.
  3. Baud rate: 115200.
  4. Data length: 8 bits.
  5. Parity: None.
  6. Stop bit: 1 bit.
H5U-3

2.2 FB Library Usage

  1. In AutoShop Toolbox, right-click Custom Library and import all FB libraries.
    H5U-4
    H5U-6
  2. Double-click the required FB library and place the FB block into the network.
    H5U-7
  3. Fill in parameters. FB command parameters:
    • ID: servo ID
    • angle: target servo angle, unit 0.1° (for 90°, set 900)
    • interval: time for servo to reach target angle, unit ms
    • accInterval: acceleration time, unit ms
    • decInterval: deceleration time, unit ms
    • power: servo output power, unit mW
    • SendBuf: register address used to store commands (INT type)
    H5U-8
  4. After writing parameters, use the SerialSR instruction to send data from port 0.
    • Port: port number
    • SendBuf: send data buffer (first register written by MOV)
    • SendSize: send byte count, 0-256
    • RcvBuf: receive buffer
    • RcvSize: receive byte count, 0-256
    • Timeout: receive timeout, 20-30000 (ms)
    • Done: completion flag*
    • Status: instruction running status*
    • Sent: bytes sent*
    • Received: bytes received*
    Note: parameters marked with * are optional. If not set, default behavior is used or no output is generated.
    H5U-9