Search found 65 matches

by jhill
Wed Dec 09, 2020 4:40 pm
Forum: Flowcode V8
Topic: Modbus slave on USB serial macro
Replies: 12
Views: 4260

Re: Modbus slave on USB serial macro

Hi Ben,

That worked and the macro is now working well on hardware. Thankyou for your help!

KInd regards

James
by jhill
Tue Dec 08, 2020 9:27 am
Forum: Flowcode V8
Topic: Modbus slave on USB serial macro
Replies: 12
Views: 4260

Re: Modbus slave on USB serial macro

Morning Ben,

Testing on hardware I seem to have the same issue, a lockup at check for incoming. Please see attched in case I am doing something silly.

Kind regards,

James
USB Modbus Test.fcfx
(18.21 KiB) Downloaded 163 times
by jhill
Mon Dec 07, 2020 5:43 pm
Forum: Flowcode V8
Topic: Modbus slave on USB serial macro
Replies: 12
Views: 4260

Re: Modbus slave on USB serial macro

Hi Ben,

Thankyou, I will give that a try.

Kind Regards

James
by jhill
Sun Dec 06, 2020 11:01 am
Forum: Flowcode V8
Topic: Modbus slave on USB serial macro
Replies: 12
Views: 4260

Re: Modbus slave on USB serial macro

Perfect, Thankyou Ben. I have had a good go but I am afraid I cannot get this working in either simulation or on hardware. In simulation, I have taken a known working (on hardware and simulation) program and changed the macro’s from Modbus Slave to Modbus Slave USB. On the USB serial 1 console I Get...
by jhill
Fri Dec 04, 2020 6:36 pm
Forum: Flowcode V8
Topic: Modbus slave on USB serial macro
Replies: 12
Views: 4260

Re: Modbus slave on USB serial macro

Hi James, I was wrong, I managed to fit it in for you today and wasn't as much work as I thought it might be. It should now be available via the v8 update system. Let me know how you get on and if it works ok I'll add it into v9 too. Thank you Ben, thats very much apreciated. My system isnt finding...
by jhill
Fri Dec 04, 2020 3:08 pm
Forum: Flowcode V8
Topic: Modbus slave on USB serial macro
Replies: 12
Views: 4260

Re: Modbus slave on USB serial macro

Benj wrote:
Fri Dec 04, 2020 1:07 pm
Hi James,

We can't do this at the moment but it certainly should be possible.

I can't really look into it today for you but I'll have a crack at it next week if that's ok.
That would be perfect thankyou! :D

Kind regards

James
by jhill
Fri Dec 04, 2020 8:09 am
Forum: Flowcode V8
Topic: Modbus slave on USB serial macro
Replies: 12
Views: 4260

Modbus slave on USB serial macro

Hi.

Is there a way to use USB serial macro on and ECIO40 as the serial port for the Modbus Slave Macro?

Kind regards

James
by jhill
Wed Apr 01, 2020 12:41 pm
Forum: Flowcode V8
Topic: CanBus Read Example
Replies: 6
Views: 3562

Re: CanBus Read Example

Hi Leigh, Following your advise a found I was unable to toggle the binary outputs.I subseqently found a connection issue between the MCP2515 and the MCP2551. Fixing this resolved everything. Outputs now toggle and the recieved CAN data is as expected. Thanks for pointing me in the right direction. B...
by jhill
Mon Mar 30, 2020 10:28 am
Forum: Flowcode V8
Topic: CanBus Read Example
Replies: 6
Views: 3562

Re: CanBus Read Example

Hi Leigh, Thank you for getting back to me. The hardware is an old Elektor project, i have checked the crystal and it is 20Mhz. It looks like the SPI is connected and working as if i disconnect the can bus i no longer receive messages, but I will try toggling the outputs as you suggest. I also have ...
by jhill
Sun Mar 29, 2020 7:51 pm
Forum: Flowcode V8
Topic: CanBus Read Example
Replies: 6
Views: 3562

Re: CanBus Read Example

Hi Leigh, I am trying to recieve a standard can bus message of 8 bytes from id 0x611 and am having a few issues, please see program attached. No matter how i set the filter in the component proterties, it makes no difference to the recieved data. Data is recieved even if i select reject all. Secondl...
by jhill
Thu Mar 12, 2020 8:47 am
Forum: Flowcode V8
Topic: CanBus Read Example
Replies: 6
Views: 3562

Re: CanBus Read Example

Thankyou Liegh, Ill try that and see how it goes.

Kind Regards,

James
by jhill
Tue Mar 10, 2020 12:54 pm
Forum: Flowcode V8
Topic: CanBus Read Example
Replies: 6
Views: 3562

CanBus Read Example

Hi,

Can anybody point me to an flowcode 8 example of using the CAN bus component makro to recieve packets, the example looks to be transmit only?

Best Regards

James
by jhill
Fri Feb 07, 2020 12:45 pm
Forum: Bug Reports
Topic: Arduino Nano Modbus RTU
Replies: 9
Views: 11886

Re: Arduino Nano Modbus RTU

Hi,

Thank you again for your help with this!

I programmed your HEX file to a NANO but as with my previous attemps I was unable to get any reponse at all. Has anybody else been able to try this, or indeed have modbus serial working after a power cycle on a nano?

Best Reagrds

James
by jhill
Fri Jan 24, 2020 3:08 pm
Forum: Bug Reports
Topic: Arduino Nano Modbus RTU
Replies: 9
Views: 11886

Re: Arduino Nano Modbus RTU

Hi, Unfortunately i had to deploy this project for a while without modbus RTU so it has taken we a bit of time to get back to it. To follow up on Jari's suggestions, Yes, generating the HEX file for uno, then loading with xloader results in the same behaviour. In my previous attempt to compile to he...
by jhill
Mon Dec 23, 2019 1:34 pm
Forum: Bug Reports
Topic: Arduino Nano Modbus RTU
Replies: 9
Views: 11886

Re: Arduino Nano Modbus RTU

Hi Jari,

Good idea, i will give that a try in the new year, unfortunatly i dont have access to the hardware for a few days....

Best Regards

James
by jhill
Fri Dec 20, 2019 8:49 am
Forum: Bug Reports
Topic: Arduino Nano Modbus RTU
Replies: 9
Views: 11886

Re: Arduino Nano Modbus RTU

Hi Jari, Thank you again for your thoughts! Interestingly i had tried using xloader, but with the hex file created using the Arduino Nano target, and this yielded the same results. I have now however done as you suggested, and switched to a AtMega328p target (I have the AVR Pack fortunately) and loa...
by jhill
Thu Dec 19, 2019 11:20 am
Forum: Bug Reports
Topic: Arduino Nano Modbus RTU
Replies: 9
Views: 11886

Re: Arduino Nano Modbus RTU

Hi JAri. Thank you very much for your advice! I have created a simple loop back program as per your suggestion, this works without issue after a power cycle. As far as i can see, the speed is not being reset. I have a genuine Nano with FTDI converter and programmed at 115200, and a clone with ch340 ...
by jhill
Wed Dec 18, 2019 10:59 am
Forum: Bug Reports
Topic: Arduino Nano Modbus RTU
Replies: 9
Views: 11886

Arduino Nano Modbus RTU

I have stumbled across a bit of an odd problem with using the Modbus RTU component on Arduino Nano's both Genuine and clones. It is repeatable over several samples so I don’t believe it to be hardware related. If the device is flashed via the USB port, then Modbus RTU queries are subsequently answer...
by jhill
Tue Sep 03, 2019 3:30 pm
Forum: Bug Reports
Topic: Raspberry Pi3 and I2C not working
Replies: 20
Views: 9063

Re: Raspberry Pi3 and I2C not working

Hi Leigh, **************Edit, having played some more, this is now working fine, the CS macro's are good. I think there is something flaky with my PI build :oops: , but thankyou very much for you patience and great support!***************************** Thank you for the example! I am not sure where ...
by jhill
Tue Sep 03, 2019 7:45 am
Forum: Bug Reports
Topic: Raspberry Pi3 and I2C not working
Replies: 20
Views: 9063

Re: Raspberry Pi3 and I2C not working

Good Morning Leigh,

Yep, I wanted to remove any possibility that python, or anything else was holding on to the port. running lsmod shows 0 against anything "SPI" which (I think) means its not in use?

Best Regards,

James.
by jhill
Mon Sep 02, 2019 4:41 pm
Forum: Bug Reports
Topic: Raspberry Pi3 and I2C not working
Replies: 20
Views: 9063

Re: Raspberry Pi3 and I2C not working

Hi Leigh Sorry I was actually doing that, I just managed to loose it in the cut/paste and trim down to post here The init is returning a zero, (OK=0) Interestingly even trying to init the spi is enought to break further access to SPI, i.e from python script. i.e. Clean boot of PI> Python script retu...
by jhill
Mon Sep 02, 2019 3:16 pm
Forum: Bug Reports
Topic: Raspberry Pi3 and I2C not working
Replies: 20
Views: 9063

Re: Raspberry Pi3 and I2C not working

Hi Leigh

It looks like the init is returning a zero. Please see attached test code in case I am doing something daft.

Best Regards

James.
by jhill
Mon Sep 02, 2019 12:20 pm
Forum: Bug Reports
Topic: Raspberry Pi3 and I2C not working
Replies: 20
Views: 9063

Re: Raspberry Pi3 and I2C not working

Thanks Leigh Yep, the device is in /dev/spidev0.0 Cool, I will add the init back in and check the return once you have updated the component. For the chip select can I use the cs macro in the cas spi component or do I need to drive the ca pin directly? Just for interest, the python code works, but i...
by jhill
Mon Sep 02, 2019 8:59 am
Forum: Bug Reports
Topic: Raspberry Pi3 and I2C not working
Replies: 20
Views: 9063

Re: Raspberry Pi3 and I2C not working

Hi! The i2c CALL component is now working perfectly on the pi, thank you! I am now trying to get SPI running on the pi. I have assumed again i need to use the CAL SPI component. As with i2c, I have created and configured a buffer, then call the cal spi transaction macro. Unfortunately, it always ret...
by jhill
Tue Aug 27, 2019 2:46 pm
Forum: Bug Reports
Topic: Raspberry Pi3 and I2C not working
Replies: 20
Views: 9063

Re: Raspberry Pi3 and I2C not working

Hi Leigh,

Thats great, thank you, ill give that a try!

Best Regads

James