Search found 115 matches

by SILVESTROS9
Tue Jan 03, 2017 4:21 pm
Forum: Feature requests
Topic: MODBUS SLAVE COMPONENT
Replies: 4
Views: 4166

Re: MODBUS SLAVE COMPONENT

Hello Benj,
Many thanks for info.Your help is always useful.
by SILVESTROS9
Tue Jan 03, 2017 4:15 pm
Forum: Flowcode V7
Topic: PIC as MODBUS slave
Replies: 80
Views: 74823

Re: PIC AS MODBUS SLAVE

Hello Benj, Happy New Year to you and to Matrix stuff . I would like to thank you for support. For us who we are new in programming, it's not easy to learn quickly the FLOWCODE neither to avoid mistakes , but we continue to try . The new code works better , I think it's a good start for some project...
by SILVESTROS9
Mon Jan 02, 2017 9:56 pm
Forum: Feature requests
Topic: MODBUS SLAVE COMPONENT
Replies: 4
Views: 4166

Re: MODBUS SLAVE COMPONENT

Hello Steve001,
Please note:
Parity : None
Stop bits : 1
thanks for reply.
by SILVESTROS9
Mon Jan 02, 2017 7:46 pm
Forum: Feature requests
Topic: MODBUS SLAVE COMPONENT
Replies: 4
Views: 4166

MODBUS SLAVE COMPONENT

Hello and Happy New Year to all ! I would like to send messages from a Modbus Master to LCD and GLCD . It's very useful to add some functions to Modbus Slave component, to cover Modbus functions 15 ( Write Multiple Coils ) and 16 ( Write Multiple Registers ). Also it's very helpful to add at help in...
by SILVESTROS9
Mon Jan 02, 2017 2:04 am
Forum: Flowcode V7
Topic: PIC as MODBUS slave
Replies: 80
Views: 74823

Re: PIC AS MODBUS SLAVE

Hello to all, It's very strange that it's so difficult to display some characters to an LCD. I made many tests with code that I send below, everything works fine. except of one component macro : ModbusSlave1::SetHoldingRegister(0,pic_reg). For anything data that I send from master , LCD always shows...
by SILVESTROS9
Sat Dec 31, 2016 1:44 am
Forum: Flowcode V7
Topic: PIC as MODBUS slave
Replies: 80
Views: 74823

Re: PIC AS MODBUS SLAVE

Hello medelec35, you've right about pic registers. According Modbus protocol, for command 06(write single register) the data that send the master consist of 2x4 Bits HEX (0x00 low , 0x00 high).With MB cmd 06, flowcode7 writes that data to registers 40001 to 49999 with data addresses 0000-270E. Where...
by SILVESTROS9
Sat Dec 31, 2016 12:06 am
Forum: Flowcode V7
Topic: PIC as MODBUS slave
Replies: 80
Views: 74823

Re: PIC AS MODBUS SLAVE

Hello medelec35,
I send you the test code for your opinion.
Many thanks.
by SILVESTROS9
Fri Dec 30, 2016 11:02 pm
Forum: Flowcode V7
Topic: PIC as MODBUS slave
Replies: 80
Views: 74823

Re: PIC AS MODBUS SLAVE

Hello medelec35, OK for flowcode7 start page.Thanks. About LCD with pic, I made some tests with FCV variables but get errors in compiling. Is there some definition that I must enter at supplementary code area , or only enter FCV_VAR under c code icon ? Also, because I would like to send characters t...
by SILVESTROS9
Fri Dec 30, 2016 5:58 pm
Forum: Flowcode V7
Topic: PIC as MODBUS slave
Replies: 80
Views: 74823

Re: PIC AS MODBUS SLAVE

Hello medelec35,
Thanks for reply. I send you 2 screen shots , one for fc7 start page , and another when I load a project.
In your opinion, what's the reason for that , and how can I prevent this?
Thanks.
by SILVESTROS9
Fri Dec 30, 2016 2:16 pm
Forum: Flowcode V7
Topic: PIC as MODBUS slave
Replies: 80
Views: 74823

PROBLEM WITH FLOWCODE7 MAIN PAGE

Hi medelec35, Many thanks for info, I'll make some tests later, but for now I've a problem with flowcode7 start page. When I load flowcode7, there is no main toolbar and components toolbar, only a small toolbar with FILE,VIEW,HELP. When I load a project this toolbar disappears and there is only one ...
by SILVESTROS9
Wed Dec 28, 2016 12:52 am
Forum: Flowcode V7
Topic: PIC as MODBUS slave
Replies: 80
Views: 74823

PIC as MODBUS slave

Hello , I've a problem with a flowcode7 component for modbus slave. I use a pic as modbus slave to control some I/O pins and an LCD to display characters that send from a modbus master (I'm playing with ComTest Pro as modbus master emulator).The test code works fine with some modbus commands as SetC...
by SILVESTROS9
Mon Dec 19, 2016 8:13 pm
Forum: Flowcode V7
Topic: PIC AS MODBUS SLAVE WITH FLOWCODE7
Replies: 7
Views: 6165

Re: PIC AS MODBUS SLAVE WITH FLOWCODE7

Hello to all. To Kersing ..... sorry to you and to all users, you're right. It's my mistake, no excuses. To Steve001 ..... your idea is better, thanks for converting the schematic to .pdf . To Benj .......many thanks for your help and support. About my project, that is for now experimental, I made s...
by SILVESTROS9
Sun Dec 18, 2016 10:42 pm
Forum: Flowcode V7
Topic: MODBUS SLAVE COMPONENT
Replies: 2
Views: 2812

MODBUS SLAVE COMPONENT

Hello to all. I use a pic16f887 as modbus slave. I'm playing with modbus components of flowcode7 , so i need to send some character strings from a plc device as master to pic, and then at a lcd. Is there a way to realize modbus commands 15 (write multiple coils) and 16 (write multiple registers) as ...
by SILVESTROS9
Thu Dec 15, 2016 11:29 pm
Forum: Flowcode V7
Topic: PIC AS MODBUS SLAVE WITH FLOWCODE7
Replies: 7
Views: 6165

Re: PIC AS MODBUS SLAVE WITH FLOWCODE7

THANKS FOR INFO. I STARTED WITH MAKING THE HARDWARE. A DEMONSTRATION BOARD WITH A PIC 16F887 , A SN75176B BUS TRANSCEIVER AND A LCD 4X20. THE PIC IS THE MODBUS SLAVE, AND AS MODBUS MASTER I'LL USE A MODBUS PLC DEVICE AT THE END. FOR TESTS I USE A MODBUS MASTER EMULATOR TO SEND MODBUS COMMANDS TO PIC...
by SILVESTROS9
Mon Nov 28, 2016 10:28 pm
Forum: Flowcode V7
Topic: PIC AS MODBUS SLAVE WITH FLOWCODE7
Replies: 7
Views: 6165

PIC AS MODBUS SLAVE WITH FLOWCODE7

I work for a project, where i use a pic (pic 16f887) as modbus slave . Because i don't know c language ,but only pic-basic , i 'll try to use flowcode7 that is excellent for that programming level . The basic goals are to send some messages from a plc device to a common lcd 4x20 char., and set some ...