Modbus communication with HMI eliminating the PC

Moderators: TomKerekes, dynomotion

ajith
Posts: 65
Joined: Sat May 21, 2022 3:57 am
Location: TamilNadu

Re: Modbus communication with HMI eliminating the PC

Post by ajith » Sat Jul 09, 2022 4:52 am

Respected sir,
I think there is an option for modbus communication. if it so is it possible to communicate with HMI and access the kflop inputs and output.
what are devices can be connected with kflop via rs232 and rs48?

User avatar
TomKerekes
Posts: 2676
Joined: Mon Dec 04, 2017 1:49 am

Re: Modbus communication with HMI eliminating the PC

Post by TomKerekes » Sat Jul 09, 2022 5:11 pm

I think there is an option for modbus communication. if it so is it possible to communicate with HMI and access the kflop inputs and output.
Yes

what are devices can be connected with kflop via rs232 and rs48?
Any device that does serial communication. KFLOP itself only has a 3.3V UART. See here.
Regards,

Tom Kerekes
Dynomotion, Inc.

ajith
Posts: 65
Joined: Sat May 21, 2022 3:57 am
Location: TamilNadu

Re: Modbus communication with HMI eliminating the PC

Post by ajith » Tue Jul 12, 2022 12:40 pm

Respected sir,
Is it possible to add external start and emergency stop to initiate and stop my G code program?
if it so can you guide me how it is done?




Regards,
Ajith Arawinth,

User avatar
TomKerekes
Posts: 2676
Joined: Mon Dec 04, 2017 1:49 am

Re: Modbus communication with HMI eliminating the PC

Post by TomKerekes » Tue Jul 12, 2022 5:36 pm

See the ExternalButtons.c example
Regards,

Tom Kerekes
Dynomotion, Inc.

ajith
Posts: 65
Joined: Sat May 21, 2022 3:57 am
Location: TamilNadu

Re: Modbus communication with HMI eliminating the PC

Post by ajith » Wed Jul 13, 2022 12:07 pm

Respected sir,
See the ExternalButtons.c example
I had gone through the program.
In that program they had defined the following variable.
#define FEEDHOLDBIT 46
#define CYCLESTARTBIT 47
#define ESTOP 26
#define HALTBIT 27
#define RESTARTBIT 28
#define ZEROALLBIT 29
After i connect my external pushbutton with the corresponding input as defined in the above whether i need to execute the " ExternalButtons.c " or is it enough to declare the program in any one of the thread in kflop.

User avatar
TomKerekes
Posts: 2676
Joined: Mon Dec 04, 2017 1:49 am

Re: Modbus communication with HMI eliminating the PC

Post by TomKerekes » Wed Jul 13, 2022 3:32 pm

Yes it must be compiled, downloaded and executed to do anything.

After it is working it can be merged into your Init C Program's forever loop.
Regards,

Tom Kerekes
Dynomotion, Inc.

ajith
Posts: 65
Joined: Sat May 21, 2022 3:57 am
Location: TamilNadu

Re: Modbus communication with HMI eliminating the PC

Post by ajith » Thu Jul 14, 2022 6:33 am

Respected sir,
After it is working it can be merged into your Init C Program's forever loop.
Is it possible to call the "ExternalButton.c" program directly into my Init C Program's forever loop.

User avatar
TomKerekes
Posts: 2676
Joined: Mon Dec 04, 2017 1:49 am

Re: Modbus communication with HMI eliminating the PC

Post by TomKerekes » Thu Jul 14, 2022 3:57 pm

No there can be only one program. But you can call functions in included files.
Regards,

Tom Kerekes
Dynomotion, Inc.

ajith
Posts: 65
Joined: Sat May 21, 2022 3:57 am
Location: TamilNadu

Re: Modbus communication with HMI eliminating the PC

Post by ajith » Fri Jul 15, 2022 10:46 am

Respected sir,
can you explain the procedure to establish an rs232 communication between a HMI and Kflop?

User avatar
TomKerekes
Posts: 2676
Joined: Mon Dec 04, 2017 1:49 am

Re: Modbus communication with HMI eliminating the PC

Post by TomKerekes » Fri Jul 15, 2022 4:12 pm

See here.
Regards,

Tom Kerekes
Dynomotion, Inc.

Post Reply