Text this: PLC system to optimize training device of upper limb spasticity