Download SIMATIC TIWAY Host Software for PC User Manual
Transcript
10.28 RDLOOP The RDLOOP subroutine reads loop parameters from a PM550. Call Format Notes on Call Format BASIC and FORTRAN: CALL TIWAY (”RDLOOP”, istat, xtn, tag, rtype, rsplen, rsp275) CALL RDLOOP (istat, xtn, tag, rtype, rsplen, rsp275) Pascal: TIWAY (”RDLOOP”, istat, xtn, tag, rtype, rsplen, rsp275); RDLOOP (istat, xtn, tag, rtype, rsplen, rsp275); C: tiway (”rdloop”, &istat, &xtn, &tag, &rtype, &rsplen, &rsp275); rdloop (&istat, &xtn, &tag, &rtype, &rsplen, &rsp275); Explanations of the terms used in the call format follow. istat – The status argument is the composite status returned previously by a TIWAY Subroutine. Declaration: integer. xtn – Specifies synchronous (xtn=0) or asynchronous (xtn=1) completion. tag – The short form of the address (highway and Secondary) can be used. rtype – The rtype argument specifies the type of data to be returned. Valid values are: rtype 01 02 03 function display only tuning only display and tuning Notice that the combination of all loops, display, and tuning are not allowed. rsplen – The rsplen argument must specify the maximum length of the response buffer (response buffer size) when the POLL subroutine is called. It contains the actual length of the response on return. The response buffer for POLL contains the entire response to the Host Adapter Command Code, including the command code identifier. rsp275 – The rsp275 argument contains the response from the Secondary. The contents of this response depends on the command sent by BRDCST. Related Calls TI2HST may be useful in converting response buffers into real variables in the host format. TIWAY Host Software for PC User Manual Subroutine Library 10-37