Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHMI designer
#1
Hi! as possible in PHMI Designer software to upload files into a rotating buffer or just the program. example of a function
PHMIDoc.SendCmd("Devices.Pmac1.RBDownload(1,1000,""" & CommonDialog1.FileName & """)")
Reply
#2
PMAC rotary buffer functionality has been incorporated into the PHMI, so the users can download files and send string to the PMAC through the rotary buffer. There are six commands for using the rotary buffer. The Download and Sending a String commands can be sent through the PMAC rotary buffer or the binary rotary buffer. By using the RBDownload or BRBDownload command, a file can be downloaded to the PMAC rotary buffer. PHMI will download the contents of the file to the PMAC, restricted by the buffer size defined by the user. PHMI will continue to check for available space on the PMAC and when it is available, it will continue the downloading process. To stop the downloading process, use the RBStop command. The RbStaus command will display the status of the downloading process.

BRBDownload(CoordNum, BufferSize, FileName)

· Downloads a file to the binary rotary buffer.

· CoordNum = Coordinate system in which the file is going to be downloaded.

· Buffersize = the size of the buffer that you want to be created.

· FileName = complete file path in a quotation.

· Sample: BRBDownload(1,100,”C:\MyFolder\Program1.PLC”)

RBDownload(CoordNum, BufferSize, FileName)

· Downloads a file to the rotary buffer.

· CoordNum = Coordinate system in which the file is going to be downloaded.

· Buffersize = the size of the buffer that you want to be created.

· FileName = complete file path in a quotation.

· Sample: RBDownload(1,100,”C:\MyFolder\Program1.PLC”)

BRBSend(CoordNum, BufferSize, InStr)

· Sends a string to the binary rotary buffer.

· CoordNum = Coordinate system in which the file is going to be downloaded.

· Buffersize = the size of the buffer that you want to be created.

· InStr= a string in a quotation

· Sample: BRBSend (1,100,”X10 Y20”)

RBSend(CoordNum, BufferSize, InStr)

· Sends a string to the rotary buffer.

· CoordNum = Coordinate system in which the file is going to be downloaded.

· Buffersize = the size of the buffer that you want to be created.

· InStr= a string in a quotation

· Sample: RBSend (1,100,”X10 Y20”)

RBStop

· Stops the rotary buffer.

RBStatus

· Returns the status of the rotary buffer.

· The following values are being returned by this function:

None = when no action has occurred

In Progress = indicates that the download is in progress

Suspended = error occurred during the download process

Full = there is no room in the buffer to download

Done = the download has been completed successfully

File Does Not Exist = the file does not exist.
Reply
#3
Thank you for your support, we have decided to use Pcom32lib
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)