richlinares Posted March 26, 2016 Report Share Posted March 26, 2016 Hello, i am working with a Vision 120 and a stepper motor trying to have these two devices communicate. The stepper motor can communicate via rs-485 so i have setup my v120 to do so. In my ladder i have initiated com port 2, setup for rs485, 9600 baud, no parity, 1 stop bit and have setup protocol config function block. using protocol send function block i have successfully sent a command to the motor and made it run. Now i am trying to query the motor by sending a query command, i know that the command is correct because i am using hyper terminal to monitor the data and i see the valid reply. the reply is ?/0`751232, where /0 is the address of the recipient (according to the manual there is no way to change this), i assume the "`" character is some kind of separator, and 751232 is the numeric response. the manual also mentions end of message characters of EXT 0D 0A for each response. After i send my query command, i use a protocol scan FB i setup the STX to be ?/0` (i have also tried ?/0, /0`, /0) and i setup a ML numeric variable to store the numeric response and setup the EXT characters. im not sure if i am using this FB correctly, i think i am making plc look for a message that starts with ?/0` and store the next set of numbers but i never see anything in the ML. I have also tried using the protocol buffer reset command prior to sending the query. The motor manual has a section called understanding the response where it details the responses in hex but i think i am seeing an ascii response in hyper terminal. Any help will do. Thanks. I have attached the stepper motor manual User_Commands_Manual_(256x_Stepping_2.0A_Version).pdf Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.