Hongbo, YCHECK and OCHECK are arrays that carry three letter codes for the units (C, kg/h, etc.) of a Type's inputs and outputs. The code "TE1" for example, means "temperature in degrees C." Each component passes the codes for its inputs and outputs to RCHECK and RCHECK looks to make sure that you do not have any inconsistent connections made in the input file (such as connecting a mass flow rate output to a temperature input). There are features in the Trnsys Studio that perform similar checks as well. I had a look at the Type564.for code and I do not see why it would generate an access violation as you describe. I would recommend that you send the project you are trying to run as well as your Type564 code to your distributor to see if they can help you. I would not recommend simply deleting the call to RCHECK since the access violation error is a good indication that there is a real problem somewhere. Kind regards, David On 1/8/2011 18:17, He Hongbo wrote: Hi, -- *************************** David BRADLEY Principal Thermal Energy Systems Specialists, LLC 22 North Carroll Street - suite 370 Madison, WI 53703 USA P:+1.608.274.2577 F:+1.608.278.1475 d.bradley@tess-inc.com http://www.tess-inc.com http://www.trnsys.com |