FTSCScmd

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Serial-Robotics
Introduced first in SolidGeometry 5.4, Creation date: 2024-04-03, Last change: 2025-09-15

returns the command sequence for the FeeTech SCS RSC 485 Protocol of the URT-1 Board

Description

Support by Sebastian Heininger of ERGOSURG GmbH Ismaning
Function table
1 = PING
2 = READ
3 = WRITE
4 = REG WRITE
5 = ACTION
6 = RESET
10 = ANGLE RESET
131= SYNC Write


See Also: FTSCSdata , FTSCSmotorlist , FTSCScmdfindserial

Example Illustration

 missing image of FTSCScmd(servoID,MemAddr,data,Fun,getd)

Syntax

[cmd,str]=FTSCScmd([servoID,MemAddr,data,Fun,getd])

Input Parameter

servoID: ServoID; default is 1
MemAddr: Memory Address; default is 42
data: uint16 data to write; default is empty
Fun: default is 3 for write
getd: number of uint16 to read

Output Parameter

cmd: uint8 data array to send using write
str: Hex string for documentation

Examples


COM1=serialport("/dev/cu.usbserial-840",115200)
[a,b]=FTSCScmd(1,21,'',2,3) % read 3 data sets for PID of motor 1
write(COM1,a,'uint8'); % 'unit8' is mandatory for URT-1 Board
zz=read(COM1,COM1.NumBytesAvailable,'uint8') % 'unit8' is mandatory for URT-1 Board
FTSCSdata(zz,'unit8') % some parameters are uint8 some are uint16




Copyright 2024-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21