Jump to content

richlinares@gmail.com

Members
  • Posts

    8
  • Joined

  • Last visited

Recent Profile Visitors

767 profile views
  • Zac

richlinares@gmail.com's Achievements

Newbie

Newbie (1/4)

0

Reputation

  1. Hello, I have a samba sm43-j-r20 plc using hsc0 connected to the pulse output of a micro motion IFT9703 transmitter. I am supplying 24vdc to the transmitter output as it is passive, same source powering plc, and have been able to simulate and see counts on plc. my problem is that I am seeing extra unwanted pulses when I press buttons I have tied to the inputs and also when ever I engage the output that enables a relay controlling a conveyor motor or any output by that matter. how can i prevent this from occurring so i can see the true pulse output from my transmitter? Thank You RL
  2. Hello, i have a question regarding the file name in a store dti to file function. i need to create a new file every time i run the function which is set to happen every day at 6am. is there a character restriction in the target file name string? i would like to utilize the dd/mm/yy string that the RTC to ASCII V2 function creates as my file name if possible. at this point i am pre planning a project and do not have a physical controller to test. thanks ricardo
  3. Hello, I wanted to ask if anybody knows how to or has created a "running timer". I have a bit that is going to turn on/off based on a set point. I would like to track how long the bit remains on over a period of a few days. I thought i could use TA timer but it appears that it works only with a loaded preset and counts down from the preset. any suggestions would be very welcomed. thank you RL
  4. Hello Joe, thank you so much for your input, this solves my problem with the greatest of ease and stops my convoluted way of separating the floating digits that i figured out but would take various lines of ladder. in regards decimal point control, i figured out a neat way of doing so. instead of converting a floating point number to a MI/ML using the float convert instructions, i convert the floating number to ascii with the num to ascii function block. with the function block i set result string length to 8 digits, set the result format to float, and i set an MI as my decimal point location. in my hmi i setup a variable ascii string, set the length to 8(same as in my function block), and tie that variable to the result of the block. now i also setup an input variable with the MI i am using for decimal control. this leaves me with a 8 digit long floating number that i can change decimal point location and viewable digits by changing the value of the MI. i can increase the size of the number by increasing the length in the block and in the hmi variable. the only issue i found with this is that when i have the decimal set to "0", the number increases by whole numbers but you are left with "XX.0" on the screen. To work around this i take my floating number and convert it so i can save the whole number to an ML, i made a 2nd num to ascii function block using this ML, set the same length, set the result format to unsigned decimal, and set decimal point location to constant "0". so when i have the MI decimal control hmi variable set as 0, i move the 2nd num to ascii result into my hmi screen eliminating the decimal point and leaving me with whole numbers. any number greater than zero moves the 1st num to ascii result into my hmi with the desired decimal points. I hope this can be useful to others who are working with displaying floating numbers. Thank You, Ricardo
  5. Hello, I would like to see if its possible to accomplish what i have in mind. I have an floating point number that i want to display in much bigger fonts that what is available in visilogic software. at the moment i am taking MF2 then converting it to ascii with the num to ascii function block resulting in ML1. i then take ML1 and display it as a variable ascii string. this allows me to control the amount of decimal points i want to see which is the reason for the conversion. Now what i would like to do is take this MF2 and separate all the digits and store them into MI locations. My floating point number is defined to 8 digits so i would store them in MI0-MI7. i have leading zeros selected to this number so every MI should have a value and i want to treat the decimal as a value too. I would then like to take those MI values and create list of images by pointer variables for each MI in my hmi with pictures of 0-9 and a decimal point so they can change as the MI value changes. The problem is that i cant see any functions that would allow me to separate this MF value. I came across the STRUCT function where i think i can do this but it will not work with a floating number. i was thinking of using the ascii converted ML1 value and separate that number but i dont understand the ascii result enough to know how that 9 digit number represents my floating number. Or if anybody knows how to get a font bigger than MS sans serif 14B that would also solve my issue. Thanks in advance Ricardo
  6. 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
  7. Hello, I am new to this forum. I am working with an sm35-j-r20 oplc and would like to configure a HSC to accept pulses from a turbine flowmeter. the oplc is setup for pnp inputs but i believe the pickup i have is npn. which high speed counter wiring diagram should i follow pnp or npn? how would the hardware setup need to be configured to accept this count? thank you, Ricardo L.
×
×
  • Create New...