Hi all,
I have to know current TCP speed and send it to another (external) device using universal outputs - 1 byte.
My idea is to following:
' Step1 - Start to measure TCP speed by analog output
ARATION AO(1) BV=14.00 V=9000
' Step2 - Read TCP speed and save it to I000 - in M560 there is TCP speed
GETREG I000 MREG#(M560)
'Step3 - Convert I000 to B000 (at the moment I didn't check is it work properly). My proposal is:
DIV I000 128
SET B000 I000
'Step4: Send byte to universal output
DOUT OG#(xx) B000
This is only sketch of my idea.
This job should work as concurent job to send TCP speed all the time (when robot works). What do you think about it? Is there some mistake in my idea?
I know that ARATION doesn't work with MOVJ (only MOVL, MOVC and MOVS) - this is one problem. Is possible to read TCP speed when robots execute MOVJ instruction also?
Maybe is possible to to this in ladder? I work with DX200 system.
best regards