motosim twincat 3 interface - simulation

For a simulation project with a yaskawa robot and twincat 3 software I wanted to use yaskawa's simulation software motosim but I can't figure out if there's a way for twincat 3 to interface with it. Does anyone know if it's possible from twincat 3 to sent commands to motosim and receive outputs from it?

Related

Costume linux scheduler for Raspberry pi

I am using Raspberry pi and I want to get a digital sign when a specific process runs, to trigger another measurement tools (e.g oscilloscope or spectrum analyzer) to start measure things.
I didn't find any workaround to do it (If you know any please share) so I want to create a costume scheduler.
My plan is to create a process with special priority and whenever the process gets CPU time I want to turn on a GPIO and when the process is preempted I want to turn off the GPIO.
How would you recommend to start implementing it? are there any existing open source projects which did something similar?
Any help would be appreciated.

STM32L151c8t6 PCB design problems (nrst)

hi we haveseveral boards in need of the stm32L151C8t6 and we have some stock of the mcu in question the problem is that all the pcbs 'from JLCPCB' have this weird issue were the mcu is stuck and i have to manually poke thenrst pin multiple time for it to run normally "poke as in pull it to gnd for it to reset " please i need help with this i'll share some the the designs
example 1:
PCB design
example 2:
PCB design
made a dac output from 0 to max
start the program nothing happens
try to jump the nrst multiple times until it starts
using stm studio and changing a value i in the program so i can see where it stopped
video explaining
Video

Dump the firmware from an STM8 microcontroller

I have a 600W digital step up converter with broken STM8S103K3T6C and another that is currently working OK. Is there a way to copy (dump) firmware from the working one and upload it to the new chip. Since I have only one working, I have to be extra careful not to damage the working controller. I do have some basic experience with STM32, but I am grateful for any help I could get. I have a copy of ST-Link v2 programmer. Apparently (if there is a way), it has to be done via SWIM (which I don't nothing about, started reading few days ago). Not sure what is the proper way to start. Converter itself has UART pins at the right side of the board.
Thanks in advance.
if the chip is not locked, yes it's possible using SWIM interface. use STVP tool to extract firmware from the old one or to program it to the new one. it is bundled in a package called "ST toolset" for STM8 and downloadable from ST website. the SWIM needs 1 pin (plus reset if target uses that pin). despite that the STM8s hvae 3~5V supply, it's better to use 3.3V supply for it for the sake of the other circuitry. you can extract it even when the device is on, so there's no need to connect a supply pin from programmer to it.

RPi Pyaudio/Portaudio + ALSA: How to select/change mux inputs

I'm working on a project that is using a Raspberry Pi with Raspbian and an SGTL5000 based sound card (FePi.) I have no problem selecting the card and getting samples in both directions - once I have configured the multiplexer to properly select line In/Out. I did this with Alsamixer. I want to automate the process so that the only step required is to run the application.
I don't see a way to do this using PyAudio/PortAudio. Is my only option the ALSA API or is there a way to do this with PyAudio (or PortAudio) that I'm not spotting?
Thanks in advance for any insight you can provide.
Oz (in DFW)
I ran into a similar problem, I wanted to automate changing mux settings but I wanted to adjust inputs not exposed by alsamixer too.
To deal with the limitations of the driver I ended up porting over the Teensy 3.x sgtl5000 control software to the pi yesterday
https://github.com/Swap-File/pi-sgtl5000
You could force feed the same commands via i2c via python.
The only downside is, once you start force feeding the sound card i2c commands, you break alsamixer (and anything else that might try to adjust it's own volume settings).

Is it possible to send realtime commands from PC to PLC

We are using a frequency inverter to power a servo motor. This has to be programmed using PLC. Is it possible to gather data from a running program, using values from that to control the movements / frequency of the inverter?
(as an example; We built a racing game, we'd like to build a simulation chair that can support a grown person and act on accelaration / braking etc in the game)
Thanks
Yes, I believe what your asking is possible. I personally use a VB script running on a PC to write to registers in a PLC... so that's one way to do it.