Skip to content

Siemens TIA Portal V19 Usage Guide (Example PLC: S7-1200)


1. Wiring Instructions

1.1 Cabinet Wiring

1

1.2 PLC-UC04-UART Servo Wiring

CB 1241_TA CB 1241_T/RA
CB 1241_TB CB 1241_T/RB
CB 1241_T/RA UC04_A
CB 1241_T/RB UC04_B
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-
12

2. Program Instructions

2.1 Configuration Setup (Software: TIA Portal V19)

  1. Add the PLC model in Device Configuration, then add the CB 1241 (RS485) communication board.
3
  1. Double-click the PLC device, open System and Clock Memory, and enable Use system memory byte and Use clock memory byte.
4

2.2 Function Block Library Import and Usage

  1. Click Libraries on the right side of the software, open Global libraries, and load the library file with the .al19 suffix.
5
6
  1. After loading, drag FB function blocks (library blocks) from Master copies into the program and fill in parameters. Then drag the data block to the leftmost program block.
7
8
9-17605849095322
  1. Click the data block and map the send buffer data block to BUFFER in Send_P2P.
10
  1. Click the data block and map the receive buffer data block to BUFFER in Receive_P2P.
11

2.3 Parameter Description (General for Library Blocks)

  • angle: target servo angle, unit is 0.1°
  • ID: servo ID
  • interval: time for the servo to reach target angle, unit is ms
  • accInterval: acceleration time, unit is ms (must be greater than 20ms)
  • decInterval: deceleration time, unit is ms (must be greater than 20ms)
  • power: output power, unit is mW