Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inquire a sample to overwrite a program procedure in SU-262 #10

Open
Thomas-Pancala opened this issue May 19, 2018 · 2 comments
Open

Inquire a sample to overwrite a program procedure in SU-262 #10

Thomas-Pancala opened this issue May 19, 2018 · 2 comments
Labels

Comments

@Thomas-Pancala
Copy link

I met a problem ,when i want to overwrite a program procedure for SU-262 via PC, I already follow the espec program instruction manual, but failed. I can program the fixed temperature mode for SU-262. But I failed in program mode. I doubted the manual has some bug. Please help me.

@Thomas-Pancala
Copy link
Author

"PRGM DATA WRITE, PGM:2, EDIT START"
"PRGM DATA WRITE, PGM:2, STEP1, TEMP25.0, TIME1:00"
"PRGM DATA WRITE, PGM:2, STEP2, TEMP10.0, TIME0:30"
"PRGM DATA WRITE, PGM:2, EDIT END"

SU -262 response

NA: PARA ERR

@MylesMetzler
Copy link
Member

I'm assuming that the SU-262 that you have has a P-200 controller? The P-200 and P-300 are supposed to have the exact same command set; but as Espec North America does not use it in any of our products (it's only used by Espec Japan) I do not have any personal experience with it.

Operating under the assumption that it does use the same command set I would try removing the ":" in the pgm parameter:

"PRGM DATA WRITE, PGM2, EDIT START"
"PRGM DATA WRITE, PGM2, STEP1, TEMP25.0, TIME1:00"
"PRGM DATA WRITE, PGM2, STEP2, TEMP10.0, TIME0:30"
"PRGM DATA WRITE, PGM2, EDIT END"

Or try (untested):

from chamberconnectlibrary.espec import Espec

#adjust these for your application:
interface_params = {'interface':'Serial', 'baudrate':19200, 'serialport':'//./COM7', 'adr':1}

controller = Espec(ctlr_type='P300', loops=1, **interface_params)
program = {
    'steps':[
        {
            'temperature':{'setpoint':25.0}
            'time':{'hour':1, 'minute':0}
        },
        {
            'temperature':{'setpoint':10.0}
            'time':{'hour':0, 'minute':30}
        }
    ]
}
controller.set_prgm(2, program)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants